PageSourceSearch

https://assets.transfernow.net/next-public/29833657/_next/static/chunks/3553.a3d2c0632bb94351.js

js transfernow.net collected 2026-09-24 15:23:57 UTC 31,574 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3553],{4517:(e,o,s)=>{"use strict";s.d(o,{y:()=>u});var a=s(37876),t=s(76547),l=s.n(t),n=s(97460),i=s(36207),r=s.n(i),c=s(14232),d=s(91839),m=s(28792),p=s(26173);function u(e){let{password:o,setPassword:s}=e,{t}=(0,d.Bd)(),[i,u]=(0,c.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"form-group w-100 mb-3",children:[(0,a.jsx)("input",{autoFocus:!0,type:i?"text":"password",className:"".concat(l().form__uploader," ","input__floating"," ","form-control"),placeholder:" ",onChange:e=>s(e.target.value),value:o,autoComplete:"new-password"}),(0,a.jsx)("label",{htmlFor:"",className:"label__floating",children:t("common:label.password")}),(0,a.jsx)("span",{className:r().sh__btn_wrap,children:(0,a.jsx)("button",{type:"button",className:"btn-sh",onClick:()=>u(!i),children:(0,a.jsx)(n.g,{icon:i?m.pS:p.k6,className:r().showhide__icon})})})]})})})}},16692:(e,o,s)=>{"use strict";s.d(o,{_l:()=>t,j4:()=>l,mE:()=>a,up:()=>n});let a={USD:{position:"before",symbol:"US $"},EUR:{position:"after",symbol:"€"},JPY:{position:"before",symbol:"\xa5"},GBP:{position:"before",symbol:"\xa3"},AUD:{position:"before",symbol:"AU $"},CAD:{position:"before",symbol:"CA $"},CHF:{position:"after",symbol:"Fr"},CNY:{position:"before",symbol:"\xa5"},HKD:{position:"before",symbol:"HK $"},SGD:{position:"before",symbol:"SG $"},INR:{position:"before",symbol:"₹"},KRW:{position:"before",symbol:"₩"},TRY:{position:"after",symbol:"₺"},MXN:{position:"before",symbol:"MX $"},NZD:{position:"before",symbol:"NZ $"},BRL:{position:"before",symbol:"R$"},ZAR:{position:"before",symbol:"R"},THB:{position:"before",symbol:"฿"},SEK:{position:"after",symbol:"kr"},NOK:{position:"after",symbol:"kr"},RUB:{position:"after",symbol:"₽"},RON:{position:"after",symbol:"lei"}};function t(e){let o=a[e];return o&&"after"===o.position?" ".concat(o.symbol):""}function l(e){let o=a[e];return o&&"before"===o.position?"".concat(o.symbol," "):""}function n(e,o){return"".concat(l(o)).concat(Number.isInteger(e)?e.toString():e.toFixed(2)).concat(t(o))}},16853:(e,o,s)=>{"use strict";s.d(o,{A:()=>n});var a=s(37876);s(14232);var t=s(33429),l=s.n(t);let n=e=>{let{variant:o,width:s,height:t,fullHeight:n,marginTop:i,marginBottom:r}=e,c="".concat(l().skeleton," ").concat(l()[null!=o?o:"block"]);return(0,a.jsx)("div",{className:c,style:{width:s,height:n?"calc(100vh - 255px)":t,marginTop:i||"initial",marginBottom:r||"initial"}})}},17266:(e,o,s)=>{"use strict";s.d(o,{A:()=>d});var a=s(37876),t=s(66069),l=s(96007),n=s(14232),i=s(91839),r=s(96275),c=s(45041);function d(e){let{forcedRegion:o,setForcedRegion:s,optionsLoaded:d,disabled:m,isClearable:p}=e,[u,h]=(0,n.useState)(),{t:_}=(0,i.Bd)(),{auth:x}=(0,r.J)();(0,n.useEffect)(()=>{(0,c.hQ)().then(e=>{let a=[{label:_("common:region_high_perf_alt"),options:[]},{label:_("common:region_guaranteed_loation_alt"),options:[]}];for(let o of e.regions)a[+!o.startsWith("cf-")].options.push({value:o,label:_("region_".concat(o)),icon:function(e){switch(e){case"scw-fr-par":return"fr";case"scw-nl-ams":return"nl";case"us-east-1":return"us";case"ap-southeast-1":return"sg";case"eu-west-1":return"de";default:return"auto"}}(o)});a[0].options.sort((e,o)=>e.label.localeCompare(o.label)),a[1].options.sort((e,o)=>e.label.localeCompare(o.label)),o||p||s(e.defaultRegion),h(a),d&&d()})},[null==x?void 0:x.user]);let{Option:g}=t.c;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"form-group w-100 mt-3 ".concat(m?"mb-1":""),children:u&&(0,a.jsx)(l.default,{className:"select__wrapper select__region",classNamePrefix:"form-select",placeholder:_("common:label.choose_region"),maxMenuHeight:200,options:u,value:Object.values(u).flatMap(e=>e.options).find(e=>e.value===o),isClearable:p,isSearchable:!1,onChange:e=>{s(null==e?void 0:e.value)},isDisabled:!!m,components:{Option:e=>(0,a.jsxs)(g,{...e,children:[(0,a.jsx)("i",{className:"flag flag-".concat(e.data.icon)}),e.data.label]}),SingleValue:e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("i",{className:"flag flag-".concat(e.data.icon)}),e.data.label]})}})}),m&&(0,a.jsx)("div",{className:"d-inline-block mb-3 fs15 text-muted",children:_("common:notif.specific_storage_region")})]})}},32837:(e,o,s)=>{"use strict";s.d(o,{A:()=>f});var a=s(37876),t=s(70332),l=s.n(t),n=s(14232),i=s(15052),r=s(97759),c=s(97460),d=s(89099),m=s(96275),p=s(134),u=s(25917),h=s(
150812),_=s(16692),x=s(91839),g=s(16853),b=s(23644),j=s(96007);let f=e=>{let{initialPrice:o,currency:s,setCurrency:t,onValueChanged:f,allowPublicShareLink:v,setAllowPublicShareLink:N}=e,w=(0,d.useRouter)(),{auth:y}=(0,m.J)(),{t:S}=(0,x.Bd)(),k=(0,n.useRef)(!0),[T,R]=(0,n.useState)(o.toFixed(2)),{initialized:D,stripeConnectAccountId:C,stripeConnectAccountCompleted:I}=function(e){let[o,s]=(0,n.useState)(),[a,t]=(0,n.useState)(!1),[l,i]=(0,n.useState)(),[r,c]=(0,n.useState)(!1),{auth:d}=(0,m.J)(),p=(0,n.useRef)(0),u=(0,n.useRef)(void 0),_=async()=>{e.current&&p.current<400&&(console.log("refresh stripe connect account status"),(0,h.YH)(d.authorization.managerId||"").then(o=>{p.current+=1,(!o.accountId||o.completed)&&(e.current=!1),c(!0),s(o.accountId),t(o.stripeAccountEmail),i(!!o.completed)}).catch(o=>{console.log(o),c(!0),e.current=!1}))};return(0,n.useEffect)(()=>{if(d.payingUser)return _(),u.current&&(clearInterval(u.current),u.current=void 0),u.current=setInterval(_,3e3),()=>{u.current&&clearInterval(u.current)}},[d.user]),{initialized:r,stripeEmail:a,stripeConnectAccountCompleted:l,stripeConnectAccountId:o,refresh:_}}(k),A=Object.entries(_.mE).sort((e,o)=>e[0].localeCompare(o[0])).map(e=>{let[o,s]=e;return{value:o,label:"".concat(s.symbol," (").concat(o,")")}});function F(){(0,p.z0)({path:u.A.acc_integrations,locale:w.locale||"en"})}return y.payingUser&&!D?(0,a.jsx)(g.A,{variant:"input",width:"100%",height:"138px"}):(0,a.jsxs)(a.Fragment,{children:[!y.payingUser||C||I?"":(0,a.jsx)("div",{className:"".concat(l().hint),children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-2",children:S("uploader:tools_hint.add_price_get_paid")}),(0,a.jsxs)("button",{type:"button",className:"btn btn-sm btn-primary",onClick:F,children:[S("common:button.signin_stripe"),(0,a.jsx)(c.g,{icon:i.vM,width:"14",height:"14",className:"external"})]})]})}),y.payingUser&&C&&!I?(0,a.jsx)("div",{className:"".concat(l().hint),children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"mb-2",children:S("uploader:tools_hint.complete_stripe_setup")}),(0,a.jsxs)("button",{type:"button",className:"btn btn-sm btn-primary",onClick:F,children:[S("common:button.complete_setup"),(0,a.jsx)(c.g,{icon:i.vM,width:"14",height:"14",className:"external"})]})]})}):"",y.payingUser&&C&&I&&(0,a.jsxs)("div",{className:"form-group m-0",children:[(0,a.jsx)("input",{id:"receiverSenderEmail",className:"form-control input__floating ".concat(l().form),autoComplete:"off",onFocus:e=>{e.target.selectionStart=0,e.target.selectionEnd=T.indexOf(".")},onKeyDown:e=>{!["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight"].includes(e.key)&&(e.shiftKey||e.key<"0"||e.key>"9")&&(e.key<"0"||e.key>"9")&&e.preventDefault()},placeholder:" ",value:(0,_.j4)(s)+T+(0,_._l)(s),onChange:e=>{let o=e.target.value.replaceAll((0,_.j4)(s),"").replaceAll((0,_._l)(s),"");try{if(""===o)R("0.00"),f(0);else if(-1!==o.indexOf(".")&&!isNaN(+o)){let e=parseFloat(o).toFixed(2);e!==T&&(R(e),f(parseFloat(e)))}}finally{let o=e.target.selectionStart;setTimeout(()=>{e.target.selectionStart=o,e.target.selectionEnd=o},0)}}}),(0,a.jsx)(j.default,{className:"select__wrapper ".concat(l().select__price),classNamePrefix:"form-select",placeholder:S("common:label.currency"),maxMenuHeight:120,options:A,value:A.find(e=>e.value===s),onChange:e=>{t(e.value)}}),(0,a.jsx)("label",{htmlFor:"receiverSenderEmail",className:"label__floating",children:S("common:label.add_price_currency",{currency:s})}),(0,a.jsx)("span",{id:"hintSenderS4",className:"custo__icon_hint ".concat(l().icon__tooltip),children:(0,a.jsx)(c.g,{icon:r.Ev,className:l().tool_icon})}),(0,a.jsx)(b.Q,{targetId:"hintSenderS4",content:(0,a.jsx)("p",{className:"m-0",children:S("uploader:hint_ask_payment")}),position:"bottom",fade:!0}),N&&(0,a.jsx)("div",{className:"form-group w-100 mt-3",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"allowPublicShareLink",checked:!!v,disabled:0===parseFloat(T),onChange:e=>N(e.target.checked)}),(0,a.jsxs)("label",{className:"reverse m-0 align-items-start",htmlFor:"allowPublicShareLink",title:S("uploader:allow_public_share_link"),
1children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:S("uploader:allow_public_share_link")})]})]})})]})]})}},33429:e=>{e.exports={skeleton:"skeleton_skeleton___yBt8",shimmer:"skeleton_shimmer__dC_GG",title:"skeleton_title__J_NcB",text:"skeleton_text__cGEfU",button:"skeleton_button__D3hkg",input:"skeleton_input__As_DI",block_wrapper:"skeleton_block_wrapper__yv2to",center:"skeleton_center__qj6DR",block:"skeleton_block__iz6Em",tools:"skeleton_tools__KnlNK"}},50812:(e,o,s)=>{"use strict";s.d(o,{YH:()=>t,bV:()=>l});var a=s(69923);async function t(e){let o=await fetch("".concat("/api","/pay/stripe/connect/status?customerId=").concat(e),{});return await (0,a.OS)(o,200)}async function l(e){let o=await fetch("".concat("/api","/pay/stripe/connect/update-default-currency"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sellFilesDefaultCurrency:e})});return await (0,a.G$)(o,200)}},60162:(e,o,s)=>{"use strict";s.d(o,{b:()=>d});var a=s(37876),t=s(97460),l=s(97549),n=s.n(l);s(14232);var i=s(91839),r=s(19361),c=s(65719);function d(e){let{setMaxDownloads:o,maxDownloads:s}=e,{t:l}=(0,i.Bd)();return(0,a.jsxs)("div",{className:"input-group",children:[(0,a.jsx)("input",{type:"text",className:"form-control",autoComplete:"off",placeholder:l("common:label.nolimit"),value:s,onChange:e=>{let s=e.target.value;if(""===s)o(s);else if(/^\d+$/.test(s)){let e=parseInt(s);e>0&&e<=50&&o(s)}}}),(0,a.jsxs)("div",{className:"input-group-append",children:[(0,a.jsx)("button",{type:"button",className:"btn btn-primary",title:l("common:label.minus"),onClick:()=>{let e=s-1;e>0&&o(e.toString())},children:(0,a.jsx)(t.g,{icon:r.EZ,className:n().lessmore__icon})}),(0,a.jsx)("button",{type:"button",className:"btn btn-primary",title:l("common:label.plus"),onClick:()=>{let e=+s+1;e<=1e3&&o(e.toString())},children:(0,a.jsx)(t.g,{icon:c.QL,className:n().lessmore__icon})})]})]})}},70332:e=>{e.exports={form:"price_input_form__4_UjK",icon__tooltip:"price_input_icon__tooltip__F4qDn",tool_icon:"price_input_tool_icon__3xvLg",hint:"price_input_hint__bJ3QH",warning:"price_input_warning__hIZvp",select__price:"price_input_select__price__dSsFl"}},73660:(e,o,s)=>{"use strict";s.d(o,{I:()=>n});var a=s(75824),t=s(16692);let l={USD:.5,EUR:.5,JPY:100,GBP:.5,AUD:.5,CAD:.5,CHF:.5,CNY:10,HKD:5,SGD:1,INR:100,KRW:2e3,MXN:20,TRY:20,SEK:10,NOK:10,NZD:1,BRL:10,ZAR:20,RUB:100,THB:100,RON:10};function n(e,o,s){let n=l[o];return!(s>0)||!n||!(s<n)||(a.oR.error(e("uploader:price_must_be",{price:"".concat((0,t.j4)(o)).concat(n).concat((0,t._l)(o))})),!1)}},75934:(e,o,s)=>{"use strict";s.r(o),s.d(o,{default:()=>Z});var a=s(37876),t=s(97549),l=s.n(t),n=s(25822),i=s(36207),r=s.n(i),c=s(14232),d=s(41212),m=s(91839);function p(e){let{selectedTool:o,setSelectedTool:s,onIgnore:t,onValidate:i,uploaderSettings:r,disableRegion:c,theme:d}=e,{t:p}=(0,m.Bd)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.UploaderToolsList,{selectedTool:o,setSelectedTool:s,onValidate:i,uploaderSettings:r,disableRegion:c,theme:d}),(0,a.jsxs)("div",{className:"".concat(l().uploader__modalfooter," mt-auto"),children:[(0,a.jsx)("button",{type:"button",className:"btn btn-outline-primary btn-xl",onClick:()=>{t(),s(null)},children:p("common:button.ignore")}),(0,a.jsx)("button",{type:"button",className:"btn btn-primary btn-xl",onClick:()=>{i()&&s(null)},children:p("common:button.valid")})]})]})}var u=s(4517),h=s(17305),_=s(97460),x=s(96275),g=s(43283),b=s(5987);function j(e){let{setSelectedTool:o,uploaderSettings:s,disableRegion:t,disableSSEC:i,theme:j}=e,{t:f}=(0,m.Bd)(),v=(0,d.Np)(),[N,w]=(0,c.useState)(v.password),[y,S]=(0,c.useState)(v.sseC),{auth:k}=(0,x.J)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-password",className:"mb-3",children:[(0,a.jsx)("div",{className:l().uploader__modalstitle,children:f(i?"common:label.password":"common:label.password_disk_encryption")}),(null==s?void 0:s.requirePassword)&&(0,a.jsxs)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{icon:g.wR,height:"15"})}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:f("common:label.password_required_by_admin")})})]}),v.templatePassword&&(0,a.jsxs)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{icon:g.wR,height:"15"})}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:f("common:label.about_preset_password")})})]}),k.payingUser?"":(0,a.jsxs)("div",{className:"".concat(l().uploader__modalhint," mb-3"),children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{id:"hintImport",icon:g.wR,height:"15"})}),(0,a.jsx)("p",{className:"m-0",children:f("uploader:tools_hint.password")})]}),(0,a.jsx)("div",{className:"form-group w-100",children:(0,a.jsx)(u.y,{password:N,setPassword:e=>{w(e),e||S(!1)}})}),!i&&(0,a.jsxs)(a.Fragment,{children:[k.payingUser?"":(0,a.jsxs)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{icon:b.iW,height:"15"})}),(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[f("uploader:tools_hint.guest_disk_encryption")," ",(0,a.jsx)(h.h,{className:"btn btn-xs btn-warning",children:f(k.user?"common:button.upgrade_account":"common:button.try_free")})]})})]}),(!v.templatePassword||N)&&(0,a.jsxs)(a.Fragment,{children:[!v.cloningSourceTransfer&&(0,a.jsxs)("div",{className:"".concat(k.payingUser?"":l().disabled," ","custom-toggle w-100 mb-3"),children:[(0,a.jsx)("input",{type:"checkbox",id:"param1",checked:y,onChange:()=>S(!y),disabled:!N}),(0,a.jsxs)("label",{className:"reverse m-0 align-items-start",htmlFor:"param1",title:f("common:label.disk_encryption_with_password"),children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:f("common:label.disk_encryption_with_password")})]})]}),y&&(0,a.jsxs)("div",{className:l().uploader__modalhint,children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{icon:g.wR,height:"15"})}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{children:f("uploader:tools_hint.disk_encryption")})})]})]})]})]})}),(0,a.jsx)(p,{setSelectedTool:o,selectedTool:n.Tool.PASSWORD,onValidate:function(){return v.setPassword(N),v.setSseC(y),!0},onIgnore:function(){w(v.password),S(v.sseC)},uploaderSettings:s,disableRegion:t,theme:j})]})}s(58684),s(21082),s(60319),s(79291);var f=s(48030),v=s(7809),N=s(77117),w=s(97056),y=s(89099),S=s(80414),k=s(20753),T=s(73409),R=s(8220),D=s(57140),C=s(85971);function I(e){let{setSelectedTool:o,uploaderSettings:s,disableRegion:t,theme:i}=e,{t:u}=(0,m.Bd)(),g=(0,y.useRouter)(),{auth:b}=(0,x.J)(),j=(0,d.Np)(),[I,A]=(0,c.useState)(j.from||new Date),[F,E]=(0,c.useState)(j.getTo());return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-availability",className:"mb-3",children:[(0,a.jsxs)("div",{className:l().uploader__modalstitle,children:[u("uploader:tools.availability"),(0,a.jsx)(N.w,{}),(0,a.jsxs)("div",{className:"".concat(l().uploader__modaldays," ","ms-auto"),children:[(0,D.m)(F,I)," ",u("common:dmy.days")]})]}),b.payingUser?"":(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[u("uploader:tools_hint.guest_availability",{guestMaxAvailability:"".concat(w.F.NONE.fileValidityInDays," ").concat(u("
1common:dmy.days"))}),(0,a.jsxs)("span",{className:"pe-2",children:["\xa0",u("uploader:tools_hint.user_availability",{userMaxAvailability:"".concat(w.F[C.KD.PREMIUM].fileValidityInDays," ").concat(u("common:dmy.days"))})]}),(0,a.jsx)(h.h,{className:"btn btn-xs btn-warning",children:u(b.user?"common:button.upgrade_account":"common:button.try_free")})]})})}),(0,a.jsxs)("div",{className:"custo ".concat(b.payingUser?"":l().disabled," ","form-group"," ","w-100"),children:[(0,a.jsx)("div",{className:"pb-2",children:u("uploader:tools.postpone_date_time")}),(0,a.jsx)("div",{className:"pb-4",children:(0,a.jsx)(v.A,{value:I,onChange:e=>{A(e)},locale:g.locale,minDate:new Date(Math.max(Date.now(),(0,R.e)(F,j.fileValidityInDaysLimit).getTime())),maxDate:(0,R.e)(F,1),clearIcon:null,disableClock:!0,format:"".concat((0,k.AU)(g.locale)," HH:mm"),calendarIcon:(0,a.jsx)(_.g,{icon:S.faCalendarDays})})}),(0,a.jsx)("div",{className:"pb-2",children:u("uploader:tools.choose_expiration_date")}),(0,a.jsx)(f.A,{value:F,onChange:e=>{E(e)},locale:g.locale,minDate:(0,T.f)(I,1),maxDate:(0,T.f)(I,j.fileValidityInDaysLimit),clearIcon:null,format:(0,k.AU)(g.locale),calendarIcon:(0,a.jsx)(_.g,{icon:S.faCalendarDays})})]})]})}),(0,a.jsx)(p,{setSelectedTool:o,selectedTool:n.Tool.AVAILABILITY,onValidate:function(){return j.setFrom(I),j.setTo(F),!0},onIgnore:function(){A(j.from||new Date),E(j.getTo())},uploaderSettings:s,disableRegion:t,theme:i})]})}function A(e){let{setSelectedTool:o,uploaderSettings:s,disableRegion:t,theme:i}=e,{t:u}=(0,m.Bd)(),h=(0,d.Np)(),[_,x]=(0,c.useState)(h.transferType===C.uD.S2?h.downloadConfirmationS2:h.downloadConfirmation),[g,b]=(0,c.useState)(h.expiryReminder),[j,f]=(0,c.useState)(h.noDownload),[v,N]=(0,c.useState)(h.forceEmailWhenDownloadS2);return(0,c.useEffect)(()=>{h.transferType===C.uD.S2?x(h.downloadConfirmationS2):x(h.downloadConfirmation)},[h.transferType,h.downloadConfirmationS2,h.downloadConfirmation]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-notifications",className:"mb-3",children:[(0,a.jsx)("div",{className:l().uploader__modalstitle,children:u("uploader:tools.notifications")}),h.transferType===C.uD.S2&&!s.requireForceEmailWhenDownloadS2&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"custom-toggle w-100 mb-2",children:[(0,a.jsx)("input",{type:"checkbox",id:"param0",checked:!!v,onChange:()=>{let e=!v;N(e),e||x(!1)}}),(0,a.jsxs)("label",{id:"hintEmailDownload",className:"reverse m-0 align-items-start",htmlFor:"param0",title:u("uploader:tools_hint.ask_for_mail_before_download"),children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:u("uploader:tools.ask_for_mail_before_download")})]})]})}),(0,a.jsx)("div",{className:"form-group w-100 mb-2",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"param1",checked:(h.transferType!==C.uD.S2||v)&&_,onChange:e=>{let o=e.target.checked;x(o),o&&N(!0)}}),(0,a.jsxs)("label",{className:"reverse m-0",htmlFor:"param1",title:u("uploader:tools.download_confirmation"),children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:u("uploader:tools.notify_when_downloading")})]})]})}),(0,a.jsx)("div",{className:"form-group w-100 mb-2",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"param3n",checked:j,onChange:()=>f(!j)}),(0,a.jsxs)("label",{className:"reverse m-0",htmlFor:"param3n",title:u("uploader:tools.notify_no_download"),children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:u("uploader:tools.notify_when_no_downloaded")})]})]})}),(0,a.jsx)("div",{className:"form-group w-100",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"param2",checked:g,onChange:()=>b(!g)}),(0,a.jsxs)("label",{className:"reverse m-0",htmlFor:"param2",title:u("uploader:tools.reminder_days_before_expiration"),children:[(0,a.jsx)("div",{className:"switch",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:u("uploader:tools.notify_days_before_expiration")})]})]})})]})}),(0,a.jsx)(p,{setSelectedTool:o,selectedTool:n.Tool.NOTIFICATIONS,onValidate:function(){return h.transferType===C.uD.S2?h.setDownloadConfirmationS2(_):h.setDownloadConfirmation(_),h.setExpiryReminder(g),h.setNoDownload(j),h.setForceEmailWhenDownloadS2(v),!0},onIgnore:function(){h.transferType===C.uD.S2?x(h.downloadConfirmationS2):x(h.downloadConfirmation),b(h.expiryReminder),f(h.noDownload),N(h.forceEmailWhenDownloadS2)},uploaderSettings:s,disableRegion:t,theme:i})]})}var F=s(60162);function E(e){var o;let{setSelectedTool:s,uploaderSettings:t,disableRegion:i,theme:u}=e,{t:b}=(0,m.Bd)(),j=(0,d.Np)(),{auth:f}=(0,x.J)(),[v,w]=(0,c.useState)((null==(o=j.maxDownloads)?void 0:o.toString())||""),[y,S]=(0,c.useState)(j.allowPreview);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:[(0,a.jsxs)("div",{id:"opt-download",className:"mb-3",children:[(0,a.jsxs)("div",{className:l().uploader__modalstitle,children:[b("uploader:tools.downloads"),(0,a.jsx)(N.w,{})]}),f.payingUser?"":(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[j.transferType===C.uD.S1&&(0,a.jsx)("span",{className:"m-0 pe-2",children:b("uploader:tools_hint.guest_limit_max_downloads_per_recipient")}),j.transferType===C.uD.S2&&(0,a.jsx)("span",{className:"m-0 pe-2",children:b("uploader:tools_hint.guest_limit_max_downloads")}),(0,a.jsx)(h.h,{className:"btn btn-xs btn-warning",children:b(f.user?"common:button.upgrade_account":"common:button.try_free")})]})})}),f.payingUser?(0,a.jsxs)("div",{className:l().uploader__modalhint,children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{id:"hintImport",icon:g.wR,height:"15"})}),(0,a.jsxs)("div",{children:[j.transferType===C.uD.S1&&(0,a.jsx)("span",{children:b("uploader:tools_hint.limit_max_downloads_per_recipient")}),j.transferType===C.uD.S2&&(0,a.jsx)("span",{children:b("uploader:tools_hint.limit_max_downloads")})]})]}):"",(0,a.jsx)("div",{className:"".concat(f.payingUser?"":l().disabled," form-group w-100 mt-3"),children:(0,a.jsx)(F.b,{maxDownloads:v,setMaxDownloads:e=>{w(e),!v&&e&&S(!1),e||S(!0)}})})]}),v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning," m-0"),children:b("uploader:tools.file_preview_disabled")}),(0,a.jsx)("div",{className:"form-group w-100 mt-3",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"paramPreview",checked:y,onChange:()=>S(!y)}),(0,a.jsxs)("label",{className:"reverse m-0",htmlFor:"paramPreview",title:b("uploader:tools.file_preview"),children:[(0,a.jsx)("div",{className:"switch me-2",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:b("uploader:tools.file_preview")})]})]})})]})]}),(0,a.jsx)(p,{setSelectedTool:s,selectedTool:n.Tool.DOWNLOAD_LIMIT,onValidate:function(){return j.setMa
1xDownloads(v?parseInt(v):void 0),j.setAllowPreview(y),!0},onIgnore:function(){var e;w((null==(e=j.maxDownloads)?void 0:e.toString())||""),S(j.allowPreview)},uploaderSettings:t,disableRegion:i,theme:u})]})}var P=s(17266),U=s(61099),O=s(25917),L=s(16853),B=s(23644),V=s(1273);function M(e){let{setSelectedTool:o,uploaderSettings:s,disableRegion:t,theme:i}=e,{t:u}=(0,m.Bd)(),b=(0,d.Np)(),[j,f]=(0,c.useState)(b.forcedRegion),[v,w]=(0,c.useState)(!0),{auth:y}=(0,x.J)(),[S,k]=(0,c.useState)(""),T=(0,V.PO)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-storage",className:S,children:[(0,a.jsxs)("div",{className:l().uploader__modalstitle,children:[u("uploader:tools.storage_region"),(0,a.jsx)(N.w,{}),y.payingUser?(0,a.jsxs)("div",{className:"ms-auto",children:[(0,a.jsx)(_.g,{id:"hintStorageRegion",icon:g.wR,height:"15",className:l().hint__ttl}),(0,a.jsx)(B.Q,{targetId:"hintStorageRegion",content:(0,a.jsx)("p",{className:"m-0",children:u("uploader:tools_hint.storage_region")}),position:"left",fade:!0})]}):""]}),y.payingUser?"":(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[(0,a.jsx)("span",{className:"pe-2",children:u("uploader:tools_hint.guest_choose_storage_region")}),(0,a.jsx)(h.h,{className:"btn btn-xs btn-warning",children:u(y.user?"common:button.upgrade_account":"common:button.try_free")})]})})}),T.isStarterPlan?(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[(0,a.jsx)("span",{className:"pe-2",children:u("uploader:tools_hint.starter_choose_storage_region")}),(0,a.jsx)(U.w,{path:"".concat(O.A.acc_subscriptions_upgrade),className:"btn btn-xs btn-warning",children:u("common:button.upgrade_account")})]})})}):"",v&&(0,a.jsx)(L.A,{variant:"input",width:"100%",height:"44px"}),(0,a.jsx)("div",{className:"".concat(y.payingUser&&!T.isStarterPlan?"":l().disabled," form-group w-100 mt-3"),children:(0,a.jsx)(P.A,{forcedRegion:j,setForcedRegion:e=>{f(e),k(r().anim__highlight)},optionsLoaded:()=>w(!1),disabled:t,isClearable:!1})})]})}),(0,a.jsx)(p,{setSelectedTool:o,selectedTool:n.Tool.STORAGE_REGION,onValidate:function(){return b.setForcedRegion(j),!0},onIgnore:function(){f(void 0)},uploaderSettings:s,disableRegion:t,theme:i})]})}function G(e){let{setSelectedTool:o,uploaderSettings:s,disableRegion:t,theme:i}=e,{t:u}=(0,m.Bd)(),h=(0,d.Np)(),[x,b]=(0,c.useState)(h.allowPreview);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-preview",className:"",children:[(0,a.jsx)("div",{className:l().uploader__modalstitle,children:u("uploader:tools.preview")}),(0,a.jsxs)("div",{className:l().uploader__modalhint,children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{id:"hintImport",icon:g.wR,height:"15"})}),(0,a.jsx)("div",{children:u("uploader:tools_hint.preview")})]}),(0,a.jsx)("div",{className:"form-group w-100 mt-3",children:(0,a.jsxs)("div",{className:"custom-toggle w-100",children:[(0,a.jsx)("input",{type:"checkbox",id:"param3",checked:x,onChange:()=>b(!x)}),(0,a.jsxs)("label",{className:"reverse m-0",htmlFor:"param3",title:u("uploader:tools.file_preview"),children:[(0,a.jsx)("div",{className:"switch me-2",children:(0,a.jsx)("div",{className:"dot"})}),(0,a.jsx)("span",{children:u("uploader:tools.file_preview")})]})]})})]})}),(0,a.jsx)(p,{setSelectedTool:o,selectedTool:n.Tool.PREVIEW,onValidate:function(){return h.setAllowPreview(x),!0},onIgnore:function(){b(h.allowPreview)},uploaderSettings:s,disableRegion:t,theme:i})]})}var K=s(89811),W=s(32837),H=s(54632),J=s(73660),Y=s(50812);function $(e){var o,s,t;let{setSelectedTool:i,uploaderSettings:u,disableRegion:b,theme:j}=e,{t:f}=(0,m.Bd)(),v=(0,d.Np)(),[w,y]=(0,c.useState)(v.price),[S,k]=(0,c.useState)(v.allowPublicShareLink),{auth:T}=(0,x.J)(),R=(0,V.PO)(),[D,I]=(0,c.useState)(v.priceCurrency||(null==(o=R.customer)?void 0:o.sellFilesDefaultCurrency)||(null==(t=R.customer)||null==(s=t.subscription)?void 0:s.currency)||"EUR");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(l().uploader__modalbody," ").concat(r().scrollbar),children:(0,a.jsxs)("div",{id:"opt-sell",children:[(0,a.jsxs)("div",{className:l().uploader__modalstitle,children:[f("uploader:tools.sell_your_files"),(0,a.jsx)(N.w,{})]}),T.payingUser?(0,a.jsxs)("div",{className:l().uploader__modalhint,children:[(0,a.jsx)("div",{children:(0,a.jsx)(_.g,{id:"hintImport",icon:g.wR,height:"15"})}),(0,a.jsx)("div",{children:f("uploader:tools_hint.ask_payment_for_download")})]}):"",T.payingUser?"":(0,a.jsx)("div",{className:"".concat(l().uploader__modalhint," ").concat(l().warning),children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[(0,a.jsx)("span",{className:"d-block mb-2 pe-2",children:f("uploader:tools_hint.ask_payment_get_account")}
1),(0,a.jsx)(h.h,{className:"btn btn-sm btn-warning me-2",children:T.user?f("common:button.upgrade_account"):f("common:button.create_account")}),(0,a.jsx)(K.A,{href:H.A.howto_sell_files,target:"_blank",rel:"noreferrer noopener",className:"btn btn-sm btn-outline-warning",children:f("common:button.findout_more")})]})})}),T.payingUser&&v.transferType!==C.uD.S2?(0,a.jsx)("div",{className:l().uploader__modalhint,children:(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:"m-0",children:[(0,a.jsx)("span",{className:"d-block mb-2 pe-2",children:f("uploader:tools_hint.select_s2_add_price")}),(0,a.jsx)("button",{type:"button",className:"btn btn-primary btn-sm",onClick:()=>{v.setStep(d.Zm.FORM),v.setTransferType(C.uD.S2)},children:f("uploader:create_link")})]})})}):(0,a.jsx)("div",{className:"".concat(T.payingUser?"":l().disabled," form-group w-100 mt-3"),children:(0,a.jsx)(W.A,{initialPrice:v.price,currency:D,setCurrency:I,onValueChanged:e=>{y(e)},allowPublicShareLink:S,setAllowPublicShareLink:k})})]})}),(0,a.jsx)(p,{setSelectedTool:i,selectedTool:n.Tool.PREVIEW,onValidate:function(){if(T.payingUser){if(!(0,J.I)(f,D,w))return!1;v.setPrice(w),v.setPriceCurrency(D),v.setAllowPublicShareLink(w>0&&S),(0,Y.bV)(D)}return!0},onIgnore:function(){y(v.price),k(v.allowPublicShareLink)},uploaderSettings:u,disableRegion:b,theme:j})]})}function Z(e){let{selectedTool:o,setSelectedTool:s,uploaderSettings:t,theme:i}=e,r=(0,d.Np)();return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"".concat(l().uploader__modal," ").concat(o===n.Tool.STORAGE_REGION&&"S1"===r.transferType?l().is_fullheightS1:""," ").concat(o===n.Tool.AVAILABILITY&&"S1"===r.transferType?l().is_fullheightS1:""," ").concat(o===n.Tool.STORAGE_REGION&&"S2"===r.transferType?l().is_fullheightS2:""," ").concat(o===n.Tool.AVAILABILITY&&"S2"===r.transferType?l().is_fullheightS2:""," ").concat(o===n.Tool.SELL&&"S2"===r.transferType?l().is_fullheightS2:""," ").concat(l().active," isleftfullh"),children:[o===n.Tool.PASSWORD&&(0,a.jsx)(j,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i,disableSSEC:r.disableSSEC}),!t.forcedAvailability&&o===n.Tool.AVAILABILITY&&(0,a.jsx)(I,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i}),o===n.Tool.NOTIFICATIONS&&(0,a.jsx)(A,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i}),o===n.Tool.DOWNLOAD_LIMIT&&(0,a.jsx)(E,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i}),!r.lockRegion&&o===n.Tool.STORAGE_REGION&&(0,a.jsx)(M,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i}),o===n.Tool.PREVIEW&&(0,a.jsx)(G,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i}),o===n.Tool.SELL&&(0,a.jsx)($,{setSelectedTool:s,uploaderSettings:t,disableRegion:r.lockRegion,theme:i})]}),(0,a.jsx)("div",{className:l().uploader__modal_backdrop})]})}}}]);

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.