"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85598],{951637:function(e,n,t){t.r(n),t.d(n,{ContentFilterModal:function(){return p}});var r=t(867932);t(652983);var i=t(772170),s=t(251277),a=t(112756),o=t(567848),u=t(662555),l=t(827753),c=t(397458);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function g(e){for(var n=1;nn(null),children:(0,c.jsxs)(s.h,{children:[(0,c.jsx)(a.x,{children:(0,u.Iu)({singular:"Mature content filter",dictionary:{es:{singular:"Filtro de contenido para adultos"},"de-DE":{singular:"Jugendschutzfilter"},"fr-FR":{singular:"Filtre de contenu pour adultes"},"ja-JP":{singular:"成人向けコンテンツフィルター"},"ko-KR":{singular:"성인 콘텐츠 필터"},"pt-BR":{singular:"Filtro de conte\xfado adulto"},"zh-CN":{singular:"成人内容过滤器"}}})}),(0,c.jsx)(o.o,{}),(0,c.jsx)(l.c,g(g({},r),{},{token:t,onClose:()=>n(null)}))]})})}},827753:function(e,n,t){t.d(n,{c:function(){return j}});var r=t(652983),i=t(776413),s=t(192740),a=t(771474),o=t(848812),u=t(961300),l=t(945368),c=t(49009),d=t(463933),g=t(875658),p=t(474766),h=t(810464),f=t(590862),m=t(662555),y=t(397458);let x=e=>Object.keys(e).reduce((n,t)=>{let r=e[t];return Array.isArray(r)?[...n,...r.map((e,n)=>{let r=`${t}[${n}]`;return`${encodeURIComponent(r)}=${encodeURIComponent(String(e))}`})]:(n.push(`${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`),n)},[]).join("&");function j({filters:e,customFilters:n,token:t,selected:j,onClose:v}){let b=(0,i.pm)(),S=Object.values(n).reduce((e,n)=>((n.rating&j)==0&&e.add(n.rating.toString()),e),new Set),w=j!==e.everything.rating&&j!==e.safest.rating?"":j.toString(),{0:A,1:O}=(0,r.useState)(w),{0:C,1:R}=(0,r.useState)(S),{0:k,1:I}=(0,r.useState)(!1),P=Object.keys(e),E=Object.keys(n),z=A!==e.everything.rating.toString()&&A!==e.safest.rating.toString(),F=e=>{O(e);let t=Object.values(n).map(e=>e.rating.toString());e||R(new Set(t))};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.f,{children:(0,y.jsxs)(a.K,{spacing:(0,o.h)(10),children:[(0,y.jsxs)(u.n,{size:"md",children:[(0,m.Iu)({singular:"Choose what types of videos you do and do not want to see on Vimeo.",dictionary:{es:{singular:"Elija qu\xe9 tipo de videos quiere o no quiere ver en Vimeo."},"de-DE":{singular:"Suche dir aus, was f\xfcr Videos du bei Vimeo sehen oder nicht sehen m\xf6chtest."},"fr-FR":{singular:"Choisissez le type de vid\xe9os que vous souhaitez voir ou pas sur Vimeo.\xa0"},"ja-JP":{singular:"Vimeo上でどういう種類の動画が見たいか選択してください。"},"ko-KR":{singular:"Vimeo에서 보고 싶거나 보고 싶지 않은 내용을 선택하세요."},"pt-BR":{singular:"Escolha quais s\xe3o os tipos de v\xeddeos que voc\xea quer ou n\xe3o ver no Vimeo."},"zh-CN":{singular:"选择您希望或不希望在 Vimeo 上看到的视频类型。"}}})," ",(0,m.Iu)({singular:"Learn more about what constitutes mature content in our {A}FAQ{/A}.",replacements:{A:e=>(0,y.jsx)(l.r,{variant:"inline-primary",href:"/help/sso?redirect_to=https://help.vimeo.com/hc/en-us/articles/12426157083537-Content-ratings",isExternal:!0,fontSize:"md",children:e})},dictionary:{es:{singular:"Obtenga m\xe1s informaci\xf3n sobre qu\xe9 hace parte del contenido para adultos en nuestras {A}preguntas frecuentes{/A}. "},"de-DE":{singular:"In unserem {A}FAQ-Bereich{/A} kannst du mehr \xfcber Inhalte erfahren, die nicht f\xfcr Minderj\xe4hrige geeignet sind."},"fr-FR":{singular:"Pour en savoir plus sur ce qui constitue un contenu pour adultes, consultez notre {A}FAQ{/A}."},"ja-JP":{singular:"成人向けコンテンツについては{A}よくある質問{/A}をご覧ください。"},"ko-KR":{singular:"어떠한 내용이 성인 콘텐츠에 해당하는지 {A}FAQ{/A}에서 자세히 알아보세요."},"pt-BR":{singular:"Saiba mais sobre o que \xe9 conte\xfado adulto nas nossas {A}Perguntas Frequentes{/A}."},"zh-CN":{singular:"请参阅我们的{A}常见问题解答{/A},详细了解哪些内容会构成成人内容。"}}})]}),(0,y.jsx)(c.E,{onChange:e=>{F(e)},value:A,children:(0,y.jsx)(a.K,{children:P.map(n=>{let t=e[n];return(0,y.jsx)(d.Y,{value:t.rating.toString(),children:t.name},t.name)})})}),z&&(0,y.jsx)(g.c,{children:(0,y.jsx)(a.K,{paddingLeft:"md",children:E.map(e=>{let t=n[e];return(0,y.jsx)(p.X,{id:t.rating.toString(),isChecked:C.has(t.rating.toString()),onChange:e=>{if(e.target.checked){let e=new Set(C);e.add(t.rating.toString()),R(e)}else{let e=new Set(C);e.delete(t.rating.toString()),R(e)}},children:t.name},`${e}-${t.rating}`)})})})]})}),(0,y.jsx)(h.m,{children:(0,y.jsx)(f.z,{variant:"primary",onClick:()=>{I(!0);let e={token:t};z?e.content_ratings=Array.from(C).map(e=>parseInt(e)):e.content_rating=parseInt(A),fetch("/settings",{method:"POST",credentials:"include",headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"},body:x(e)}).then(e=>{I(!1),e.ok?(b({title:(0,m.Iu)({singular:"Your preferences were successfully updated.",dictionary:{es:{singular:"Sus preferencias se actualizaron correctamente."},"de-DE":{singular:"Ihre Einstellungen wurden erfolgreich aktualisiert."},"fr-FR":{singular:"Vos pr\xe9f\xe9rences ont \xe9t\xe9 mises \xe0 jour."},"ja-JP":{singular:"設定が正常に更新されました。"},"ko-KR":{singular:"기본 설정이 성공적으로 업데이트되었습니다."},"pt-BR":{singular:"Suas prefer\xeancias foram atualizadas com sucesso."},"zh-CN":{singular:"您的偏好设置已成功更新。"}}}),status:"success"}),v(),window.location.reload()):b({title:(0,m.Iu)({singular:"Sorry, something went wrong. Please try again.",dictionary:{es:{singular:"Lo sentimos, algo sali\xf3 mal. Int\xe9ntelo de nuevo."},"de-DE":{singular:"Es tut uns leid. Hier ist etwas schiefgelaufen. Bitte versuche es erneut."},"fr-FR":{singular:"Une erreur s'est produite. Veuillez r\xe9essayer."},"ja-JP":{singular:"申し訳ありません、エラーが発生しました。 再度お試しください。"},"ko-KR":{singular:"죄송합니다, 문제가 발생했습니다. 다시 시도해 주세요."},"pt-BR":{singular:"Desculpe, algo deu errado. Tente novamente."},"zh-CN":{singular:"抱歉,出错了。请重试。"}}}),status:"error"})})},isLoading:k,children:(0,m.Iu)({singular:"Apply changes",dictionary:{es:{singular:"Aplicar cambios"},"de-DE":{singular:"\xc4nderungen speichern"},"fr-FR":{singular:"Enregistrer les modifications"},"ja-JP":{singular:"変更を適用"},"ko-KR":{singular:"변경 내용 적용"},"pt-BR":{singular:"Aplicar altera\xe7\xf5es"},"zh-CN":{singular:"应用更改"}}})})})]})}},564830:function(e,n,t){t.d(n,{n:function(){return i},o:function(){return r}});let r={"basic-standard":[.5,0,.5,1],"basic-entrance":[0,0,.5,1],"basic-exit":[.5,0,1,1],"expressive-standard":[.5,0,.2,1],"expressive-entrance":[0,0,.2,1],"expressive-exit":[.8,0,1,1],"linear-easing":[0,0,1,1]},i={xs:0,sm:.1,md:.16,lg:.24,xl:.32,"2xl":.4,"3xl":.5}},409878:function(e,n,t){t.d(n,{AV:function(){return i},XQ:function(){return s},Yq:function(){return a}});var r=t(919938),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function s(e,n){return Array.isArray(e)?e.map(e=>null===e?null:n(e)):(0,r.Kn)(e)?Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{}):null!=e?n(e):null}function a(e,n=i){let t={};return e.forEach((e,r)=>{let i=n[r];null!=e&&(t[i]=e)}),t}},826655:function(e,n,t){t.d(n,{eC:function(){return a}});var r=t(934508);t(652983),t(397458);var[i,s]=(0,r.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function a(e){return(0,r.k)({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}},56548:function(e,n,t){t.d(n,{Lj:function(){return r},Sh:function(){return a},js:function(){return s},p$:function(){return o}});var r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function s(e){var n;switch(null!=(n=null==e?void 0:e.direction)?n:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},o={enter:(e,n)=>({...e,delay:"number"==typeof n?n:null==n?void 0:n.enter}),exit:(e,n)=>({...e,delay:"number"==typeof n?n:null==n?void 0:n.exit})}}}]); //# sourceMappingURL=85598.eb10bcfdc2cd8ec4.js.map