1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b34dcb1e-0672-44b7-b192-31b95290f5ee",e._sentryDebugIdIdentifier="sentry-dbid-b34dcb1e-0672-44b7-b192-31b95290f5ee")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1670],{51670:(e,t,a)=>{a.r(t),a.d(t,{R18ObjectionClaimDialog:()=>A});var n=a(97360),r=a(25295),s=a(59995),i=a(94694),o=a(59673),c=a(19324),l=a(4818),d=a(67577),u=a(79041),m=a(32684),p=a(50387),f=a(36886),y=a(34560),b=a(20341),g=a(96946),h=a(43602),v=a(60587);let j={"ja-JP":{acceptedApplication:"ç³è«ãåçãã¾ãã",reasonNotForOver18:"18æ³ä»¥ä¸åãã§ã¯ãªãçç±ãæãã¦ãã ãã",investigationOneWeekNoResultNotification:"ãç³ãè¾¼ã¿ããã ããå
容ã®èª¿æ»ã«ã¯ä¸é±éç¨åº¦ãæéããã ãã¾ããåå¥ã®çµæã®å¤å®ã¯ãé£çµ¡ãããã¾ããã",comment:"ã³ã¡ã³ã",inputReason:"çç±ãå
¥åãã¦ãã ãã",reviewBasedOnApplicationNotGuaranteed:"â»ç³è«ãããå
容ããã¨ã«å¯©æ»ããã¦ããã ãã¾ããå¿
ãããè§£é¤ãããããã§ã¯ãªããã¨ããçè§£ãã ããã",close:"éãã",cancel:"ãã£ã³ã»ã«",submit:"éä¿¡",inputComment:"ã³ã¡ã³ããå
¥åãã¦ãã ãã",errorOccurred:"ã¨ã©ã¼ãçºçãã¾ãã"}};var x=a(65146);let I="claim-history";var N=a(21003);let w=async(e,t)=>{let{arg:{requestParams:a,config:n}}=t;await i.S.call(d.A,void 0,a,n)},A=({userId:e,noteId:t,onClose:a,onAccepted:d})=>{let A,_=(0,p.u)(),O=(0,s.Ru)({lang:_,dict:j}),[k,P]=(0,c.useState)(!1),{trigger:C,isMutating:M}=(0,u.A)(i.S.path(),w),T=(0,m.L)(),E=(0,o._l)(),{control:R,handleSubmit:S,formState:{isValid:D,isValidating:q}}=(0,l.mN)({mode:"onChange",defaultValues:{comment:""},resolver:(0,r.t)((A=(0,s.Ru)({lang:_,dict:j}),(0,N.Ik)().shape({comment:(0,N.Yj)().required(A("inputComment"))})))}
1),F=D&&!1===q&&!1===M,J=(0,c.useCallback)(async a=>{if(!1!==F)try{let n={userId:e,contentId:t,comment:a.comment,contentType:"Note",claimType:"porn"};await C({requestParams:n,config:T}),(e=>{let t=x.getAndJsonParse(I)??[];if(t.find(t=>t.userId===e.userId&&t.contentId===e.contentId&&t.claimType===e.claimType))return;let a=[...t,e];x.set(I,JSON.stringify(a))})(n),P(!0),d?.()}catch(e){if("string"==typeof e?.data?.data.error){let t=e.data.data.error;E?.danger?.(t);return}E?.danger?.(O("errorOccurred"))}},[F,T,t,d,O,E,C,e]);return(0,c.useEffect)(()=>{var a;a={userId:e,contentId:t,claimType:"porn"},(x.getAndJsonParse(I)??[]).find(e=>e.userId===a.userId&&e.contentId===a.contentId&&e.claimType===a.claimType)&&(P(!0),d?.())},[t,d,e]),(0,n.jsxs)(f.E,{modalPurpose:"r18ObjectionClaim",onDismiss:a,children:[(0,n.jsx)(y.A,{children:k?O("acceptedApplication"):O("reasonNotForOver18")}),(0,n.jsx)(b.A,{unsafeClassName:"p-10",children:k?(0,n.jsx)("p",{children:O("investigationOneWeekNoResultNotification")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.xI,{name:"comment",control:R,render:({field:e,fieldState:{error:t}})=>(0,n.jsx)(g.A,{...e,label:O("comment"),description:O("inputReason"),isRequired:!0,hasNecessityIndicator:!0,validationState:"string"==typeof t?.message?"invalid":"valid",errorMessage:t?.message})}),(0,n.jsx)("p",{className:"mt-4 text-text-secondary text-xs",children:O("reviewBasedOnApplicationNotGuaranteed")})]})}),(0,n.jsx)(h.A,{placement:k?"center":"right",children:k?(0,n.jsx)(v.A,{variant:"basic",size:"s",onPress:a,children:O("close")}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{variant:"basic",size:"s",onPress:a,children:O("cancel")}),(0,n.jsx)(v.A,{variant:"primaryNext",size:"s",isDisabled:!1===F,onPress:()=>{S(J)()},children:O("submit")})]})})]})}},94694:(e,t,a)=>{a.d(t,{S:()=>s});var n=a(2893),r=a(76854),s=(0,n.Y)(()=>"/v2/objection_claims",async(e,t,a,n)=>{if(void 0===a)throw Error("requestParams is required");await e.post(t,{objection_claim:(0,r.fy)(a)},n)})}}]);
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.