PageSourceSearch

https://app.optery.com/_next/static/chunks/12622.959a3507c993bed7.js

js optery.com collected 2026-09-24 10:09:45 UTC 6,742 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f0ed0206-f879-458a-9966-7344f658fcb1",e._sentryDebugIdIdentifier="sentry-dbid-f0ed0206-f879-458a-9966-7344f658fcb1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12622,99330],{12622:(e,a,l)=>{"use strict";l.r(a),l.d(a,{default:()=>T});var n=l(54568),t=l(94903),r=l(81810),c=l(95839),o=l(99221),i=l(81645),s=l(87645),d=l(91848),_=l(12213),p=l(17665),b=l(42925),m=l(82175),u=l(33971),h=l(7620),x=l(91459),g=l(70955),f=l(99330),k=l.n(f),y=l(69209);let j=(0,b.default)(()=>l.e(85359).then(l.bind(l,85359)),{loadableGenerated:{webpack:()=>[85359]}}),v=(0,b.default)(()=>l.e(82513).then(l.bind(l,4894)),{loadableGenerated:{webpack:()=>[4894]}}),w=(0,p.A)(s.A)(e=>{let{theme:a}=e;return{margin:0,padding:a.spacing(2),backgroundColor:"var(--color-grey-20)",".MuiTypography-h6":{color:"var(--color-grey-100)",fontSize:20,fontWeight:"600",letterSpacing:"0.01em",lineHeight:"30px"},".MuiIconButton-root":{position:"absolute",right:a.spacing(1),top:a.spacing(1),color:"var(--color-grey-60)"}}}),N=e=>{let{children:a,onClose:l,loading:c,...o}=e,i=(0,u.c)("Header.Todos");return(0,n.jsxs)(w,{...o,children:[(0,n.jsx)(r.A,{children:a}),l?(0,n.jsx)(d.A,{"aria-label":i("close_button"),onClick:l,disabled:c,size:"large",children:(0,n.jsx)(t.A,{style:{color:"var(--color-grey-80)"}})}):null]})},A=(0,p.A)(i.A)(e=>{let{theme:a}=e;return{padding:a.spacing(3),border:0}}),C=e=>(0,n.jsx)(A,{...e}),B=(0,p.A)(o.A)(()=>({margin:0,padding:24,background:"var(--color-grey-20)",boxShadow:"0px -4px 4px var(--color-grey-box-shadow)"})),S=e=>(0,n.jsx)(B,{...e}),T=e=>{let{open:a=!0,title:l,onClose:t,loading:r,message:o="",memberPlan
1Handler:i,userName:s,feedbackGiven:d,setFeedbackGiven:p}=e,b=h.useId(),f=(0,u.c)("ManageFamily"),w=(0,_.A)(),A=(0,y.j)(),[B,T]=(0,h.useState)(""),[H,W]=(0,h.useState)([]),[E,G]=(0,h.useState)(null),[I,D]=(0,h.useState)(!1),[M,O]=(0,h.useState)(null),R=()=>{t(),setTimeout(()=>{T(""),G(""),D(""),p(!1)},200)},L=async()=>{A((0,g.Qo)()),await (0,x.A)({URL:"https://api.optery.com/api/cancellations/feedback",apiParams:{category:E,feedback:B,is_allowed_to_reach_out:!0},method:"POST"}).then(async()=>{await i(!0),2===E?p(!0):R()}).catch(e=>{O(e.message),A((0,g.NP)())})};(0,h.useEffect)(()=>{var e;let a=new AbortController;return e=a.signal,0===H.length&&(O(!1),(0,x.A)({URL:"https://api.optery.com/api/cancellations/categories",signal:e}).then(e=>{W(Array.isArray(null==e?void 0:e.data)?null==e?void 0:e.data:[])}).catch(e=>{(null==e?void 0:e.name)!=="AbortError"&&(null==e?void 0:e.code)!=="ERR_CANCELED"&&O(e.message)})),()=>a.abort()},[]);let P={[w.breakpoints.up("md")]:{minWidth:844},[w.breakpoints.down("md")]:{minWidth:"95%",maxHeight:"calc(100% - 20px)"}},F={[w.breakpoints.up("md")]:{maxWidth:580,minWidth:580},[w.breakpoints.down("md")]:{maxWidth:580,maxHeight:"calc(100% - 20px)"},[w.breakpoints.down("sm")]:{minWidth:"95%",maxHeight:"calc(100% - 20px)"}},U=2===E&&d;return(0,n.jsxs)(c.A,{onClose:R,"aria-labelledby":b,open:a,maxWidth:"lg",sx:{"& .MuiDialog-container":{"& .MuiPaper-root":{backgroundColor:"var(--color-white)",color:"var(--color-grey-100)",...I?F:P}},"& .MuiBackdrop-root":{backgroundColor:"var(--color-grey-100-op-25)"}},children:[(0,n.jsx)(N,{id:b,onClose:R,loading:r,children:l??f("modals.feedback.feedback_modal_title")}),(0,n.jsxs)(C,{dividers:!0,children:[M?(0,n.jsx)(v,{message:o,severity:"error"}):null,U&&(0,n.jsx)(j,{}),!d&&(0,n.jsx)(n.Fragment,{children:I?(0,n.jsx)("div",{className:`flex flex-col items-center ${k().customWidth}`,children:(0,n.jsxs)("div",{className:"flex flex-col items-center",children:[(0,n.jsxs)("div",{className:"text-black text-center mt-4 text-base font-semibold",children:[f("modals.feedback.text_area_prompt")," ",(0,n.jsx)("span",{className:k().planName,children:f("modals.feedback.free_basic_plan")})," "]}),(0,n.jsx)("textarea",{className:"mt-4 w-full border-2 border-(--color-grey-40) px-3 py-2 rounded resize-none text-sm",rows:5,value:B,onChange:e=>T(e.target.value),placeholder:f("modals.feedback.text_area_placeholder"),"aria-label":f("modals.feedback.text_area_placeholder")})]})}):(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:k().modalTitle,children:f.rich("modals.feedback.confirm_switch_prompt",{userName:e=>(0,n.jsxs)("span",{style:{color:"grey"},children:[e," "]}),planName:e=>(0,n.jsx)("span",{className:k().planName,children:e}),userNameVal:s,planNameVal:f("modals.feedback.free_basic_plan")})}),(0,n.jsxs)("div",{className:k().categories,children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("h3",{children:[f("modals.feedback.share_feedback_prompt")," "]}),(0,n.jsx)("ul",{children:null==H?void 0:H.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)("label",{className:k().radioContainer,onClick:()=>{G(e.id),T("")},children:[(0,n.jsx)("input",{type:"radio",name:"category",id:String(e.id),value:e.id,checked:E===e.id,readOnly:!0,"aria-label":f("modals.feedback.text_area_placeholder")}),(0,n.jsx)("p",{children:(0,n.jsx)("span",{})})," ",e.category]})},e.id))})]}),(0,n.jsx)("figure",{children:(0,n.jsx)(m.default,{src:"/images/image-bg-cancellation.svg",width:216,height:283,alt:f("accessibility.cancellation_alt")})})]})]})})]}),(0,n.jsx)(S,{children:(0,n.jsxs)("div",{className:k().btnGroup,children:[!U&&(0,n.jsx)("button",{className:k().btnActive,onClick:R,children:f("modals.feedback.never_mind_btn")}),(0,n.jsx)("button",{className:k().btnCancel,style:{background:"var(--color-primary)"},disabled:!E,onClick:()=>{U?R():I&&!U?L().then(()=>{}):D(!0)},children:U?f("modals.feedback.skip_btn"):I?f("modals.feedback.confirm_btn"):f("modals.feedback.submit_btn")})]})})]})}},99330:e=>{e.exports={container:"cancel-plan_container___wui_",title:"cancel-plan_title__4TY0L",actionBtn:"cancel-plan_actionBtn__wH_9u",btnCancel:"cancel-plan_btnCancel__P6Vqt",btnActive:"cancel-plan_btnActive__1OxJb",linkButton:"cancel-plan_linkButton__IgqYa",modalTitle:"cancel-plan_modalTitle__3F5NU",planName:"cancel-plan_planName__XRuop",divider:"cancel-plan_divider__k7Kgt",downArrow:"cancel-plan_downArrow__rrriS",categories:"cancel-plan_categories__iBh22",radioContainer:"cancel-plan_radioContainer__2xurk",feedback:"cancel-plan_feedback__meYD6",btnGroup:"cancel-plan_btnGroup__rUfZy",pauseBtnGroup:"cancel-plan_pauseBtnGroup__H11qH",OkBtn:"cancel-plan_OkBtn__RgxTY",customWidth:"cancel-plan_customWidth__9sNHA",formControl:"cancel-plan_formControl__sRFMO",hr:"
1cancel-plan_hr__Ou5bH",liner:"cancel-plan_liner__CfG_A",smallText:"cancel-plan_smallText___j1BH",canSubBtn:"cancel-plan_canSubBtn__VtEwH",btn:"cancel-plan_btn__cLiTS"}}}]);

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.