PageSourceSearch

https://my.cozi.com/6035.b960c3f11eb351d0cc67.chunk.js

js cozi.com collected 2026-09-24 09:12:29 UTC 146,503 bytes, 2 lines download raw bytes

1/*! For license information please see 6035.b960c3f11eb351d0cc67.chunk.js.LICENSE.txt */
2(self.webpackChunkcozi_web=self.webpackChunkcozi_web||[]).push([[6035],{J8v7(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>ji});var o,a,r=n("q1tI"),i=n("Vg22"),l=n("4SJ7"),s=n("TJpk"),c=n("pn57"),u=n("kNGT"),d=n("8aOJ"),f=n("YMDX"),p=n("vVXM"),m=n("//jV"),y=n("5Te5");function g(e,t,n,o){a||(a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={children:void 0}),1===i)t.children=o;else if(i>1){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+3];t.children=l}if(t&&r)for(var c in r)void 0===t[c]&&(t[c]=r[c]);else t||(t=r||{});return{$$typeof:a,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const v=function(){return o||(o=g(y.Vm,{alignRight:!0,topPadding:!0,item:!0,md:2,xs:2},void 0,g(m.A,{})))};var h=n("LK69"),b=n("/hCz"),w=n("DGMS"),C=n("HZ+W"),A=n("Wtkq"),S=n("v7lY"),M=n("tFsR"),k=n("xzGS"),O=n("xbIW"),I=n("vKNI"),x=n("8aoJ"),P=n("1a94"),D=n("F0WN"),T=n("llZP"),E="app.components.SubscribeHolidays";const L=(0,l.YK)({subscribe:{id:"".concat(E,".subscribe"),defaultMessage:"Subscribe"},holiday:{id:"".concat(E,".holiday"),defaultMessage:"Holidays"},usHoliday:{id:"".concat(E,".usHoliday"),defaultMessage:"US Holidays"},ukHoliday:{id:"".concat(E,".ukHoliday"),defaultMessage:"UK Holidays"},auHoliday:{id:"".concat(E,".auHoliday"),defaultMessage:"AU Holidays"},caHoliday:{id:"".concat(E,".caHoliday"),defaultMessage:"CA Holidays"}});var z="app.components.Calendars";const _=(0,l.YK)({subscribedHolidays:{id:"".concat(z,".subscribedHolidays"),defaultMessage:"Subscribed Holidays"},browseAndSelect:{id:"".concat(z,".browseAndSelect"),defaultMessage:"Browse and select"},sharedCoziCalendars:{id:"".concat(z,".sharedCoziCalendars"),defaultMessage:"Shared Cozi Calendars"},shareCalendars:{id:"".concat(z,".shareCalendars"),defaultMessage:"Share Calendars"},connectedCalendars:{id:"".concat(z,".connectedCalendars"),defaultMessage:"Connected Calendars"},noneYet:{id:"".concat(z,".noneYet"),defaultMessage:"None yet"},allEvents:{id:"".concat(z,".allEvents"),defaultMessage:"All events"}});var j=n("vOnD"),N=n("meAw"),U=n.n(N),F=n("u/IK"),R=U()(j.Ay.div.withConfig({displayName:"styles__CalendarSectionTitle",componentId:"sc-1wbbm47-0"})(["display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:",";p{margin:0px;}p:nth-child(2){color:",";font-size:14px;}"],function(e){return e.theme.palette.black.main},function(e){return e.theme.palette.gray.cDark2})),H=(U()(j.Ay.div.withConfig({displayName:"styles__ShareableCalendarsHeader",componentId:"sc-1wbbm47-1"})(["padding:16px 0;border-bottom:solid 1px ",";color:",";font-size:14px;line-height:1.43;letter-spacing:0.25px;"],function(e){return e.theme.palette.gray.cDark4},function(e){return e.theme.palette.gray.cDark2})),U()((0,j.Ay)(F.List).withConfig({displayName:"styles__StyledList",componentId:"sc-1wbbm47-2"})(["&&{padding-top:0px;}"])),U()(j.Ay.div.withConfig({displayName:"styles__SubTitle",componentId:"sc-1wbbm47-3"})(["margin:32px 58px 12px 16px;font-size:14px;font-weight:600;"])),U()((0,j.Ay)(F.FormControlLabel).withConfig({displayName:"styles__StyledFormControlLabel",componentId:"sc-1wbbm47-4"})(["justify-content:space-between;font-size:16px;line-height:1.5;padding-right:19px;"])),n("qYve")),K=n("nDh8");const Y={AUSTRALIAN_HOLIDAYS:"7862e47d7deda10c6c738efffc78f5a962d1c25f",CANADIAN_HOLIDAYS:"19f10fd88884fc0be98b9948a2a755500f9d0b03",UK_HOLIDAYS:"6626b6be57cb455dd09163fdb6739d78d7923cf1",US_HOLIDAYS:"0ff00c00f4106e69fe473d8941238e971025b7cb",NEWS_AND_UPDATES:"2310831940b8c6ce4943241679e2cbdb1724822e"};var B,$=n("tTdx"),G=n("b+/M"),V=U()(j.Ay.h3.withConfig({displayName:"styles__SubTitle",componentId:"gyic6k-0"})(["font-size:1.1rem;font-weight:600;"])),W=U()((0,j.Ay)(F.FormControlLabel).withConfig({displayName:"styles__StyledFormControlLabel",componentId:"gyic6k-1"})(["justify-content:space-between;font-size:16px;line-height:1.5;padding-right:19px;"]));function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Z(e,t,n,o){B||(B="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:B,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Q(Object(n),!0).forEach(function(t){X(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=J(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const ne=(0,l.j4)(function(e){var t=e.isOpen,n=e.onClose,o=e.onSave,a=e.intl,i=e.subbedHolidays,l=a.formatMessage(L.usHoliday),s=a.formatMessage(L.ukHoliday),c=a.formatMessage(L.auHoliday),u=a.formatMessage(L.caHoliday),d=ee((0,r.useState)({US:!(!i||!i.length)&&i.includes(l),UK:!(!i||!i.length)&&i.includes(s),AU:!(!i||!i.length)&&i.includes(c),CA:!(!i||!i.length)&&i.includes(u)}),2),f=d[0],p=d[1],m=f.US,y=f.UK,g=f.AU,v=f.CA,h=function(e){p(q(q({},f),{},X({},e.target.name,e.target.checked)))};return Z($.A,{isDialogOpen:t,onDialogClose:n,rightToolbarActions:Z(H.$F,{a11yLabel:K.V.Save,onClick:function(){return e=[],t=[],m&&!i.includes(l)?e.push(Y.US_HOLIDAYS):!m&&i.includes(l)&&t.push(Y.US_HOLIDAYS),y&&!i.includes(s)?e.push(Y.UK_HOLIDAYS):!y&&i.includes(s)&&t.push(Y.UK_HOLIDAYS),g&&!i.includes(c)?e.push(Y.AUSTRALIAN_HOLIDAYS):!g&&i.includes(c)&&t.push(Y.AUSTRALIAN_HOLIDAYS),v&&!i.includes(u)?e.push(Y.CANADIAN_HOLIDAYS):!v&&i.includes(u)&&t.push(Y.CANADIAN_HOLIDAYS),o(e,t),void n();var e,t}},void 0,K.V.Save),dialogTitle:a.formatMessage(L.subscribe)},void 0,Z(F.DialogContent,{},void 0,Z(V,{},void 0,a.formatMessage(L.holiday)),Z(F.FormGroup,{},void 0,Z(W,{control:Z(G.LO,{checked:m,onChange:h,name:"US"}),label:l,"aria-label":l,labelPlacement:"start"}),Z(W,{control:Z(G.LO,{checked:y,onChange:h,name:"UK"}),"aria-label":s,label:s,labelPlacement:"start"}),Z(W,{control:Z(G.LO,{checked:g,onChange:h,name:"AU"}),"aria-label":c,label:c,labelPlacement:"start"}),Z(W,{control:Z(G.LO,{checked:v,onChange:h,name:"CA"}),"aria-label":u,label:u,labelPlacement:"start"}))))});var oe;function ae(e,t,n,o){oe||(oe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:oe,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const le=(0,l.j4)(function(e){var t=e.intl,n=e.onSaveHolidays,o=e.subbedHolidays,a=re((0,r.useState)(t.formatMessage(_.browseAndSelect)),2),i=a[0],l=a[1],s=re((0,r.useState)(!1),2),c=s[0],u=s[1],d=re((0,r.useState)([]),2),f=d[0],p=d[1];(0,r.useEffect)(function(){var e=[];o&&o.length>0&&(m(Y.US_HOLIDAYS)&&e.push(t.formatMessage(L.usHoliday)),m(Y.UK_HOLIDAYS)&&e.push(t.formatMessage(L.ukHoliday)),m(Y.AUSTRALIAN_HOLIDAYS)&&e.push(t.formatMessage(L.auHoliday)),m(Y.CANADIAN_HOLIDAYS)&&e.push(t.formatMessage(L.caHoliday))),e.length>0?(l(e.join(", ")),p(e)):(l(t.formatMessage(_.browseAndSelect)),p([]))},[o]);var m=function(e){return o.some(function(t){return t.calendar.id===e})};return r.createElement(r.Fragment,null,ae(R,{onClick:function(e){(0,D.oy)(e,function(){u(!0),(0,D.Kh)(!0)})},onKeyDown:function(e){(0,D.J1)(e,function(){u(!0),(0,D.Kh)(!0)})},role:"button",tabIndex:"0"},void 0,ae("div",{},void 0,ae("p",{},void 0,t.formatMessage(_.subscribedHolidays)),ae("p",{},void 0,i)),(0,T.FA)(function(){})),c&&ae(ne,{onSave:function(e,t){return n(e,t)},isOpen:c,onClose:function(){u(!1),(0,D.Kh)(!1)},subbedHolidays:f}))});var se=n("D8F/"),ce=n("IMKx"),ue=n("3xX3"),de=n("ruB0"),fe=n("Vyfo"),pe=n("jFa5"),me=n("1e/2"),ye="URL-toggle-announce",ge="connect-calendar-announce",ve=U()(j.Ay.div.withConfig({displayName:"styles__ShareableCalendarsHeader",componentId:"sc-1trvz9k-0"})(["padding:16px 0;border-bottom:solid 1px ",";color:",";font-size:14px;line-height:1.43;letter-spacing:0.25px;"],function(e){return e.theme.palette.gray.cDark4},function(e){return e.theme.palette.gray.cDark1})),he=U()((0,j.Ay)(F.List).withConfig({displayName:"styles__StyledList",componentId:"sc-1trvz9k-1"})(["&&{padding-top:0px;}"])),be=U()((0,j.Ay)(F.ListItem).withConfig({displayName:"styles__StyledShareableCalendar",componentId:"sc-1trvz9k-2"})(["&&{padding:10px;padding-left:0;border-bottom:solid 1px ",";display:flex;flex-direction:column;}"],function(e){return e.theme.palette.gray.cDark4})),we=U()(j.Ay.div.withConfig({displayName:"styles__CheckableCalendar",componentId:"sc-1trvz9k-3"})(["&&{> div:first-child{padding-top:9px;}width:100%;display:flex;justify-content:space-between;flex-direction:row;label > span:nth-child(2){font-size:14px;line-height:1.43;letter-spacing:0.25px;text-align:right;color:",";}}"],function(e){return e.theme.palette.gray.cDark2})),Ce=U()((0,j.Ay)(F.DialogContent).withConfig({displayName:"styles__StyledDialogContent",componentId:"sc-1trvz9k-4"})(["&&{flex:0 1 auto;p{color:",";font-size:14px;line-height:1.43;letter-spacing:0.25px;}}"],function(e){return e.theme.palette.gray.cDark2})),Ae=U()((0,j.Ay)(F.DialogActions).withConfig({displayName:"styles__StyledDialogActions",componentId:"sc-1trvz9k-5"})(["&&{justify-content:space-evenly;button{margin:0;}}"])),Se=U()(j.Ay.div.withConfig({displayName:"styles__URLdiv",componentId:"sc-1trvz9k-6"})(["&&{background-color:",";border-radius:5px;padding:8px 16px;font-size:12px;font-weight:bold;p{font-size:16px;font-weight:normal;margin-top:4px;margin-bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}}"],function(e){return e.theme.palette.gray.cDark4}
2)),Me="app.components.ShareableCalendars";const ke=(0,l.YK)({calendarSharingInfo:{id:"".concat(Me,".calendarSharingInfo"),defaultMessage:"Your Cozi calendar is only accessible to you and the people in your account. You can share all the appointments for a single family member or the entire household. In either case, the shared link will not include events from other imported calendars."},getCoziURL:{id:"".concat(Me,".getCoziURL"),defaultMessage:"View or send Cozi URL"},shared:{id:"".concat(Me,".shared"),defaultMessage:"Shared"},unshared:{id:"".concat(Me,".unshared"),defaultMessage:"Unshared"},confirmUnshare:{id:"".concat(Me,".confirmUnshare"),defaultMessage:"Are you sure you want to deactivate the shared link?"},confirmUnshareBody:{id:"".concat(Me,".confirmUnshareBody"),defaultMessage:"This action cannot be undone. If you would like to share your calendar again after deactivating your current link, you will need to reactivate and re-share a new link."},privateURLMessage:{id:"".concat(Me,".privateURLMessage"),defaultMessage:"This is the private URL which you can give to other people so they can view {name}’s appointments."},checkboxForPerson:{id:"".concat(Me,".checkboxForPerson"),defaultMessage:"Checkbox to share {name}’s appointments."},emailURL:{id:"".concat(Me,".emailURL"),defaultMessage:"Email Cozi URL"},copyURL:{id:"".concat(Me,".copyURL"),defaultMessage:"Copy Cozi URL"},UrlCopied:{id:"".concat(Me,".UrlCopied"),defaultMessage:"URL copied to the clipboard"},wontBeSold:{id:"".concat(Me,".wontBeSold"),defaultMessage:"Message recipients won’t have to sign up for Cozi, and their addresses won’t be sold."},messageWillInclude:{id:"".concat(Me,".messageWillInclude"),defaultMessage:"The message will include the URL for the calendar you’re sharing, as well as instructions for adding that URL to calendar applications like Cozi, Google, Apple iCal and Microsoft Outlook."},calendarOfAllEvents:{id:"".concat(Me,".calendarOfAllEvents"),defaultMessage:"Calendar of all events"},viewCalendarURL:{id:"".concat(Me,".viewCalendarURL"),defaultMessage:"View Calendar URL"},emailSubject:{id:"".concat(Me,".emailSubject"),defaultMessage:"{name} has shared calendar appointments with you"},emailBodyHeader:{id:"".concat(Me,".emailBodyHeader"),defaultMessage:"Add these appointments to your own online calendar"},emailBody1:{id:"".concat(Me,".emailBody1"),defaultMessage:"{name} is sharing appointments from their Cozi calendar with you. You can add these appointments to your internet calendar to view them in read-only format. Your receiving calendar will then automatically reflect any updates made later in Cozi."},emailBody2:{id:"".concat(Me,".emailBody2"),defaultMessage:'The specific steps for syncing Cozi with another calendar depend on which type of internet calendar you use. Please visit our help page for "How to Use Cozi with Other Calendars" (https://www.cozi.com/using-cozi-with-other-calendars/), find your internet calendar (i.e. Google Calendar, Microsoft Outlook, Apple iCal, etc.), and follow the instructions for how to add the Cozi iCal URL listed below to your type of calendar.'},linkHeader:{id:"".concat(Me,".linkHeader"),defaultMessage:"Calendar link:"},emailBody3:{id:"".concat(Me,".emailBody3"),defaultMessage:"Existing Cozi appointments will display immediately in your internet calendar. Future updates from Cozi will update automatically but may take a few hours, depending on how frequently your internet calendar check for changes to incoming iCals."},emailBody4:{id:"".concat(Me,".emailBody4"),defaultMessage:'Tip: If you don’t have an online calendar but are interested in trying one, you could create your own Cozi account. Cozi (https://www.cozi.com/) is designed for families and is free!"'},urlDivTitle:{id:"".concat(Me,".urlDivTitle"),defaultMessage:"ICS or iCal URL"}});var Oe;function Ie(e,t,n,o){Oe||(Oe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Oe,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const De=(0,l.j4)(function(e){var t=e.personID,n=e.personName,o=e.familyName,a=e.color,l=e.intl,s=e.sharingEnabled,c=e.shareableURL,u=e.loggedInUser,d=xe((0,r.useState)(!1),2),f=d[0],p=d[1],m=xe((0,r.useState)(!1),2),y=m[0],g=m[1],v=xe((0,r.useState)(!1),2),h=v[0],b=v[1],w=(0,i.useDispatch)();(0,r.useEffect)(function(){s&&p(!0)},[s]);var C,A=(0,r.useCallback)(function(e){w((0,ce.D9)(e,t))},[w]);return r.createElement(r.Fragment,null,Ie(be,{},void 0,Ie(we,{},void 0,Ie(fe.y,{personName:n,color:a},t),Ie(F.FormControlLabel,{control:Ie(G.LO,{checked:f,onChange:function(e){e.target.checked?(A(!0),p(e.target.checked)):g(!0)},inputProps:{"aria-label":l.formatMessage(ke.checkboxForPerson,{name:n})}}),label:f?l.formatMessage(ke.shared):l.formatMessage(ke.unshared),labelPlacement:"start"})),f&&Ie(H.Ad,{onClick:function(){b(!0)},a11yLabel:"".concat(l.formatMessage(ke.getCoziURL)," for ").concat(n)},void 0,l.formatMessage(ke.getCoziURL))),Ie(pe.A,{isOpen:y,onOverlayClose:function(){return g(!1)},titleComponent:l.formatMessage(ke.confirmUnshare),buttonComponents:(C=[],C.push({label:K.V.No,action:function(){return g(!1)}}),C.push({label:K.V.Yes,action:function(){return A(!1),g(!1),void p(!1)}}),C),justified:!0,overlayAriaLabelID:l.formatMessage(ke.confirmUnshare)},void 0,l.formatMessage(ke.confirmUnshareBody)),Ie($.A,{isDialogOpen:h,onDialogClose:function(){return b(!1)},dialogTitle:l.formatMessage(ke.viewCalendarURL)},void 0,Ie(Ce,{},void 0,Ie("p",{},void 0,l.formatMessage(ke.privateURLMessage,{name:o?"".concat(o," Family"):n})),Ie(Se,{},void 0,Ie("span",{},void 0,l.formatMessage(ke.urlDivTitle)),Ie("p",{},void 0,c))),Ie(Ae,{},void 0,Ie(H.Ay,{onClick:function(){var e=u,t=l.formatMessage(ke.emailSubject,{name:e}),n=l.formatMessage(ke.emailBodyHeader),o=l.formatMessage(ke.emailBody1,{name:e}),a=l.formatMessage(ke.emailBody2),r=l.formatMessage(ke.linkHeader),i=l.formatMessage(ke.emailBody3),s=l.formatMessage(ke.emailBody4),d="mailto:?subject=".concat(t,"&body=").concat(n,"%0A%0A").concat(o,"%0A%0A").concat(a,"%0A%0A").concat(r,"%0A").concat(c,"%0A%0A").concat(i,"%0A%0A").concat(s);window.location=d},a11yLabel:l.formatMessage(ke.emailURL)},void 0,l.formatMessage(ke.emailURL)),Ie(H.Ay,{onClick:function(){navigator.clipboard.writeText(c);var e=l.formatMessage(ke.UrlCopied);w((0,me.D_)(!0,e,ye))},a11yLabel:l.formatMessage(ke.copyURL)},void 0,l.formatMessage(ke.copyURL))),Ie(Ce,{},void 0,Ie("p",{},void 0,l.formatMessage(ke.wontBeSold)),Ie("p",{},void 0,l.formatMessage(ke.messageWillInclude))),Ie("div",{"aria-live":"assertive"},void 0,Ie(S.e,{},void 0,Ie("span",{id:ye})))))});var Te;function Ee(e,t,n,o){Te||(Te="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Te,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const Le=(0,l.j4)(function(e){var t,n,o=e.account,a=e.account.persons,i=e.intl,s=e.shareableCalendarStatuses,c=e.allID,u=(0,de.ap)(),d=(0,se.sq)(u,o.persons),f=d?d.name:"",p=s.feeds,m=a.map(function(e){var a,r,i=(0,se.AQ)(e.accountPersonId,o);p&&(Object.keys(p).forEach(function(t){t===e.accountPersonId&&p[t].status===T.vP.Enabled&&(a=!0,r=p[t].url)}),p[c]&&p[c].status===T.vP.Enabled&&(t=!0,n=p[c].url));
2return Ee(De,{personID:e.accountPersonId,personName:e.name,color:i,sharingEnabled:a,shareableURL:r,loggedInUser:f},e.accountPersonId)});return r.createElement(r.Fragment,null,Ee(ve,{},void 0,r.createElement(l.sA,ke.calendarSharingInfo)),Ee(he,{},void 0,Ee(De,{personName:i.formatMessage(ke.calendarOfAllEvents),familyName:o.householdData.name,personID:c,sharingEnabled:t,shareableURL:n,loggedInUser:f}),m))});var ze;function _e(e,t,n,o){ze||(ze="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:ze,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Ue=(0,c.Zz)((0,u.A)())((0,l.j4)(function(e){var t=e.intl,n=e.account,o=je((0,r.useState)(!1),2),a=o[0],l=o[1],s=je((0,r.useState)(t.formatMessage(_.noneYet)),2),c=s[0],u=s[1],d=(0,i.useSelector)(ue.Ku),f=d.feeds;(0,r.useEffect)(function(){g()},[]),(0,r.useEffect)(function(){m()},[f]);var p="00000000-0000-0000-0000-000000000000",m=function(){if(void 0!==f){var e=Object.keys(f),o=n.personIds,a=Object.keys(o);a.push(p);var r=e.filter(function(e){return a.includes(e)&&f[e].status===T.vP.Enabled}).map(function(e){return e!==p?(0,se.J)(e,n).name:t.formatMessage(_.allEvents)});0!==r.length?u(r.join(", ")):u(t.formatMessage(_.noneYet))}},y=(0,i.useDispatch)(),g=(0,r.useCallback)(function(){y((0,ce.Pk)())},[y]),v=function(){l(!0),(0,D.Kh)(!0)};return r.createElement(r.Fragment,null,_e(R,{tabIndex:"0",role:"button",onClick:function(e){(0,D.oy)(e,function(){return v()})},onKeyDown:function(e){(0,D.J1)(e,function(){return v()})}},void 0,_e("div",{},void 0,_e("p",{},void 0,t.formatMessage(_.sharedCoziCalendars)),_e("p",{},void 0,c)),(0,T.FA)(function(){})),_e($.A,{isDialogOpen:a,onDialogClose:function(){l(!1),(0,D.Kh)(!1)},dialogTitle:t.formatMessage(_.shareCalendars)},void 0,_e(F.DialogContent,{},void 0,_e(Le,{shareableCalendarStatuses:d,account:n,allID:p}))))}));var Fe=n("HHsm"),Re=n("zoJz"),He=n("+bVT"),Ke=n.n(He),Ye=n("MEu6"),Be=n.n(Ye),$e=n("AdYY"),Ge=n.n($e);const Ve=n.p+"8b7d4966703cd78401afba6c8425a57a.svg";var We=n("Gamu"),Je=n("iTgP"),Ze=n("9iXf"),Qe="app.components.InternetCalendars";const qe=(0,l.YK)({connectedCalendarInfo:{id:"".concat(Qe,".connectedCalendarInfo"),defaultMessage:"Subscribe to your Google, Apple, Outlook, or shared public calendars."},usingCozi:{id:"".concat(Qe,".usingCozi"),defaultMessage:"Using Cozi with other calendars."},goodNewsEverybody:{id:"".concat(Qe,".goodNewsEverybody"),defaultMessage:"Good news - if you use another calendar program, you can connect it with Cozi. For instructions, click the calendar you'd like to integrate with:"},addACalendar:{id:"".concat(Qe,".addACalendar"),defaultMessage:"+ Add a calendar from a URL"},addAURL:{id:"".concat(Qe,".addAURL"),defaultMessage:"Add from URL"},pasteInstructions:{id:"".concat(Qe,".pasteInstructions"),defaultMessage:"Paste the url from your external 
2calendar (Google, Apple, Outlook, etc.): "},connectCalendar:{id:"".concat(Qe,".connectCalendar"),defaultMessage:"Connect Calendar"},cancel:{id:"".concat(Qe,".cancel"),defaultMessage:"Cancel"},next:{id:"".concat(Qe,".next"),defaultMessage:"Next"},all:{id:"".concat(Qe,".all"),defaultMessage:"All"},urlFieldLabel:{id:"".concat(Qe,".urlFieldLabel"),defaultMessage:"ICS or iCal URL"},importFromGoogle:{id:"".concat(Qe,".importFromGoogle"),defaultMessage:"Import from Google"},importFromApple:{id:"".concat(Qe,".importFromApple"),defaultMessage:"Import from Apple"},importFromOutlook:{id:"".concat(Qe,".importFromOutlook"),defaultMessage:"Import from Outlook"},google:{id:"".concat(Qe,".google"),defaultMessage:"Google"},apple:{id:"".concat(Qe,".apple"),defaultMessage:"Apple"},outlook:{id:"".concat(Qe,".outlook"),defaultMessage:"Outlook"},whoGetsSubscribed:{id:"".concat(Qe,".whoGetsSubscribed"),defaultMessage:"Who gets subscribed?"},addedCalendars:{id:"".concat(Qe,".addedCalendars"),defaultMessage:"Added calendars"},errorURL:{id:"".concat(Qe,".errorURL"),defaultMessage:"Invalid calendar URL, please enter a valid ICS or iCal URL."},errorMsg:{id:"".concat(Qe,".errorMsg"),defaultMessage:"We're sorry, we're unable to save this calendar at this time. Please check the URL and try again."},subscribersUpdatedSuccess:{id:"".concat(Qe,".subscribersUpdatedSuccess"),defaultMessage:"Calendar account subscriptions updated"},successMessage:{id:"".concat(Qe,".successMessage"),defaultMessage:"Calendar has been successfully connected"},removeCalendar:{id:"".concat(Qe,".removeCalendar"),defaultMessage:"Remove calendar"},cannotBeUndone:{id:"".concat(Qe,".cannotBeUndone"),defaultMessage:"This cannot be undone"},unsubscribeSuccess:{id:"".concat(Qe,".unsubscribeSuccess"),defaultMessage:"The calendar has been removed"}});var Xe;function et(e,t,n,o){Xe||(Xe="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Xe,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function tt(e){return function(e){if(Array.isArray(e))return at(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ot(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||ot(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const rt=(0,u.A)()((0,l.j4)(function(e){var t=e.account,n=e.allCheckableIds,o=e.currentlyCheckedIds,a=e.intl,i=e.isOpen,l=e.onOverlayClose,s=e.onOverlaySave,c=e.titleString,u=(0,de.Lh)(),d=nt((0,r.useState)([]),2),f=d[0],p=d[1],m=nt((0,r.useState)(void 0===o),2),y=m[0],g=m[1],v=nt((0,r.useState)([]),2),h=v[0],b=v[1];(0,r.useEffect)(function(){return p(o)},[]),(0,r.useEffect)(function(){o?(p(o),g(!1)):p(n),b(n)},[]),(0,r.useEffect)(function(){o&&void 0!==o&&void 0!==f&&((o&&o.length)===(n&&n.length)?g(!0):(g(!1),p(o)))}
2,[o]);var w,C,A,S,M=(w=t.persons.map(function(e){var n,o=(0,se.AQ)(e.accountPersonId,t);return et("li",{},e.accountPersonId,et(fe.y,{makeFullWidth:!0,checkable:!0,darkMode:u,personChecked:f&&-1!==f.indexOf(e.accountPersonId),personName:e.name,changed:(n=e.accountPersonId,function(){var e=f.indexOf(n),t=tt(f),o=t.length===h.length;o?((t=[]).push(n),o=!1):-1===e?(t.push(n),t.length===h.length&&(o=!0)):t.splice(e,1),p(t),g(o)}),color:o}))}),C=et("li",{},null,et(fe.y,{checkable:!0,darkMode:u,personChecked:y,personName:a.formatMessage(qe.all),changed:function(){y?(g(!1),p([])):(g(!0),p(h))},color:null})),A=w&&w.length>=1,et(r.Fragment,{},void 0,A&&C,w));return et(Ze.A,{narrowWidth:!0,isOpen:i,isScrollable:!0,onOverlayClose:l,listComponent:M,titleString:c,buttonComponents:(S=[],S.push({label:K.V.Cancel,action:function(){return l()}}),S.push({label:K.V.Save,action:function(){return e=f,y||0!==f.length||y&&(e=void 0),void s(e);var e}}),S),justified:!0,overlayAriaLabelID:c})}));var it,lt,st,ct=U()(j.Ay.h2.withConfig({displayName:"styles__ConnectedCalendarsHeader",componentId:"zc0ieh-0"})(["color:",";font-size:20px;font-weight:600;padding:0 16px;margin-bottom:0;"],function(e){return e.theme.palette.gray.cDark1})),ut=U()(j.Ay.div.withConfig({displayName:"styles__ConnectedCalendarsText",componentId:"zc0ieh-1"})(["padding:16px;color:",";font-size:14px;line-height:1.43;letter-spacing:0.25px;"],function(e){return e.theme.palette.gray.cDark1})),dt=U()(j.Ay.ul.withConfig({displayName:"styles__ExternalCalendarLinks",componentId:"zc0ieh-2"})(["margin-top:8px;padding:0;display:flex;justify-content:space-evenly;margin-bottom:32px;list-style-type:none;"])),ft=U()(j.Ay.a.withConfig({displayName:"styles__IconLink",componentId:"zc0ieh-3"})(["text-decoration:none;display:flex;flex-direction:column;p{margin:0 auto;padding-top:8px;text-align:center;color:",";text-transform:uppercase;font-size:14px;font-weight:600;}"],function(e){return e.theme.palette.gray.cDark1})),pt=j.Ay.img.withConfig({displayName:"styles__Img",componentId:"zc0ieh-4"})(["width:60px;height:auto;"]),mt=U()((0,j.Ay)(F.ListItem).withConfig({displayName:"styles__StyledListItem",componentId:"zc0ieh-5"})(["border-bottom:1px solid ",";display:flex;flex-wrap:wrap;"],function(e){return e.theme.palette.gray.cDark3})),yt=(0,j.Ay)(F.List).withConfig({displayName:"styles__StyledList",componentId:"zc0ieh-6"})(["&&{padding:0;}"]),gt=n("RBW6"),vt=n("u41e");function ht(e,t,n,o){st||(st="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:st,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Ct=(0,l.j4)(function(e){var t,n=e.currentlyConnectedCalendars,o=e.intl,a=e.account,l=bt((0,r.useState)(!1),2),s=l[0],c=l[1],u=bt((0,r.useState)(void 0),2),d=u[0],f=u[1],p=bt((0,r.useState)(void 0),2),m=p[0],y=p[1],g=bt((0,r.useState)(!1),2),v=g[0],h=g[1],b=bt((0,r.useState)(!1),2),w=b[0],C=b[1],A=(0,de.Lh)(),S=(0,i.useDispatch)(),M=(0,r.useCallback)(function(e){
2S((0,ce.UL)([],[e],void 0,o.formatMessage(qe.unsubscribeSuccess)))},[S]),k=(0,r.useCallback)(function(e,t){S((0,ce.UL)([e],[],t,o.formatMessage(qe.subscribersUpdatedSuccess)))},[S]),O=n.map(function(e){return ht(mt,{},e.calendar.id,ht(F.ListItemText,{primary:e.calendar.name}),ht(vt.A,{onClick:function(){return t=e.calendar.id,n=e.attendees,f(t),y(n),void c(!0);var t,n},a11yLabel:K.V.Close},void 0,it||(it=ht(gt.g_3,{}))),ht(vt.A,{onClick:function(){return t=e.calendar.id,h(!0),void C(t);var t},a11yLabel:K.V.Close},void 0,lt||(lt=ht(gt.bm,{}))))});return r.createElement(r.Fragment,null,ht(I.A,{title:o.formatMessage(qe.addedCalendars),noPadding:!0,darkMode:A},void 0,ht(yt,{},void 0,O)),s&&ht(rt,{isOpen:s,onOverlayClose:function(){return c(!1)},onOverlaySave:function(e){k(d,e),c(!1)},titleString:o.formatMessage(qe.whoGetsSubscribed),currentlyCheckedIds:m,allCheckableIds:Object.keys(a.personIds)}),ht(pe.A,{isOpen:v,onOverlayClose:function(){return h(!1)},titleComponent:o.formatMessage(qe.removeCalendar),buttonComponents:(t=[],t.push({label:K.V.Cancel,action:function(){return h(!1)}}),t.push({label:K.V.Ok,action:function(){return M(w),void h(!1)}}),t),overlayAriaLabelID:o.formatMessage(qe.removeCalendar),justified:!0},void 0,o.formatMessage(qe.cannotBeUndone)))});var At,St,Mt,kt=["isUpFromSmall","intl","account","deepLinkURL"];function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ot.apply(null,arguments)}function It(e,t,n,o){Mt||(Mt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Mt,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Dt=(0,l.j4)(function(e){var t=(0,Je.D)(),n=(e.isUpFromSmall,e.intl),o=e.account,a=e.deepLinkURL,l=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,kt),s=xt((0,r.useState)(""),2),c=s[0],u=s[1],d=xt((0,r.useState)(!1),2),f=d[0],p=d[1],m=xt((0,r.useState)(!1),2),y=m[0],g=m[1],v=xt((0,r.useState)(""),2),h=v[0],b=v[1],w=xt((0,r.useState)(!1),2),C=w[0],A=w[1],S=xt((0,r.useState)(!0),2),M=S[0],k=S[1],O=(0,i.useSelector)(ue.Wg);(0,r.useEffect)(function(){C&&b(n.formatMessage(qe.errorURL))},[C]),(0,r.useEffect)(function(){a&&(p(!0),u(a),I(a))},[a]);var I=function(e){A(!1);var t=e&&e.trim();if(t&&0===t.length||!1===(0,We.L)(t))return Fe.A.console("iCal","handleSubmitUrl failed ".concat(t," vs incoming ").concat(e)),void A(!0);g(!0)},D=(0,i.useDispatch)(),T=(0,r.useCallback)(function(e,t){Fe.A.console(" iCal","handleGetInternetCalendar getting ".concat(e)),D((0,ce.S4)(e,t,n.formatMessage(qe.successMessage)))},[D]),E=(0,r.useCallback)(function(){D((0,ce.I3)(!1))},[D]);return r.createElement(r.Fragment,null,It(ut,{},void 0,It("p",{},void 0,n.formatMessage(qe.connectedCalendarInfo))),r.createElement(Ct,Ot({account:o},l)),It(H.kX,{style:{margin:"10px"},onClick:function(){return p(!0)},a11yLabel:n.formatMessage(qe.addACalendar)},void 0,n.formatMessage(qe.addACalendar)),It(ct,{},void 0,n.formatMessage(qe.usingCozi)),It(ut,{},void 0,It("p",{},void 0,n.formatMessage(qe.goodNewsEverybody))),It(dt,{},void 0,It("li",{},void 0,It(ft,{href:"https://www.cozi.com/using-cozi-with-other-calendars/#FromGoogle",target:"_blank","aria-label":n.formatMessage(qe.importFromGoogle)},void 0,At||(At=It(pt,{src:Ke(),alt:"google calendar logo",caption:"Google"})),It("p",{},void 0,n.formatMessage(qe.google)))),It("li",{},void 0,It(ft,{href:"https://www.cozi.com/using-cozi-with-other-calendars/#FromApple",target:"_blank","aria-label":n.formatMessage(qe.importFromApple)},void 0,It(pt,{src:t?Ge():Be(),alt:"Apple logo"}),It("p",{},void 0,n.formatMessage(qe.apple)))),It("li",{},void 0,It(ft,{href:"https://www.cozi.com/using-cozi-with-other-calendars/#FromOutlook",target:"_blank","aria-label":n.formatMessage(qe.importFromOutlook)},void 0,St||(St=It(pt,{src:Ve,alt:"microsoft outlook logo"})),It("p",{},void 0,n.formatMessage(qe.outlook))))),It($.A,{isDialogOpen:f,onDialogClose:function(){return p(!1)},dialogTitle:n.formatMessage(qe.connectCalendar)},void 0,It(F.DialogContent,{},void 0,It(ct,{},void 0,n.formatMessage(qe.addAURL)),It(ut,{},void 0,n.formatMessage(qe.pasteInstructions)),It(Re.A,{fullWidth:!0,label:n.formatMessage(qe.urlFieldLabel),value:c,onChange:function(e){return function(e){A(!1),u(e.target.value);var t=(0,We.L)(e.target.value);k(!t)}(e)},helperText:h,error:C})),It(F.DialogActions,{},void 0,It(H.kX,{onClick:function(){p(!1)},a11yLabel:K.V.Cancel},void 0,K.V.Cancel),It(H.Ay,{onClick:function(){return I(c)},disabled:M,a11yLabel:K.V.Next},void 0,K.V.Next)),y&&It(rt,{isOpen:y,onOverlayClose:function(){return g(!1)},onOverlaySave:function(e){T(c,e),g(!1),p(!1),u("")},titleString:n.formatMessage(qe.whoGetsSubscribed),allCheckableIds:Object.keys(o.personIds)})),It(x.A,{isOpen:O,overlayAriaLabelID:P.P.RecipeWebScrapeError,onOverlayClose:E,errMsg:n.formatMessage(qe.errorMsg)}))});var Tt,Et=["intl","currentlyConnectedCalendars"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Lt.apply(null,arguments)}function zt(e,t,n,o){Tt||(Tt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Tt,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Nt=(0,l.j4)(function(e){var t=e.intl,n=e.currentlyConnectedCalendars,o=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Et),a=_t((0,r.useState)(!1),2),i=a[0],l=a[1],s=_t((0,r.useState)(null),2),c=s[0],u=s[1],d=_t((0,r.useState)(t.formatMessage(_.noneYet)),2),f=d[0],p=d[1];(0,r.useEffect)(function(){m()},[n]),(0,r.useEffect)(function(){if((0,O.jT)(O.lT.iCalSubscription)){var e=(0,O.Gr)().contentUrl;Fe.A.console("iCal","iCal deeplink ".concat(e)),l(!0),(0,D.Kh)(!0),u(e)}setTimeout(function(){Fe.A.console("iCal","resetting deeplink"),(0,O.mr)(O.lT.iCalSubscription),u(null)},3e3)},[]);var m=function(){if(n&&n.length>=0){var e=n.map(function(e){return e.calendar.name});0!==e.length?p(e.join(", ")):p(t.formatMessage(_.noneYet))}},y=function(){l(!0),(0,D.Kh)(!0)};return r.createElement(r.Fragment,null,zt(R,{tabIndex:"0",role:"button",onClick:function(e){(0,D.oy)(e,function(){return y()})},onKeyDown:function(e){(0,D.J1)(e,function(){return y()})}},void 0,zt("div",{},void 0,zt("p",{},void 0,t.formatMessage(_.connectedCalendars)),zt("p",{},void 0,f)),(0,T.FA)(function(){})),zt($.A,{isDialogOpen:i,onDialogClose:function(){l(!1),(0,D.Kh)(!1)},dialogTitle:t.formatMessage(_.connectedCalendars)},void 0,zt(F.DialogContent,{style:{padding:0}},void 0,r.createElement(Dt,Lt({deepLinkURL:c,currentlyConnectedCalendars:n},o)),zt("div",{"aria-live":"assertive",role:"alert","aria-atomic":"true"},void 0,zt(S.e,{},void 0,zt("span",{id:ge}))))))});var Ut,Ft,Rt,Ht,Kt=["onSaveHolidays","subbedHolidays","currentlyConnectedCalendars"];function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yt.apply(null,arguments)}function Bt(e,t,n,o){Ht||(Ht="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Ht,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const $t=function(e){var t=e.onSaveHolidays,n=e.subbedHolidays,o=e.currentlyConnectedCalendars,a=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Kt);return r.createElement(r.Fragment,null,Bt(le,{onSaveHolidays:t,subbedHolidays:n}),Ut||(Ut=Bt("hr",{"aria-hidden":"true"})),r.createElement(Nt,Yt({currentlyConnectedCalendars:o},a)),Ft||(Ft=Bt("hr",{"aria-hidden":"true"})),Rt||(Rt=Bt(Ue,{})))};var Gt=n("FrZ3"),Vt=n("2mVn"),Wt=U()(j.Ay.div.withConfig({displayName:"styles__ChooseCobrandView",componentId:"y8xsgs-0"})(["display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:",";"],function(e){return e.theme.palette.black.main}));
2const Jt=(0,l.YK)({accountCobrand:{id:"components.SettingsPage.ChooseCobrand.accountCobrand",defaultMessage:"Manage Partners"}});var Zt;function Qt(e,t,n,o){Zt||(Zt="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Zt,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const qt=function(e){var t,n=e.cobrandName,o=e.onAction,a=e.intl;return r.createElement(r.Fragment,null,Qt(Wt,{tabIndex:"0",role:"button",onClick:function(e){(0,D.oy)(e,function(){return o()})},onKeyDown:function(e){(0,D.J1)(e,function(){return o()})}},void 0,Qt("p",{},void 0,a.formatMessage(Jt.accountCobrand)),Gt.un?(0,T.FA)(function(){},n):t||(t=Qt(Vt.oW,{},void 0,n))))};const Xt=(0,l.YK)({a11y:{backButtonLabel:{id:"".concat("components.SettingsPage.ChooseCobrand",".a11y.backButtonLabel"),defaultMessage:"Back to settings"}},accountCobrand:{id:"components.SettingsPage.ChooseCobrand.accountCobrand",defaultMessage:"Manage Partners"},userDefault:{id:"components.SettingsPage.ChooseCobrand.userDefault",defaultMessage:"Use Cozi Default Theme"},confirmation:{id:"components.SettingsPage.ChooseCobrand.confirmation",defaultMessage:"This will remove {cobrandName} branding from your Cozi account, but will not delete partner content. If you proceed, everyone in your family will see Cozi’s default blue theme. This change cannot be undone. Are you sure?"},addConfirmation:{id:"components.SettingsPage.ChooseCobrand.addConfirmation",defaultMessage:"Would you like to add {newCobrandName}?"},leaveConfirmation:{id:"components.SettingsPage.ChooseCobrand.addConfirmation",defaultMessage:"Would you like to leave {cobrandName} and add {newCobrandName}?"},cobrandTitle:{id:"components.SettingsPage.Cobrand.title",defaultMessage:"Manage Partners"}});var en;function tn(e,t,n,o){en||(en="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:en,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const nn=(0,l.j4)(function(e){var t,n=e.isOpen,o=e.onClose,a=e.intl,i=e.onConfirmAndClose,l=e.cobrandName,s=e.newCobrandName,c=e.cobrandText,u=e.defaultCobrandName,d=tn(r.Fragment,{},void 0,a.formatMessage(Xt.userDefault)),f=function(){var e=[];return e.push({label:K.V.No,action:o}),e.push({label:K.V.Yes,action:i}),e},p=tn(r.Fragment,{},void 0,a.formatMessage(Xt.addConfirmation,{newCobrandName:s})),m=tn(r.Fragment,{},void 0,a.formatMessage(Xt.leaveConfirmation,{cobrandName:l,newCobrandName:s})),y=l?l.toLowerCase():"",g=s?s.toLowerCase():"",v=u?u.toLowerCase():"cozi";return tn(pe.A,y===g&&g===v?{isOpen:n,onOverlayClose:o,overlayAriaLabelID:P.P.ChooseCobrandConfirmation,titleComponent:d,buttonComponents:(t=[],t.push({label:K.V.Ok,action:o}),t),justified:!0}:y===v?{isOpen:n,onOverlayClose:o,overlayAriaLabelID:P.P.ChooseCobrandConfirmation,titleComponent:p,buttonComponents:f(),justified:!0}:{isOpen:n,onOverlayClose:o,overlayAriaLabelID:P.P.ChooseCobrandConfirmation,titleComponent:m,buttonComponents:f(),justified:!0},void 0,tn("p",{},void 0,c))});n.p,n.p,n.p;var on,an,rn=U()(j.Ay.button.withConfig({displayName:"styles__CobrandContainer",componentId:"fo71cl-0"})(["width:100%;border:none;background-color:transparent;"])),ln=j.Ay.div.withConfig({displayName:"styles__CobrandUpperWrapper",componentId:"fo71cl-1"})(["width:100%;"]),sn=j.Ay.div.withConfig({displayName:"styles__CobrandImageWrapper",componentId:"fo71cl-2"})(["width:25%;"]),cn=(U()(j.Ay.p.withConfig({displayName:"styles__CobrandTitle",componentId:"fo71cl-3"})(["margin:0 auto;padding-right:40px;color:",";"],function(e){return e.theme.palette.toolbox.titleBarText})),U()(j.Ay.span.withConfig({displayName:"styles__LabelText",componentId:"fo71cl-4"})(["display:flex;flex-direction:column;small{color:",";font-weight:300;font-size:0.8rem;}"],function(e){return e.theme.palette.gray.cDark2})),U()((0,j.Ay)(F.ListItem).withConfig({displayName:"styles__StyledCobrandListItem",componentId:"fo71cl-5"})(["cursor:pointer;border-bottom:1px solid ",";:first-child{border-top:1px solid ",";}"],function(e){return e.theme.palette.gray.cLight2},function(e){return e.theme.palette.gray.cLight2}))),un=U()((0,j.Ay)(F.Typography).withConfig({displayName:"styles__StyledTypography",componentId:"fo71cl-6"})(["color:",";"],function(e){return e.theme.palette.black.main}));function dn(e,t,n,o){on||(on="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:on,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const mn=(0,l.j4)(function(e){var t=e.isOpen,n=e.onClose,o=e.intl,a=e.cobrandName,i=e.onChangeCobrand,l=e.account;an=l.cobrands;var s=function(e){var t,n=e?e.toLowerCase():"noSearchID";return Object.keys(an).forEach(function(e){var o=an[e].id?an[e].id.toLowerCase():"noID";n.includes(o)&&(t={value:e,cobrand:an[e]})}),t},c=function(e){var t,n=e?e.toLowerCase():"noSearch";if(Object.keys(an).forEach(function(e){(an[e].displayNameShort?an[e].displayNameShort.toLowerCase():"noName")===n&&(t={value:e,cobrand:an[e]})}),void 0===t&&void 0===(t=s(e))){var o={id:e,displayNameShort:e,icon:void 0,description:"No longer supported",addText:"Cannot add an unsupported cobrand",removeText:"You are about to leave ".concat(e,", which is no longer supported by the Cozi mobile app. Leave ").concat(e,"?")};t={value:"-1",cobrand:o}}return t}(a),u=["".concat(c.value)],d=fn((0,r.useState)(u),2),f=d[0],p=d[1],m=fn((0,r.useState)(!1),2),y=m[0],g=m[1],v=fn((0,r.useState)(c),2),h=v[0],b=v[1],w=fn((0,r.useState)([c]),2),C=w[0],A=w[1],S=fn((0,r.useState)(c.cobrand.addText),2),M=S[0],k=S[1];(0,r.useEffect)(function(){var e=(0,O.jT)(O.lT.Partners);if(e){var t=s(e);t&&"0"!==t.value&&h.cobrand.id!==t.cobrand.id&&I(-1,t)}setTimeout(function(){(0,O.mr)(O.lT.Partners)},3e3)},[]);var I=function(e,t){var n;e>=0?n={value:e,cobrand:an[e]}:t&&(n=t),C[C.length-1].value!==n.value?"0"!==h.value?k(h.cobrand.removeText):k(n.cobrand.addText):(k("0"===e?h.cobrand.removeText:n.cobrand.removeText),n={value:"0",cobrand:an[0]});var o=C;o.push(n),A(o),g(!0)};return dn($.A,{isDialogOpen:t,onDialogClose:n,rightToolbarActions:null,dialogTitle:o.formatMessage(Xt.cobrandTitle)},void 0,dn(F.DialogContent,{},void 0,y&&dn(nn,{defaultCobrandName:an[0].displayNameShort,cobrandName:h.cobrand.displayNameShort,newCobrandName:C[C.length-1].cobrand.displayNameShort,onConfirmAndClose:function(){return e=C[C.length-1],t=e.value,(n=[]).push(t),p(n),b(e),A([e]),i(e),void g(!1);var e,t,n},isOpen:y,onClose:function(){return A([h]),void g(!1)},cobrandText:M}),dn(F.List,{"aria-label":"Partners"},void 0,Object.keys(an).map(function(e){var t=an[e];return dn(r.Fragment,{},"ReactFrag ".concat(t.displayNameShort," ").concat(e),dn(cn,{alignItems:"center"},"CobrandItem ".concat(t.displayNameShort," ").concat(e),dn(rn,{onClick:function(t){return(0,D.oy)(t,function(){return I(e)})},className:"full-width",onKeyDown:function(t){(0,D.J1)(t,function(){return I(e)})}},t.displayNameShort,dn(ln,{},void 0,dn(sn,{},void 0,dn("img",{alt:"",src:t.icon}))),dn(F.ListItemText,{primary:r.createElement(r.Fragment,null,dn(un,{style:{textAlign:"left"},component:"h3",variant:"h6",fontWeight:"fontWeightBold"},void 0,t.displayNameShort)),secondary:r.createElement(r.Fragment,null,dn(un,{style:{display:"flex",textAlign:"left"},component:"span",variant:"body2"},void 0,t.description))})),function(e,t){var n="".concat(t.displayNameShort);return Gt.un?dn(G.LO,{edge:"end",checked:-1!==f.indexOf(e),onClick:function(t){return(0,D.oy)(t,function(){return I(e)})},onKeyDown:function(t){(0,D.J1)(t,function(){return I(e)})},inputProps:{"aria-label":n}},"checkbox-list-label-".concat(e)):dn(G.pY,{checked:-1!==f.indexOf(e),onClick:function(t){return(0,D.oy)(t,function(){return I(e)})},onKeyDown:function(t){(0,D.J1)(t,function(){return I(e)})},inputProps:{"aria-label":n}},"radio-list-label-".concat(e))}(e,t)))}))))});var yn=n("fnB0"),gn=["isIOS"];var vn,hn,bn,wn=j.Ay.div.withConfig({displayName:"styles__LegacyLineVie
2w",componentId:"sc-1x8mhn8-0"})(["display:flex;align-items:center;justify-content:space-between;height:1.8rem;"]),Cn=U()((0,j.Ay)(function(e){e.isIOS;var t=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,gn);return r.createElement("span",t)}).withConfig({displayName:"styles__LegacyLabelText",componentId:"sc-1x8mhn8-1"})(["&&{display:flex;flex-direction:",";align-items:",";small{color:",";font-weight:300;font-size:0.8rem;}}"],function(e){return e.isIOS?"row":"column"},function(e){return e.isIOS?"center":""},function(e){return e.theme.palette.gray.cDark2}));U()((0,j.Ay)(gt.ohQ).withConfig({displayName:"styles__IOSStyledArrow",componentId:"sc-1x8mhn8-2"})(["&&{color:",";width:16px;}"],function(e){return e.theme.palette.gray.cDark2})),U()(j.Ay.span.withConfig({displayName:"styles__IOSSmallText",componentId:"sc-1x8mhn8-3"})(["color:",";font-weight:300;font-size:0.9rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:120px;"],function(e){return e.theme.palette.gray.cDark2}));function An(e,t,n,o){bn||(bn="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:bn,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const Sn=function(e){var t,n,o=e.labelText,a=e.subText,i=e.callback,l=e.hasGoldLabel,s=function(){i&&window.ReactNativeWebView&&window.ReactNativeWebView.postMessage(i)};return Gt.un?i?r.createElement(r.Fragment,null,An(wn,{tabIndex:"0",role:"button",onClick:function(){return s()}},void 0,An(Cn,{isIOS:Gt.un},void 0,o,l&&(vn||(vn=An(yn.A,{calendarTitleBar:!0})))),i?(0,T.FA)(null,a):a)):r.createElement(r.Fragment,null,An(wn,{role:"note"},void 0,An(Cn,{isIOS:Gt.un},void 0,o,l&&(hn||(hn=An(yn.A,{calendarTitleBar:!0})))),i?(0,T.FA)(null,a):a)):i?r.createElement(r.Fragment,null,An(wn,{tabIndex:"0",role:"button",onClick:function(){return s()}},void 0,t||(t=An(Cn,{},void 0,o,An("small",{},void 0,a))))):n||(n=r.createElement(r.Fragment,null,An(wn,{role:"note"},void 0,An(Cn,{},void 0,o,An("small",{},void 0,a)))))};var Mn=n("/hwU"),kn=n("Rai1"),On=j.Ay.div.withConfig({displayName:"styles__StatusView",componentId:"sc-7eevni-0"})(["display:flex;align-items:center;justify-content:space-between;cursor:pointer;"]),In=U()(j.Ay.div.withConfig({displayName:"styles__LabelText",componentId:"sc-7eevni-1"})(["display:flex;align-items:center;justify-content:space-between;color:",";p{margin:0px;}p:nth-child(2){color:",";font-size:14px;}"],function(e){return e.theme.palette.black.main},function(e){return e.theme.palette.gray.cDark2})),xn=(U()((0,j.Ay)(gt.ohQ).withConfig({displayName:"styles__IOSStyledArrow",componentId:"sc-7eevni-2"})(["&&{color:",";width:16px;}"],function(e){return e.theme.palette.gray.cDark2})),U()(j.Ay.span.withConfig({displayName:"styles__IOSLabelText",componentId:"sc-7eevni-3"})(["color:",";font-weight:300;font-size:0.9rem;"],function(e){return e.theme.palette.gray.cDark2})),"components.SettingsPage.AccountStatus");const Pn=(0,l.YK)({free:{id:"".concat(xn,".free"),defaultMessage:"Free"},gold:{id:"".concat(xn,".gold"),defaultMessage:"Gold"},max:{id:"".concat(xn,".max"),defaultMessage:"Max"},details:{id:"".concat(xn,".details"),defaultMessage:"Subscription Details"},accountStatus:{id:"".concat(xn,".accountStatus"),defaultMessage:"Account Type"},upgrade:{id:"".concat(xn,".upgrade"),defaultMessage:"Upgrade account"},coziGold:{id:"".concat(xn,".coziGold"),defaultMessage:"Cozi Gold"},getCoziGold:{id:"".concat(xn,".getCoziGold"),defaultMessage:"Upgrade to Cozi Gold!"},coziGoldDesc:{id:"".concat(xn,".coziGoldDesc"),defaultMessage:"Get an ad-free experience and all the premium features."}});var Dn;function Tn(e,t,n,o){Dn||(Dn="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Dn,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const En=(0,l.j4)(function(e){var t=e.isGold,n=e.intl,o=e.onClick,a=(0,Mn.Um)().subscription,r=function(){!window.ReactNativeWebView||t?o():window.ReactNativeWebView.postMessage("goldUpsell")},i=t?{type:n.formatMessage(kn.it.activeMax(a)?Pn.max:Pn.gold),label:Gt.un?(0,T.FA)(function(){},n.formatMessage(Pn.details)):Tn(Vt.oW,{},void 0,n.formatMessage(Pn.details))}:{type:n.formatMessage(Pn.free),label:Gt.un?(0,T.FA)(function(){},n.formatMessage(Pn.upgrade)):Tn(Vt.oW,{},void 0,n.formatMessage(Pn.upgrade))};return Tn(On,{"aria-label":n.formatMessage(Pn.accountStatus),onClick:function(){return r()},onKeyDown:function(e){(0,D.J1)(e,function(){return r()})},role:"button",tabIndex:"0"},void 0,Tn(In,{},void 0,Tn("p",{},void 0,n.formatMessage(Pn.accountStatus),":"),Tn("p",{},void 0,"  ",i.type)),i.label)});var Ln=n("eF40"),zn=n("yxWn");function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}var jn=["InputProps","darkMode"];function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Nn.apply(null,arguments)}function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Un(Object(n),!0).forEach(function(t){Rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=_n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hn=U()((0,j.Ay)(function(e){var t=e.InputProps,n=e.darkMode,o=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,jn);return r.createElement(F.TextField,Nn({sx:{"& .MuiInput-underline:after":{borderBottomColor:n&&o.theme.palette.toolbox.accent}},InputProps:Fn(Fn({},t),{},{classes:{input:"input"}})},o))}).withConfig({displayName:"styles__StyledFamilyNameTextField",componentId:"e8muip-0"})(["&&&{.input{text-align:center;color:",";font-size:200%;&::placeholder{opacity:1;}","}}"],function(e){return e.theme.palette.toolbox.titleBar},function(e){return e.darkMode&&"\n      color: ".concat(e.theme.palette.black.main,";
2 \n      border-bottom: 2px solid ").concat(e.theme.palette.gray.cDark2,";\n      ")})),Kn=U()((0,j.Ay)(F.FormHelperText).withConfig({displayName:"styles__StyledFormHelperText",componentId:"e8muip-1"})(["color:",";"],function(e){return e.theme.palette.black.main})),Yn="app.components.Settings.FamilyName";const Bn=(0,l.YK)({a11y:{familyName:{id:"".concat(Yn,".familyName"),defaultMessage:"Family Name"}},addName:{id:"".concat(Yn,".addName"),defaultMessage:"+ Add family name"}});var $n;function Gn(e,t,n,o){$n||($n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:$n,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Vn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Jn=(0,l.j4)(function(e){var t=e.intl,n=e.name,o=e.change,a=(0,de.Lh)(),i=Vn((0,r.useState)(n),2),l=i[0],s=i[1],c=t.formatMessage(Bn.addName);return Gn(F.FormControl,{style:{marginBottom:25}},void 0,Gn(Hn,{darkMode:a,inputProps:{maxLength:160,"aria-labelledby":"family-name-helper-text"},"aria-label":t.formatMessage(Bn.a11y.familyName),value:l,placeholder:c,onChange:function(e){var t;(t=e.target.value).length<zn.K8&&s(t)},onFocus:function(e){return e.target.value,void(l!==c&&""!==l||s(""))},onBlur:function(e){return" "!==(t=e.target.value)&&""!==t&&t!==c||s(""),void o(t);var t},onKeyPress:function(e){var t;13===(t=e).charCode&&(t.preventDefault(),o(l),t.target.blur())}}),Gn(Kn,{id:"family-name-helper-text"},void 0,t.formatMessage(Bn.a11y.familyName)))});var Zn=n("nXhf"),Qn=n("9ODp");const qn=(0,l.YK)({allColor:{id:"app.components.Settings.FamilyColor.allColor",defaultMessage:"All Color"}});var Xn;function eo(e,t,n,o){Xn||(Xn="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Xn,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function to(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return no(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?no(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function no(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const oo=(0,l.j4)(function(e){var t=e.color,n=e.colorList,o=e.colorSelected,a=e.intl,i=to((0,r.useState)(!1),2),l=i[0],s=i[1];return r.createElement(r.Fragment,null,eo(Vt.e3,{role:"button","aria-label":a.formatMessage(qn.allColor),tabIndex:"0",onClick:function(){return s(!l)},onKeyDown:function(e){(0,D.J1)(e,function(){s(!l)})}},void 0,eo("p",{},void 0,a.formatMessage(qn.allColor)),eo(Zn.A,{size:"med",label:!0,iconcolor:n[t]})),l&&eo(Qn.A,{colorList:n,indexOfCurrentColor:t,onColorSelect:function(e){return o(e)},isOpen:l,onClose:function(){return s(!l)}}))});var ao=n("dPsg"),ro=n("CQr2"),io=n("9ObL"),lo=U()(j.Ay.div.withConfig({displayName:"styles__Info",componentId:"sc-1ivr4a6-0"})(["&&&{width:100%;font-size:100%;}"])),so=U()((0,j.Ay)(F.DialogContent).withConfig({displayName:"styles__ContentContainer",componentId:"sc-1ivr4a6-1"})(["&&&&{display:flex;flex-direction:column;justify-content:space-between;min-height:60vh;}"])),co=U()(j.Ay.ul.withConfig({displayName:"styles__NoIndentList",componentId:"sc-1ivr4a6-2"})(["&&{list-style-position:inside;padding-left:0;li{padding-bottom:12px;line-height:20px;}}"])),uo=(j.Ay.a.withConfig({displayName:"styles__HyperLink",componentId:"sc-1ivr4a6-3"})(["text-decoration:none;"]),j.Ay.p.withConfig({displayName:"styles__ContentParagraph",componentId:"sc-1ivr4a6-4"})(["line-height:20px;"])),fo=U()(j.Ay.fieldset.withConfig({displayName:"styles__FormBox",componentId:"sc-1ivr4a6-5"})(["max-width:400px;margin-top:44px;margin-bottom:32px;margin-left:auto;margin-right:auto;border-radius:5px;border:solid 2px ",";display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;"],function(e){return e.theme.palette.gray.cDark4})),po=j.Ay.legend.withConfig({displayName:"styles__FormTitle",componentId:"sc-1ivr4a6-6"})(["margin:auto;padding-left:16px;padding-right:16px;"]),mo=U()(j.Ay.a.withConfig({displayName:"styles__ForgotPasswordLink",componentId:"sc-1ivr4a6-7"})(["&&{margin-top:40px;margin-bottom:24px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:0.25px;color:",";}"],function(e){return e.theme.palette.toolbox.titleBar}
2)),yo="components.SettingsPage.AccountDeletion.AccountDeletionDialog";const go=(0,l.YK)({title:{id:"".concat(yo,".title"),defaultMessage:"Delete Family Cozi Account"},dialogTitle:{id:"".concat(yo,".dialogTitle"),defaultMessage:"Delete Family Account"},contentList1:{id:"".concat(yo,".contentList1"),defaultMessage:"Deleting your Cozi account will "},contentList1bold:{id:"".concat(yo,".contentList1bold"),defaultMessage:"permanently delete all account data for all family members."},contentList2:{id:"".concat(yo,".contentList2"),defaultMessage:"Cozi will send an account deletion confirmation email to the first email address in the account."},contentList3:{id:"".concat(yo,".contentList3"),defaultMessage:"After you delete the account, there's a 14-day grace period to reverse the deletion. After that time, the account deletion will become permanent and cannot be reversed."},contentList4:{id:"".concat(yo,".contentList4"),defaultMessage:"If you have a Cozi Gold subscription through Apple or Google Play, you must cancel the subscription in the app store to prevent future renewals. "},contentList4bold:{id:"".concat(yo,".contentList4bold"),defaultMessage:"Deleting your Cozi account will not automatically cancel a Cozi Gold subscription purchased from Apple or Google Play."},contentList4IOS:{id:"".concat(yo,".contentList4"),defaultMessage:"If you have a Cozi Gold subscription through the Apple App Store, you must cancel that subscription in the app store to prevent future renewals. "},contentList4boldIOS:{id:"".concat(yo,".contentList4bold"),defaultMessage:"Deleting your Cozi account will not automatically cancel a Cozi Gold subscription purchased from the Apple App Store."},contentList4Android:{id:"".concat(yo,".contentList4"),defaultMessage:"If you have a Cozi Gold subscription through Google Play, you must cancel that subscription in the app store to prevent future renewals. "},contentList4boldAndroid:{id:"".concat(yo,".contentList4bold"),defaultMessage:"Deleting your Cozi account will not automatically cancel a Cozi Gold subscription purchased from Google Play."},contentContactSupport:{id:"".concat(yo,".contentContactSupport"),defaultMessage:"For any questions about the deletion process, please contact {support}."},coziSupport:{id:"".concat(yo,".coziSupport"),defaultMessage:"Cozi support"},contentNote:{id:"".concat(yo,".coziNote"),defaultMessage:"NOTE: Once you submit this form, "},contentNoteBold:{id:"".concat(yo,".coziNote"),defaultMessage:"you could immediately add your email address to another Cozi account."},personalInfoTitle:{id:"".concat(yo,".personalInfoTitle"),defaultMessage:"Your Personal Information in Cozi"},personalInfoContent1:{id:"".concat(yo,".personalInfoContent1"),defaultMessage:"You have a right to know what personal information Cozi stores about you as part of your Cozi account. To view and download a copy of this personal information, click the button below."},personalInfoContent2:{id:"".concat(yo,".personalInfoContent2"),defaultMessage:"Note: Access your calendar, lists, and other family data through Cozi on the web or the Cozi mobile apps."},getData:{id:"".concat(yo,".getData"),defaultMessage:"GET DATA"},deleteAccount:{id:"".concat(yo,".deleteAccount"),defaultMessage:"Delete Cozi Family Account"},notReady:{id:"".concat(yo,".notReady"),defaultMessage:"I’m not ready to delete, Take me back to my Cozi Account"},forgotPassword:{id:"".concat(yo,".forgotPassword"),defaultMessage:"Forgot password?"},wrongEmail:{id:"".concat(yo,".wrongEmail"),defaultMessage:"This is not your email"},emptyEmail:{id:"".concat(yo,".emptyEmail"),defaultMessage:"Please enter your email"},confirmationTitle:{id:"".concat(yo,".confirmationTitle"),defaultMessage:"The account has been scheduled for deletion."},confirmationContent1:{id:"".concat(yo,".confirmationContent1"),defaultMessage:"We’re sorry that you’ve decided to cancel your Cozi account, but we'll take care of this for you. A confirmation email will be sent to the first email address in your Cozi account. Because account deletion is a permanent action and cannot be reversed, the confirmation email includes instructions to contact {support} in order to cancel the deletion of your account in case you change your mind. You may stop the deletion process within the next 14 days. Otherwise, the account and all data in it will be permanently deleted."},confirmationContent2:{id:"".concat(yo,".confirmationContent2"),defaultMessage:"If you've already changed your mind or have questions about the deletion process, please contact {support}"},confirmationContent3:{id:"".concat(yo,".confirmationContent3"),defaultMessage:"At Cozi we’re constantly working to improve our product, and we value your opinions and feedback. Please tell us why Cozi didn’t work for you, or how we can improve Cozi to better meet your needs by taking this {survey}. We might even be able to add a feature that could make Cozi more useful to you."}
2,confirmationContent4:{id:"".concat(yo,".confirmationContent4"),defaultMessage:"Thank you for your feedback! Again, we're sorry to see you go, and hope that you might have a chance to try Cozi again in the future. If you should ever want to create a new Cozi account, you'd always be welcome to do so."},confirmationContent5:{id:"".concat(yo,".confirmationContent5"),defaultMessage:"Best regards,"},confirmationContent6:{id:"".concat(yo,".confirmationContent6"),defaultMessage:"The Cozi Team"},survey:{id:"".concat(yo,".survey"),defaultMessage:"one-minute survey"},unAuthorized:{id:"app.components.Login.unAuthorized",defaultMessage:"Your email and password do not match."}});function vo(e){return vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vo(e)}var ho,bo;function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},wo.apply(null,arguments)}function Co(e,t,n,o){bo||(bo="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:bo,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){Mo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=vo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=vo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vo(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Io=(0,l.j4)(function(e){var t=(0,Je.D)(),n=e.open,o=e.handleClose,a=e.intl,i=e.handleOpenGetDataDialog,s=e.handleDelete,c=e.authFailed,u=e.resetAuth,d=e.subscriptionType,f=io.SA.$k,p=io.SA.XJ,m=io.SA.ZJ,y=io.SA.fN,g=ko((0,r.useState)(!1),2),v=g[0],h=g[1],b=ko((0,r.useState)(Mo(Mo({},io.sH.EMAIL,""),io.sH.PASSWORD,"")),2),w=b[0],C=b[1],A=ko((0,r.useState)(Mo(Mo({},io.sH.EMAIL,null),io.sH.PASSWORD,null)),2),S=A[0],O=A[1],I=ko((0,r.useState)(!1),2),x=I[0],P=I[1],D=(0,de.ap)();(0,r.useEffect)(function(){var e=w[io.sH.EMAIL];if(e){var t=e.toLowerCase(),n=So(So({},w),{},Mo(Mo({},io.sH.EMAIL,t),io.sH.CONFIRM_EMAIL,{lowerCasedEmail:t,accountEmail:D}));P(f(n))}},[w]);var T=function(){c&&u()},E=Co("li",{}
2,void 0,a.formatMessage(go.contentList4),Co("b",{},void 0,a.formatMessage(go.contentList4bold))),L=Co("li",{},void 0,a.formatMessage(go.contentList4IOS),Co("b",{},void 0,a.formatMessage(go.contentList4boldIOS))),z=Co("li",{},void 0,a.formatMessage(go.contentList4Android),Co("b",{},void 0,a.formatMessage(go.contentList4boldAndroid)));return Co($.A,{isDialogOpen:n,onDialogClose:o,dialogTitle:a.formatMessage(go.dialogTitle)},void 0,Co(so,{},void 0,Co(lo,{},void 0,Co("h2",{},void 0,a.formatMessage(go.title)),Co(co,{},void 0,Co("li",{},void 0,a.formatMessage(go.contentList1),Co("b",{},void 0,a.formatMessage(go.contentList1bold))),Co("li",{},void 0,a.formatMessage(go.contentList2)),Co("li",{},void 0,a.formatMessage(go.contentList3)),"apple"===d?L:"google"===d?z:"legacy_iOS"===window.CoziType?L:E),Co(uo,{},void 0,r.createElement(l.sA,wo({},go.confirmationContent1,{values:{support:Co(ro.W1,{darkMode:t},void 0,Co(M.N_,{to:k.A.ContactUs},void 0,r.createElement(l.sA,go.coziSupport)))}}))),Co(uo,{},void 0,a.formatMessage(go.contentNote),Co("b",{},void 0,a.formatMessage(go.contentNoteBold))),Co(fo,{},void 0,Co(po,{},void 0,Co("b",{},void 0,a.formatMessage(go.deleteAccount))),Co("form",{},void 0,Co(io.m$,{formErrors:S,inputValues:w,showPassword:v,handleInputOnBlur:function(e){var t=e.target.id,n=y(t,w[t]);n&&O(So(So({},S),{},Mo({},t,n)))},handleChange:function(e){T();var t=e.target,n=t.id,o=t.value;if(C(So(So({},w),{},Mo({},n,o))),S&&S[n]){var a=p(n,S);a&&O(a)}},handleOnKeyPress:function(){},handleClickShowPass:function(){h(!v)}})),Co("div",{"aria-live":"assertive"},void 0,c&&Co(io.lR,{},void 0,a.formatMessage(go.unAuthorized))),Co(ro.W1,{darkMode:t},void 0,Co(mo,{"aria-label":a.formatMessage(go.forgotPassword),href:"https://my.cozi.com/password-reset",target:"_blank"},void 0,a.formatMessage(go.forgotPassword))),Co(H.Ay,{a11yLabel:a.formatMessage(go.deleteAccount),onClick:function(){!function(){var e=w[io.sH.EMAIL],t=e.toLowerCase(),n={emailString:D,confirmString:e},o=y(io.sH.CONFIRM_EMAIL,n,!0);if(o)O(So(So({},S),{},Mo({},io.sH.EMAIL,o)));else if(x&&t)s(t,w[io.sH.PASSWORD]),C(Mo(Mo({},io.sH.EMAIL,""),io.sH.PASSWORD,""));else{var a=m(S,w);O(So({},a))}}()}},void 0,a.formatMessage(go.deleteAccount)),Co(H.Ad,{style:{maxWidth:"unset",height:"unset",padding:"10px"},a11yLabel:a.formatMessage(go.notReady),onClick:o},void 0,a.formatMessage(go.notReady))),ho||(ho=Co("hr",{"aria-hidden":"true"})),Co("h2",{},void 0,a.formatMessage(go.personalInfoTitle)),Co(uo,{},void 0,a.formatMessage(go.personalInfoContent1)),Co(uo,{},void 0,a.formatMessage(go.personalInfoContent2)),Co(H.Ad,{maximalMargins:!0,a11yLabel:a.formatMessage(go.getData),onClick:i},void 0,a.formatMessage(go.getData)))))});var xo,Po;function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Do.apply(null,arguments)}function To(e,t,n,o){Po||(Po="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Po,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const Eo=(0,l.j4)(function(e){var t,n=e.isOpen,o=e.handleClose,a=e.intl;return To(pe.A,{isOpen:n,onOverlayClose:o,overlayAriaLabelID:P.P.DeleteAccConfirmation,titleComponent:a.formatMessage(go.confirmationTitle),buttonComponents:(t=[],t.push({label:K.V.Ok,action:o}),t),justified:!0},void 0,To("p",{},void 0,r.createElement(l.sA,Do({},go.confirmationContent1,{values:{support:To(M.N_,{to:k.A.ContactUs},void 0,r.createElement(l.sA,go.coziSupport))}}))),To("p",{},void 0,r.createElement(l.sA,Do({},go.confirmationContent2,{values:{support:To(M.N_,{to:k.A.ContactUs},void 0,r.createElement(l.sA,go.coziSupport))}}))),To("p",{},void 0,r.createElement(l.sA,Do({},go.confirmationContent3,{values:{survey:To("a",{href:"https://www.surveymonkey.com/r/?sm=Gvy4PcKc2Yn2Ieg1Wm6tuWsF6TqHu65MdU%2fo7wmgO1E%3d",target:"_blank"},void 0,r.createElement(l.sA,go.survey))}}))),To("p",{},void 0,a.formatMessage(go.confirmationContent4)),To("p",{},void 0,a.formatMessage(go.confirmationContent5),xo||(xo=To("br",{})),a.formatMessage(go.confirmationContent6)))});var Lo=U()(j.Ay.div.withConfig({displayName:"styles__Info",componentId:"sc-144ns7u-0"})(["&&&{width:100%;font-size:100%;}"])),zo=U()((0,j.Ay)(F.Table).withConfig({displayName:"styles__StyledTable",componentId:"sc-144ns7u-1"})(["&&&&{border:1px solid ",";min-width:680px;color:",";}"],function(e){return e.theme.palette.gray.cDark4},function(e){return e.theme.palette.black.main})),_o=U()((0,j.Ay)(F.TableHead).withConfig({displayName:"styles__StyledTableHead",componentId:"sc-144ns7u-2"})(["&&&&{background-color:",";font-weight:600;}"],function(e){return e.theme.palette.gray.cDark5})),jo=U()((0,j.Ay)(F.TableCell).withConfig({displayName:"styles__StyledTableHeadCell",componentId:"sc-144ns7u-3"})(["&&&&{min-width:60px;font-weight:600;color:",";}"],function(e){return e.theme.palette.black.main})),No=U()((0,j.Ay)(F.TableCell).withConfig({displayName:"styles__StyledTableCell",componentId:"sc-144ns7u-4"})(["&&&&{color:",";}"],function(e){return e.theme.palette.black.main}
2)),Uo="components.SettingsPage.AccountDeletion.GetDataDialog";const Fo=(0,l.YK)({firstTitle:{id:"".concat(Uo,".firstTitle"),defaultMessage:"Types of Personal Information Cozi Collects"},secondTitle:{id:"".concat(Uo,".secondTitle"),defaultMessage:"Your Personal Information in Cozi"},placeHolderTxt:{id:"".concat(Uo,".placeHolderTxt"),defaultMessage:"Place Holder Text"},dataCollected:{id:"".concat(Uo,".dataCollected"),defaultMessage:"Data Collected"},collectedFrom:{id:"".concat(Uo,".collectedFrom"),defaultMessage:"Collected From(categories)"},businessPurpose:{id:"".concat(Uo,".businessPurpose"),defaultMessage:"Business Purpose"},dataDisclosedTo:{id:"".concat(Uo,".dataDisclosedTo"),defaultMessage:"Data Disclosed To(categories)"},reasonForDisclosure:{id:"".concat(Uo,".reasonForDisclosure"),defaultMessage:"Reason For Disclosure"},dataCollectedContent1:{id:"".concat(Uo,".dataCollectedContent1"),defaultMessage:"Personal information including email address, names, and other data you provided"},collectedFromContent1:{id:"".concat(Uo,".collectedFromContent1"),defaultMessage:"From you when you provide it to us(“Consumer Directly”)"},businessPurposeContent1:{id:"".concat(Uo,".businessPurposeContent1"),defaultMessage:"To provide our service to you, to complete a purchase you initiated, to measure the effectiveness of the service, to improve the service"},dataDisclosedToContent1:{id:"".concat(Uo,".dataDisclosedToContent1"),defaultMessage:"Service Providers (Financial and Analytics) - NO SALE"},reasonForDisclosureContent1:{id:"".concat(Uo,".reasonForDisclosureContent1"),defaultMessage:"To complete a purchase you initiated, to provide the service to you, to measure the effectiveness of the service, to improve the service"},dataCollectedContent2:{id:"".concat(Uo,".dataCollectedContent2"),defaultMessage:"Personal information: Device information"},collectedFromContent2:{id:"".concat(Uo,".collectedFromContent2"),defaultMessage:"From you when you connect to our services(“Consumer Directly”)"},businessPurposeContent2:{id:"".concat(Uo,".businessPurposeContent2"),defaultMessage:"To provide our service to you, to measure the effectiveness of the service, to improve the service"},dataDisclosedToContent2:{id:"".concat(Uo,".dataDisclosedToContent2"),defaultMessage:"Service providers(Analytics and messaging) - NO SALE"},reasonForDisclosureContent2:{id:"".concat(Uo,".reasonForDisclosureContent2"),defaultMessage:"To provide the service to you, to measure the effectiveness of the service, to improve the service"},dataCollectedContent3:{id:"".concat(Uo,".dataCollectedContent3"),defaultMessage:"Advertising identifiers"},collectedFromContent3:{id:"".concat(Uo,".collectedFromContent3"),defaultMessage:"From your device when you connect to our services with a free account"},businessPurposeContent3:{id:"".concat(Uo,".businessPurposeContent3"),defaultMessage:"To show you advertising which may be interest-based or targeted based on your advertising ID"},dataDisclosedToContent3:{id:"".concat(Uo,".dataDisclosedToContent3"),defaultMessage:"Advertising providers"},reasonForDisclosureContent3:{id:"".concat(Uo,".reasonForDisclosureContent3"),defaultMessage:"To show advertising"},data:{id:"".concat(Uo,".data"),defaultMessage:"Data"},location:{id:"".concat(Uo,".location"),defaultMessage:"Location"},notes:{id:"".concat(Uo,".notes"),defaultMessage:"Notes"},dataContent1:{id:"".concat(Uo,".dataContent1"),defaultMessage:"Email addresses"},dataContent2:{id:"".concat(Uo,".dataContent2"),defaultMessage:"First Name(s)"},dataContent3:{id:"".concat(Uo,".dataContent3"),defaultMessage:"Family Name"},dataContent4:{id:"".concat(Uo,".dataContent4"),defaultMessage:"Device Identifiers"}
2,coziDatabase:{id:"".concat(Uo,".coziDatabase"),defaultMessage:"Cozi database"}});var Ro,Ho;function Ko(e,t,n,o){Ho||(Ho="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Ho,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}const Yo=(0,l.j4)(function(e){var t,n,o=e.open,a=e.handleClose,r=e.intl,i=e.personalInfo,l=i.familyName,s=i.names,c=i.externalIds,u=i.devices.map(function(e){return Ko("span",{},e.pushId,e.pushType,": ",e.pushId,Ro||(Ro=Ko("br",{})))});return Ko($.A,{customWidth:1e3,isDialogOpen:o,onDialogClose:a},void 0,Ko(F.DialogContent,{},void 0,Ko(Lo,{},void 0,Ko("h2",{},void 0,r.formatMessage(Fo.firstTitle)),Ko(zo,{"aria-label":r.formatMessage(Fo.firstTitle)},void 0,Ko(_o,{},void 0,Ko(F.TableRow,{},void 0,Ko(jo,{},void 0,r.formatMessage(Fo.dataCollected)),Ko(jo,{},void 0,r.formatMessage(Fo.collectedFrom)),Ko(jo,{},void 0,r.formatMessage(Fo.businessPurpose)),Ko(jo,{},void 0,r.formatMessage(Fo.dataDisclosedTo)),Ko(jo,{},void 0,r.formatMessage(Fo.reasonForDisclosure)))),Ko(F.TableBody,{},void 0,Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataCollectedContent1)),Ko(No,{},void 0,r.formatMessage(Fo.collectedFromContent1)),Ko(No,{},void 0,r.formatMessage(Fo.businessPurposeContent1)),Ko(No,{},void 0,r.formatMessage(Fo.dataDisclosedToContent1)),Ko(No,{},void 0,r.formatMessage(Fo.reasonForDisclosureContent1))),Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataCollectedContent2)),Ko(No,{},void 0,r.formatMessage(Fo.collectedFromContent2)),Ko(No,{},void 0,r.formatMessage(Fo.businessPurposeContent2)),Ko(No,{},void 0,r.formatMessage(Fo.dataDisclosedToContent2)),Ko(No,{},void 0,r.formatMessage(Fo.reasonForDisclosureContent2))),Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataCollectedContent3)),Ko(No,{},void 0,r.formatMessage(Fo.collectedFromContent3)),Ko(No,{},void 0,r.formatMessage(Fo.businessPurposeContent3)),Ko(No,{},void 0,r.formatMessage(Fo.dataDisclosedToContent3)),Ko(No,{},void 0,r.formatMessage(Fo.reasonForDisclosureContent3))))),Ko("h2",{},void 0,r.formatMessage(Fo.secondTitle)),Ko(zo,{"aria-label":r.formatMessage(Fo.secondTitle)},void 0,Ko(_o,{},void 0,Ko(F.TableRow,{},void 0,Ko(jo,{},void 0,r.formatMessage(Fo.data)),Ko(jo,{},void 0,r.formatMessage(Fo.location)),Ko(jo,{},void 0,r.formatMessage(Fo.notes)))),Ko(F.TableBody,{},void 0,Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataContent1)),Ko(No,{},void 0,r.formatMessage(Fo.coziDatabase)),Ko(No,{},void 0,c.join(", "))),Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataContent2)),Ko(No,{},void 0,r.formatMessage(Fo.coziDatabase)),Ko(No,{},void 0,s.join(", "))),Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataContent3)),Ko(No,{},void 0,r.formatMessage(Fo.coziDatabase)),t||(t=Ko(No,{},void 0,l))),Ko(F.TableRow,{},void 0,Ko(No,{},void 0,r.formatMessage(Fo.dataContent4)),Ko(No,{},void 0,r.formatMessage(Fo.coziDatabase)),n||(n=Ko(No,{},void 0,u))))))))}),Bo=n.p+"6022697b4681dee0fd396a179ecdf17a.png";var $o=n("CStl"),Go=n("chG5"),Vo=n("u0FV"),Wo=U()(j.Ay.div.withConfig({displayName:"styles__CoziFooter",componentId:"q494b5-0"})(["text-align:center;width:100%;color:",";padding:10px 10% 10px 10%;font-size:",";background-color:",";bottom:0px;"],function(e){return e.theme.palette.gray.cDark1},function(e){return e.theme.typography.caption.fontSize},function(e){return e.theme.palette.toolbox.background})),Jo=U()(j.Ay.img.withConfig({displayName:"styles__TrademarkImg",componentId:"q494b5-1"})(["max-width:60%;display:block;margin:0 auto;"])),Zo=U()(j.Ay.a.withConfig({displayName:"styles__FooterLink",componentId:"q494b5-2"})(["color:",";font-size:","px;font-weight:500;&:hover{color:",";}"],function(e){return e.theme.palette.gray.cDark3},function(e){return e.theme.typography.fontSize+2},function(e){return e.theme.palette.gray.cDark1}));const Qo=(0,l.YK)({signOut:{id:"components.SettingsPage.Footer.signOut",defaultMessage:"Sign Out"}
2,ccpa:{id:"components.SettingsPage.Footer.ccpa",defaultMessage:"Do Not Sell My Info"},copyNotice:{id:"components.SettingsPage.Footer.copyNotice",defaultMessage:"Cozi Inc. All Right Reserved. Cozi and the Cozi logo are trademarks of Cozi Inc., registered in the USA, Canada, and the European Community"},version:{id:"components.SettingsPage.Footer.version",defaultMessage:"Version"},privacy:{id:"components.SettingsPage.Footer.privacy",defaultMessage:"Privacy and Legal"},tos:{id:"components.SettingsPage.Footer.tos",defaultMessage:"Terms of Use"},delete:{id:"components.SettingsPage.Footer.delete",defaultMessage:"Delete Family Account"}});var qo,Xo;function ea(e,t,n,o){Xo||(Xo="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Xo,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}var ta=(0,i.connect)(null,function(e){return{onClientUnset:function(){return e((0,Go.F7)())}}});const na=(0,c.Zz)(ta)((0,l.j4)(function(e){var t,n=e.intl,o=e.onClientUnset,a=e.ccpaAction,i=e.openDeletionDialog,s=(0,Vo.R)("SuppressAds");return ea(Wo,{role:"contentinfo"},void 0,function(){if(s)return null;var e=n.formatMessage(Qo.ccpa);return ea(H.Ad,{maximalMargins:!0,a11yLabel:e,onClick:function(){return a()}},void 0,e)}(),function(){if("iFrame"!==window.CoziType){var e=n.formatMessage(Qo.signOut);return ea(H.Ay,{style:{margin:"8px auto",width:"fit-content"},a11yLabel:e,onClick:function(){return o()}},void 0,e)}return null}(),qo||(qo=ea(Jo,{src:Bo,alt:"Cozi Trademark"})),ea("p",{},void 0,"©2006-",(new Date).getFullYear().toString()," ",r.createElement(l.sA,Qo.copyNotice)),ea("p",{},void 0,r.createElement(l.sA,Qo.version),": ",(0,$o.Z)()),ea("p",{},void 0,ea(Zo,{as:"a",href:"https://www.cozi.com/privacy-and-legal",target:"_blank"},void 0,r.createElement(l.sA,Qo.privacy))," | ",ea(Zo,{as:"a",href:"https://www.cozi.com/terms-of-use/",target:"_blank"},void 0,r.createElement(l.sA,Qo.tos))),(t=n.formatMessage(Qo.delete),ea(H.Ad,{maximalMargins:!0,a11yLabel:t,onClick:function(){return i()}},void 0,t)))}));var oa=n("Bya9"),aa=n("q0pR"),ra={"Africa/Cairo":"Africa, Cairo","America/Anchorage":"America, Anchorage","America/Buenos_Aires":"America, Argentina, Buenos Aires","America/Argentina/San_Juan":"America, Argentina, San Juan","America/Caracas":"America, Caracas","America/Chicago":"America, Chicago","America/Guatemala":"America, Guatemala","America/Denver":"America, Denver","America/Detroit":"America, Detroit","America/Los_Angeles":"America, Los Angeles","America/Mexico_City":"America, Mexico City","America/New_York":"America, New York","America/Puerto_Rico":"America, Puerto Rico","America/Tijuana":"America, Tijuana","America/Vancouver":"America, Vancouver","America/Chihuahua":"America, Chihuahua","Pacific/Auckland":"Pacific, Auckland","Asia/Bangkok":"Asia, Bangkok","Asia/Calcutta":"Asia, Kolkata","Asia/Shanghai":"Asia, Shanghai","Asia/Dhaka":"Asia, Dhaka","Asia/Dubai":"Asia, Dubai","Europe/Istanbul":"Europe, Istanbul","Asia/Kabul":"Asia, Kabul","Asia/Karachi":"Asia, Karachi","Asia/Katmandu":"Asia, Kathmandu","Asia/Rangoon":"Asia, Yangon","Asia/Seoul":"Asia, Seoul","Asia/Tehran":"Asia, Tehran","Asia/Tokyo":"Asia, Tokyo","Atlantic/Cape_Verde":"Atlantic, Cape Verde","Atlantic/Reykjavik":"Atlantic, Reykjavik","Australia/Sydney":"Australia, Sydney","Australia/Adelaide":"Australia, Adelaide","Australia/Brisbane":"Australia, Brisbane","Australia/Darwin":"Australia, Darwin","Australia/Eucla":"Australia, Eucla","Australia/Perth":"Australia, Perth","Europe/Athens":"Europe, Athens","Europe/London":"Europe, London","Europe/Moscow":"Europe, Moscow","Europe/Paris":"Europe, Paris","Europe/Rome":"Europe, Rome","Pacific/Chatham":"Pacific, Chatham","Pacific/Fiji":"Pacific, Fiji","Pacific/Honolulu":"Pacific, Honolulu","Pacific/Pago_Pago":"Pacific, Pago Pago","Pacific/Wake":"Pacific, Wake","Pacific/Marquesas":"Pacific, Marquesas","America/Phoenix":"America, Phoenix","America/St_Johns":"America, St Johns","America/Noronha":"America, Noronha","Pacific/Apia":"Pacific, Apia","America/Regina":"America, Regina","America/Bogota":"America, Bogota","America/Halifax":"America, Halifax","America/La_Paz":"America, La Paz","America/Manaus":"America, Manaus","America/Santiago":"America, Santiago","America/Sao_Paulo":"America, Sa
2o Paulo","America/Godthab":"America, Godthab","America/Montevideo":"America, Montevideo","Atlantic/South_Georgia":"Atlantic, South Georgia","Atlantic/Azores":"Atlantic, Azores","Africa/Casablanca":"Africa, Casablanca","Europe/Berlin":"Europe, Berlin","Europe/Budapest":"Europe, Budapest","Europe/Brussels":"Europe, Brussels","Europe/Warsaw":"Europe, Warsaw","Africa/Lagos":"Africa, Lagos","Asia/Amman":"Asia, Amman","Asia/Beirut":"Asia, Beirut","Africa/Johannesburg":"Africa, Johannesburg","Europe/Kiev":"Europe, Kyiv","Asia/Jerusalem":"Asia, Jerusalem","Europe/Minsk":"Europe, Minsk","Africa/Windhoek":"Africa, Windhoek","Asia/Baghdad":"Asia, Baghdad","Asia/Riyadh":"Asia, Riyadh","Africa/Nairobi":"Africa, Nairobi","Asia/Tbilisi":"Asia, Tbilisi","Asia/Baku":"Asia, Baku","Asia/Yerevan":"Asia, Yerevan","Asia/Yekaterinburg":"Asia, Yekaterinburg","Asia/Colombo":"Asia, Colombo","Asia/Novosibirsk":"Asia, Novosibirsk","Asia/Krasnoyarsk":"Asia, Krasnoyarsk","Asia/Irkutsk":"Asia, Irkutsk","Asia/Singapore":"Asia, Singapore","Asia/Taipei":"Asia, Taipei","Asia/Yakutsk":"Asia, Yakutsk","Pacific/Port_Moresby":"Pacific, Port Moresby","Australia/Hobart":"Australia, Hobart","Asia/Vladivostok":"Asia, Vladivostok","Pacific/Guadalcanal":"Pacific, Guadalcanal","Pacific/Tongatapu":"Pacific, Tongatapu"},ia=["isDownFromSmall"];var la=U()(j.Ay.select.withConfig({displayName:"styles__StyledSelect",componentId:"caj9u3-0"})(["&&{background-color:transparent;color:",";padding:4px 8px;margin:10px 0px;div:first-child{padding:4px 24px 4px 4px;}}"],function(e){return e.theme.palette.gray.cDark2})),sa=(0,j.Ay)(function(e){e.isDownFromSmall;var t=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,ia);return r.createElement(F.FormControl,t)}).withConfig({displayName:"styles__StyledFormControl",componentId:"caj9u3-1"})(["display:flex;flex-direction:",";justify-content:space-between;"],function(e){return e.isDownFromSmall?"column":"row"}),ca=U()(j.Ay.div.withConfig({displayName:"styles__TimeZoneLabel",componentId:"caj9u3-2"})(["display:flex;align-items:center;justify-content:space-between;color:",";p{margin:0px;","}"],function(e){return e.theme.palette.gray.cDark2},function(e){return e.darkMode&&"color: ".concat(e.theme.palette.white.absolute,";")}));const ua=(0,l.YK)({timezone:{id:"app.components.Settings.Timezone.timezone",defaultMessage:"Time zone"}});var da;function fa(e,t,n,o){da||(da="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:da,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function pa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ma(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ma(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const ya=(0,c.Zz)((0,l.j4)(function(e){var t=e.accountTimeZone,n=e.changeTimeZone,o=e.intl,a=Intl.DateTimeFormat().resolvedOptions().timeZone,i=(0,de.Lh)(),l=new Date,s=pa((0,r.useState)(a),2),c=s[0],u=s[1],d=(0,F.useMediaQuery)("(max-width: ".concat(oa.L.sm,"px)"),{noSsr:!0});(0,r.useEffect)(function(){t?u(t):(u(a),n(a))},[t]),(0,r.useEffect)(function(){i=(0,de.Lh)()},[(0,de.Lh)()]);var f=Object.keys(ra).map(function(e){var t=(0,aa.getTimezoneOffset)(e,l)/-6e4;return{gmt:(0,aa.format)(l,"OOO",{timeZone:e}),label:ra[e],offset:t,timezone:e}});f.sort(function(e,t){return t.offset-e.offset});var p=f.map(function(e){return fa("option",{value:e.timezone},e.timezone,"".concat(e.gmt," ").concat(e.label))});return fa(sa,{isDownFromSmall:d},void 0,fa(ca,{id:"timezone-selector-label",darkMode:i}
2,void 0,fa("p",{},void 0,o.formatMessage(ua.timezone))),fa(la,{"aria-labelledby":"timezone-selector-label",value:c,onChange:function(e){u(e.target.value),n(e.target.value)}},void 0,p))}));var ga=n("E3DY"),va=n("Pkii"),ha=n("sLM0"),ba=n("uJFJ"),wa=["displayAds","isDesktop"];var Ca=U()(j.Ay.div.withConfig({displayName:"styles__ButtonComponent",componentId:"sc-2lamak-0"})(["&&&{margin-left:auto;margin-bottom:20px;"])),Aa=U()((0,j.Ay)(F.Dialog).withConfig({displayName:"styles__StyledDialog",componentId:"sc-2lamak-1"})(["&&&&{min-height:80vh;}"])),Sa=U()(j.Ay.span.withConfig({displayName:"styles__Info",componentId:"sc-2lamak-2"})(["&&&{display:block;width:100%;font-size:100%;}"])),Ma=U()(j.Ay.div.withConfig({displayName:"styles__TitleWrapper",componentId:"sc-2lamak-3"})(["&&&{display:flex;justify-content:center;align-items:center;height:100%;}"])),ka=U()((0,j.Ay)(function(e){e.displayAds,e.isDesktop;var t=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,wa);return r.createElement(F.DialogContent,t)}).withConfig({displayName:"styles__CcpaContainer",componentId:"sc-2lamak-4"})(["&&&&{display:flex;flex-direction:column;justify-content:space-between;min-height:60vh;",";}"],function(e){return e.displayAds&&!e.isDesktop&&"padding-top: 50px;"})),Oa=j.Ay.a.withConfig({displayName:"styles__HyperLink",componentId:"sc-2lamak-5"})(["text-decoration:none;"]),Ia=(U()((0,j.Ay)(F.FormControl).withConfig({displayName:"styles__StyledFormControl",componentId:"sc-2lamak-6"})(["&&{margin-top:auto;}"])),"app.components.ccpa");const xa=(0,l.YK)({infoTitle:{id:"".concat(Ia,".title"),defaultMessage:"Advertising Policy"},infoMessageShort:{id:"".concat(Ia,".info"),defaultMessage:"Cozi does not sell your name, email address, or other identifying information. We do work with advertising partners, who with your permission will track your device enabling our ad partners to show personalized ads."},infoMessage:{id:"".concat(Ia,".info"),defaultMessage:"Cozi does not sell your name, email address, or other identifying information. We do work with advertising partners, who with your permission will track your device enabling our ad partners to show personalized ads. If you would like to opt out of ad tracking, select Opt out below"},infoMessage2:{id:"".concat(Ia,".info2"),defaultMessage:"You can read more about Cozi’s commitment to your privacy in our {privacyPolicy}. If you still need help, visit our {appPrivacy} page."},infoLink1:{id:"".concat(Ia,".link"),defaultMessage:"Privacy Policy"},infoLink2:{id:"".concat(Ia,".link2"),defaultMessage:"Privacy and Legal"},ok:{id:"".concat(Ia,".ok"),defaultMessage:"OK"},cancel:{id:"".concat(Ia,".Cancel"),defaultMessage:"Dismiss"},only:{id:"".concat(Ia,".Only"),defaultMessage:"Opt out"}});function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Pa.apply(null,arguments)}var Da;function Ta(e,t,n,o){Da||(Da="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Da,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Ea(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}
2finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const za=(0,c.Zz)((0,u.A)())((0,l.j4)(function(e){var t=e.open,n=e.intl,o=e.onClose,a=n.formatMessage(xa.infoTitle),s=n.formatMessage(xa.infoMessageShort);window.ReactNativeWebView&&window.CoziUser&&"true"!==window.CoziUser.legacyInfo.gdprConsent&&(s=n.formatMessage(xa.infoMessage));var c=n.formatMessage(xa.ok),u=n.formatMessage(xa.only),d=(0,F.useMediaQuery)("(min-width: ".concat(oa.L.md,"px)"),{noSsr:!0}),f=Ea((0,r.useState)(!1),2),p=f[0],m=f[1],y=(0,i.useSelector)(ga.FY);(0,r.useEffect)(function(){m(y)},[y]);var g=function(){window.ReactNativeWebView&&(!window.CoziUser.legacyInfo.gdprConsent||window.CoziUser.legacyInfo.gdprConsent&&"true"!==window.CoziUser.legacyInfo.gdprConsent)&&window.ReactNativeWebView.postMessage("ccpa:true"),o()};return Ta(Aa,{fullScreen:!d,open:t,TransitionComponent:ba.e},void 0,Ta(va.A,{style:{alignItems:"center",display:"flex"},noAdPadding:d},void 0,Ta(Ma,{},void 0,a)),Ta(ka,{isDesktop:d,displayAds:p},void 0,Ta(Sa,{},void 0,Ta("p",{},void 0,s),Ta("p",{},void 0," ",r.createElement(l.sA,Pa({},xa.infoMessage2,{values:{privacyPolicy:Ta(Oa,{href:"https://www.cozi.com/privacy-policy",target:"_blank"},void 0,r.createElement(l.sA,xa.infoLink1)),appPrivacy:Ta(Oa,{href:"https://www.cozi.com/privacy-and-legal/",target:"_blank"},void 0,r.createElement(l.sA,xa.infoLink2))}})))),!window.ReactNativeWebView||window.CoziUser.legacyInfo.gdprConsent&&"false"!==window.CoziUser.legacyInfo.gdprConsent?Ta(Ca,{},void 0,Ta(H.Ay,{ccpaDialogFilled:!0,onClick:function(){g()}},void 0,c)):Ta(ha.KD,{justified:!0},void 0,Ta(H.Ay,{ccpaDialogOutlined:!0,buttonLabel:u,onClick:function(){window.ReactNativeWebView&&window.ReactNativeWebView.postMessage("ccpa:false"),o()}},void 0,u),Ta(H.Ay,{ccpaDialogFilled:!0,buttonLabel:c,onClick:function(){g()}},void 0,c))))}));var _a,ja=n("Tt0o"),Na=n("b07L"),Ua=n("G5M8");function Fa(e,t,n,o){_a||(_a="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:_a,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Ra(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const Ka=(0,c.Zz)((0,u.A)())((0,l.j4)(function(e){var t=e.intl,n=e.isOpen,o=e.onClose,a=e.subscription,r=e.account.productData,i=void 0===r?{}:r,l=(0,de.iE)(),s=(0,Ua.Q)({couponURL:l}),c=(0,kn.uS)(a),u=(0,F.useMediaQuery)("(min-width: ".concat(oa.L.sm,"px)"),{noSsr:!0}),d=Ra(i.products,1)[0];return Fa($.A,{isDialogOpen:n,onDialogClose:o,dialogTitle:window.ReactNativeWebView?t.formatMessage(Na.A.accountStatus):null},void 0,Fa(F.DialogContent,{},void 0,Fa(ja.Ay,{isUpFromSmall:u,intl:t,subscription:a,subStats:c,currentlyOfferedProduct:d,couponCode:s})))}));var Ya=n("N4XS");const Ba=(0,l.YK)({header:{id:"app.containers.SettingsPage.header",defaultMessage:"Settings"}
2,memberSettings:{id:"containers.SettingsPage.memberSettings",defaultMessage:"Family Member Settings"},accountSettings:{id:"containers.SettingsPage.accountSettings",defaultMessage:"Account Settings"},calendars:{id:"containers.SettingsPage.calendars",defaultMessage:"Calendars"},deviceSettings:{id:"containers.SettingsPage.deviceSettings",defaultMessage:"Device Settings"},theme:{id:"containers.SettingsPage.theme",defaultMessage:"Theme"},deviceUser:{id:"containers.SettingsPage.deviceUser",defaultMessage:"Device User"},appVersion:{id:"containers.SettingsPage.appVersion",defaultMessage:"App Version"},manageCalendars:{id:"containers.SettingsPage.manageCalendars",defaultMessage:"Manage Calendars"},agendaEmails:{id:"containers.SettingsPage.agendaEmails",defaultMessage:"Agenda Emails"},a11y:{settings_title:{id:"containers.SettingsPage.a11y.settings_title",defaultMessage:"Cozi Settings"},settings_heading:{id:"containers.SettingsPage.a11y.settings_heading",defaultMessage:"Settings home"},loadingSettings:{id:"containers.SettingsPage.a11y.loadingSettings",defaultMessage:"loading settings"},settingsLoaded:{id:"containers.SettingsPage.a11y.settingsLoaded",defaultMessage:"settings loaded"}},updatedHoliday:{id:"containers.SettingsPage.updatedHoliday",defaultMessage:"Calendar holiday subscriptions updated"},emailVerificationError:{id:"containers.SettingsPage.emailVerificationError",defaultMessage:"Your email address is either already verified or the email verification link you used is no longer valid. Each email verification link can only be used once and expires after seven days. For more help, please {contactUs}"},contactUs:{id:"containers.SettingsPage.contactUs",defaultMessage:"contact us"},settings:{id:"containers.SettingsPage.settings",defaultMessage:"Settings"}});var $a,Ga,Va,Wa,Ja,Za,Qa,qa,Xa=n("+Cdr");function er(e){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(e)}function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},tr.apply(null,arguments)}function nr(e,t,n,o){Qa||(Qa="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Qa,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function or(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=er(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=er(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==er(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}const ir=(0,c.Zz)((0,u.A)())((0,l.j4)(function(e){var t=e.account,n=e.intl,o=e.handleRefresh,a=e.update;(0,A.gA)();var s=(0,i.useDispatch)(),c=t.persons,u=t.householdData,d=t.isGold,f=t.subscription,p=t.cobrands,m=u.timezone,y=u.colorIndex,g=u.name,v=u.cobrand,h=p.find(function(e){return e.id===v}),b=ar((0,r.useState)(!1),2),w=b[0],C=b[1],S=ar((0,r.useState)(g||""),2),T=S[0],E=S[1],L=ar((0,r.useState)((0,O.Nk)(O.lT.Partners)),2),z=L[0],_=L[1],j=ar((0,r.useState)(!1),2),N=j[0],U=j[1],F=ar((0,r.useState)(h?h.displayNameShort:"".concat(v)),2),R=F[0],H=F[1],K=t.configData.app.c
2olors.attendeePalette,B=ar((0,r.useState)(y),2),$=B[0],G=B[1],V=ar((0,r.useState)((0,O.Nk)(O.lT.Delete)),2),W=V[0],J=V[1],Z=ar((0,r.useState)(!1),2),Q=Z[0],q=Z[1],X=ar((0,r.useState)(!1),2),ee=X[0],te=X[1],ne=ar((0,r.useState)(!1),2),oe=ne[0],ae=ne[1],re=(0,i.useSelector)(ue.ZL),ie=(0,i.useSelector)(ue.yk),le=(0,i.useSelector)(ue.Hv),se=(0,i.useSelector)(ue.UP),fe=(0,i.useSelector)(ue.ux),pe=(0,i.useSelector)(ue.fR),me=(0,i.useSelector)(ue.vr),ye=(0,i.useSelector)(ue.QI),ge=(0,r.useCallback)(function(){s((0,ce.$4)())},[s]),ve=Object.values(Y),he=[],be=[];se&&se.length>0&&se.forEach(function(e){return t=e,void(ve.includes(t.calendar.id)?he.push(t):be.push(t));var t}),(0,r.useEffect)(function(){if(window.CoziHeight=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),"iFrame"===window.CoziType){var e=window.CoziHeight+window.CoziExtraHeight;window.parent.postMessage(JSON.stringify({Mozi:{type:"resize",data:"".concat(e)}}),window.CoziParentSrc)}return function(){qa&&(clearInterval(qa),qa=void 0)}},[]),(0,r.useEffect)(function(){(0,O.jT)(O.lT.VerifyEmail)&&Se((0,O.Gr)()),setTimeout(function(){(0,O.Nk)(O.lT.AddFamily)&&(Ce(null),(0,O.mr)(O.lT.AddFamily)),(0,O.Nk)(O.lT.AgendaEmail)&&(window.ReactNativeWebView&&window.ReactNativeWebView.postMessage("chooseAgendaEmails"),(0,O.mr)(O.lT.AgendaEmail)),(0,O.mr)(O.lT.VerifyEmail)},3e3)},[]),(0,r.useEffect)(function(){re||ie||(Me(),ke(),w&&(0,D.Kh)(!1),C(!1),"iFrame"===window.CoziType&&window.parent.postMessage(JSON.stringify({Mozi:{type:"editing",data:!1}}),window.CoziParentSrc)),!0!==window.photoChanged||re||(window.photoChanged=!1,(0,Ya.Y)())},[re]),(0,r.useEffect)(function(){fe&&fe.workflowId&&ae(!0)},[fe]);var we=(0,r.useCallback)(function(){s((0,Go.F7)())},[s]),Ce=function(e){(0,de.Ng)(),Ie(!0,e),(0,D.Kh)(!0),"iFrame"===window.CoziType&&window.parent.postMessage(JSON.stringify({Mozi:{type:"editing",data:!0}}),window.CoziParentSrc)},Ae=(0,r.useCallback)(function(e,t){s((0,ce.lw)(e,t))},[s]),Se=(0,r.useCallback)(function(e){s((0,ce.XS)(e))},[s]),Me=(0,r.useCallback)(function(){s((0,ce.pF)())},[s]),ke=(0,r.useCallback)(function(){s((0,ce.Wr)())},[s]),Oe=(0,r.useCallback)(function(){s((0,ce.A)())},[s]),Ie=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Pe(e,n?n.accountPersonId:null,n),o(t.householdData.accountId,!0)},xe=(0,r.useCallback)(function(e){s((0,ce.TO)(e)),(0,Ya.Y)(e)},[s]),Pe=(0,r.useCallback)(function(e,t,n){s((0,ce.kB)(e,t,n)),(0,D.Kh)(e)},[s]),De=(0,r.useCallback)(function(e,t){s((0,ce.Ai)(or({},e,t))),(0,Ya.Y)()},[s]),Te=(0,r.useCallback)(function(e){s((0,ce.gN)(e)),e&&(window.photoChanged=!0)},[s]),Ee=(0,r.useCallback)(function(e,t){s((0,ce.UL)(e,t,[],n.formatMessage(Ba.updatedHoliday)))},[s]);return r.createElement(r.Fragment,null,N&&nr(Ka,{isOpen:N,onClose:function(){U(!1),(0,D.Kh)(!1)},subscription:f}),z&&nr(mn,{account:t,cobrandName:R,onChangeCobrand:function(e){H(e.cobrand.displayNameShort),xe(e.cobrand.id)},isOpen:z,onClose:function(){(0,D.Kh)(!1),_(!1)}}),nr("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},void 0,nr(Ln.A,{photo:u.photo,photoChanged:Te}),nr(Jn,{name:T,change:function(e){T!==e&&De("name",e),E(e)}})),nr(I.A,{title:n.formatMessage(Ba.memberSettings)},void 0,nr(ao.A,{onOpenAddEdit:function(e){Ce(e)},persons:c,colorList:K})),nr(I.A,{title:n.formatMessage(Ba.accountSettings)},void 0,nr(oo,{colorList:K,color:$,colorSelected:function(e){De("colorIndex",e),G(e)}}),"iFrame"!==window.CoziType&&($a||($a=nr("hr",{}))),"iFrame"!==window.CoziType&&nr(En,{isGold:d,subscription:f,onClick:function(){(0,D.Kh)(!0),U(!0)}}),Ga||(Ga=nr("hr",{"aria-hidden":"true"})),nr(qt,{intl:n,cobrandName:R,onAction:function(){(0,D.Kh)(!0),_(!0)}}),Va||(Va=nr("hr",{"aria-hidden":"true"})),window.CoziUser&&window.CoziUser.legacyInfo&&nr(Sn,{labelText:n.formatMessage(Ba.agendaEmails),subText:window.CoziUser.legacyInfo.agendaEmails,callback:"chooseAgendaEmails"}),window.CoziUser&&window.CoziUser.legacyInfo&&(Wa||(Wa=nr("hr",{"aria-hidden":"true"}))),nr(ya,{accountTimeZone:m,changeTimeZone:function(e){De("timezone",e)}})),nr(I.A,{title:n.formatMessage(Ba.calendars)},void 0,nr($t,{subbedHolidays:he,currentlyConnectedCalendars:be,account:t,onSaveHolidays:function(e,t){Ee(e,t)}})),window.CoziUser&&window.CoziUser.legacyInfo&&nr(I.A,{title:n.formatMessage(Ba.deviceSettings),rerenderHack:a},void 0,nr(Sn,{labelText:n.formatMessage(Ba.theme),subText:"".concat(window.CoziUser.legacyInfo.theme),callback:"chooseTheme"}),Ja||(Ja=nr("hr",{"aria-hidden":"true"})),nr(Sn,{labelText:n.formatMessage(Ba.deviceUser),subText:"".concat(window.CoziUser.legacyInfo.deviceUser.includes("null")?"None":window.CoziUser.legacyInfo.deviceUser),callback:"chooseDeviceUser"}),Za||(Za=nr("hr",{"aria-hidden":"true"})),nr(Sn,{labelText:n.formatMessage(Ba.appVersion),subText:window.CoziUser.legacyInfo.version})),"iFrame"!==window.CoziType&&nr(na,{openDeletionDialog:function(){(0,D.Kh)(!0),J(!0)},ccpaAction:function(){if(window.ReactNativeWebView)window.CoziUser.legacyInfo.gdprConsent&&"true"===window.CoziUser.legacyInfo.gdprConsent&&window.ReactNativeWebView.postMessage("gdprConsent"),(0,D.Kh)(!0);else if(window.googlefc){var e=document.createElement("a");e.href="javascript:googlefc.callbackQueue.push(googlefc.showRevocationMessage)",e.click()}q(!0)}}),W&&nr(Io,{resetAuth:function(){Oe()},authFailed:pe,open:W,handleDelete:function(e,t){return Ae(e,t)},handleClose:function(){(0,D.Kh)(!1),J(!1),(0,O.mr)(O.lT.Delete)},handleOpenGetDataDialog:function(){te(!0),(0,D.Kh)(!0)},subscriptionType:function(){if(f&&f.productProvider)return f.productProvider}()}),oe&&nr(Eo,{isOpen:oe,handleClose:function(){ae(!1),we()}}),ee&&nr(Yo,{personalInfo:le,open:ee,handleClose:function(){te(!1),(0,D.Kh)(!1)}}
2),Q&&nr(za,{open:Q,onClose:function(){(0,D.Kh)(!1),q(!1)}}),me&&nr(x.A,{isOpen:me,overlayAriaLabelID:P.P.EmailVerificationTokenError,onOverlayClose:ge,errMsg:r.createElement(l.sA,tr({},Ba.emailVerificationError,{values:{contactUs:nr(M.N_,{target:"_blank",to:k.A.ContactUs},void 0,r.createElement(l.sA,Ba.contactUs))}}))}),ye&&nr(Xa.A,{isOpen:ye}))})),lr=ir;var sr=n("+xZS"),cr=n("Ru/b"),ur=n("pZUK"),dr=n("ig+S"),fr=n("YUsr"),pr=n("lL4m");n("R+un"),n("DOBh"),n("dpUS");function mr(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function r(n,o,a,r){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return yr(c,"_invoke",function(n,o,a){var r,l,s,c=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,f.n=n,i}};function p(n,o){for(l=n,s=o,t=0;!d&&c&&!a&&t<u.length;t++){var a,r=u[t],p=f.p,m=r[2];n>3?(a=m===o)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((a=n<2&&p<r[1])?(l=0,f.v=o,f.n=r[1]):p<m&&(a=n<3||r[0]>o||o>m)&&(r[4]=n,r[5]=o,f.n=m,l=0))}if(a||n>1)return i;throw d=!0,o}return function(a,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,r){if(l||(a="next"),t=r[a]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);r=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==i)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,a,r),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(yr(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yr(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,yr(d,"constructor",c),yr(c,"constructor",s),s.displayName="GeneratorFunction",yr(c,a,"GeneratorFunction"),yr(d),yr(d,a,"Generator"),yr(d,o,function(){return this}),yr(d,"toString",function(){return"[object Generator]"}),(mr=function(){return{w:r,m:f}})()}function yr(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}yr=function(e,t,n,o){function r(t,n){yr(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},yr(e,t,n,o)}var gr=mr().m(xr),vr=mr().m(Pr),hr=mr().m(Dr),br=mr().m(Tr),wr=mr().m(Er),Cr=mr().m(Lr),Ar=mr().m(zr),Sr=mr().m(_r),Mr=mr().m(Nr),kr=mr().m(Ur),Or=mr().m(Fr),Ir=mr().m(Rr);function xr(e){return mr().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,(0,ur.nv)("setHouseholdData",dr.Oe.UPDATE_HOUSEHOLD,e.data,"PUT");case 1:return t.a(2)}},gr)}function Pr(e){var t,n,o,a;return mr().w(function(r){for(;;)switch(r.p=r.n){case 0:return t=dr.Oe.UPLOAD_PHOTO,(n=new FormData).set("photopicker",e),r.p=1,r.n=2,(0,ur.pt)("uploadFamilyPhoto",t,n);case 2:o=r.v,r.n=4;break;case 3:r.p=3,a=r.v,Fe.A.error("Settings","There has been an error in writing the family photo ",a);case 4:return r.a(2,o)}},vr,null,[[1,3]])}function Dr(e){var t;return mr().w(function(n){for(;;)switch(n.n){case 0:return t=dr.Oe.ACCOUNT_PERSON.replace("$personId",e),n.n=1,(0,ur.cu)("deletePerson",t);case 1:return n.a(2)}},hr)}function Tr(e){var t;return mr().w(function(n){for(;;)switch(n.n){case 0:return t=dr.Oe.ACCOUNT_PERSON.replace("$personId",""),n.n=1,(0,ur.nv)("addPerson",t,e);case 1:return n.a(2,n.v)}},br)}function Er(e,t){var n;return mr().w(function(o){for(;;)switch(o.n){case 0:return n=dr.Oe.ACCOUNT_PERSON.replace("$personId",e),o.n=1,(0,ur.nv)("updatePerson",n,t,"PUT");case 1:return o.a(2,o.v)}},wr)}function Lr(e){var t;return mr().w(function(n){for(;;)switch(n.n){case 0:return t=dr.Oe.SEND_EMAIL_VERIFICATION.replace("$personId",e),n.n=1,(0,ur.nv)("sendVerificationEmail",t);case 1:return n.a(2,n.v)}},Cr)}function zr(e){var t;return mr().w(function(n){for(;;)switch(n.n){case 0:return t=dr.Oe.SEND_EMAIL_VERIFICATION_TOKEN,n.n=1,(0,ur.nv)("sendVerificationEmailTokenRestCall",t,{token:e},"POST",!0);case 1:return n.a(2,n.v)}},Ar)}function _r(){var e,t;return mr().w(function(n){for(;;)switch(n.n){case 0:return e=dr.Oe.GET_SUBSCRIBED_CALENDARS,n.n=1,(0,ur.RX)("loadSubscribedCalendarsRestCall",e,!1);case 1:return t=n.v,n.a(2,t)}},Sr)}function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return mr().m(function n(){var o,a;return mr().w(function(n){for(;;)switch(n.n){case 0:return o=dr.Oe.SUBSCRIBE_TO_CALENDARS.replace("$calendarId",e),n.n=1,(0,ur.nv)("subscribeToCalendar",o,t,"PUT");case 1:return a=n.v,n.a(2,a)}},n)})()}function Nr(e){var t,n;return mr().w(function(o){for(;;)switch(o.n){case 0:return t=dr.Oe.LOAD_INTERNET_CALENDAR,o.n=1,(0,ur.nv)("loadInternetCalendar",t,{url:e},"POST");case 1:return n=o.v,o.a(2,n)}},Mr)}function Ur(e){var t,n;return mr().w(function(o){for(;;)switch(o.n){case 0:return t=dr.Oe.SUBSCRIBE_TO_CALENDARS.replace("$calendarId",e),o.n=1,(0,ur.cu)("unsubscribeToCalendar",t,[]);case 1:return n=o.v,o.a(2,n)}},kr)}function Fr(){var e,t;return mr().w(function(n){for(;;)switch(n.n){case 0:return e=dr.Oe.GET_CALENDAR_STATUSES,n.n=1,(0,ur.RX)("getSharedCalendarStatusesRestCall",e);case 1:return t=n.v,n.a(2,t)}},Or)}function Rr(e,t){var n,o;return mr().w(function(a){for(;;)switch(a.n){case 0:return n={feed:{status:t?T.vP.Enabled:T.vP.Revoked}},o=dr.Oe.TOGGLE_CALENDAR_STATUS.replace("$attendeeId",e),a.n=1,(0,ur.nv)("toggleCalendarStatusRestCall",o,n,"PUT");case 1:return a.a(2)}},Ir)}var Hr=n("uRzJ");function Kr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
vendor: 2,996 bytes, line 2
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Yr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw r}}}}function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Br(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function r(n,o,a,r){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return $r(c,"_invoke",function(n,o,a){var r,l,s,c=0,u=a||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return r=t,l=0,s=e,f.n=n,i}};function p(n,o){for(l=n,s=o,t=0;!d&&c&&!a&&t<u.length;t++){var a,r=u[t],p=f.p,m=r[2];n>3?(a=m===o)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((a=n<2&&p<r[1])?(l=0,f.v=o,f.n=r[1]):p<m&&(a=n<3||r[0]>o||o>m)&&(r[4]=n,r[5]=o,f.n=m,l=0))}if(a||n>1)return i;throw d=!0,o}return function(a,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){r||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,r){if(l||(a="next"),t=r[a]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);r=e}else if((t=(d=f.n<0)?s:n.call(o,f))!==i)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,a,r),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):($r(t={},o,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$r(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,$r(d,"constructor",c),$r(c,"constructor",s),s.displayName="GeneratorFunction",$r(c,a,"GeneratorFunction"),$r(d),$r(d,a,"Generator"),$r(d,o,function(){return this}),$r(d,"toString",function(){return"[object Generator]"}),(Br=function(){return{w:r,m:f}})()}function $r(e,t,n,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}$r=function(e,t,n,o){function r(t,n){$r(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(r("next",0),r("throw",1),r("return",2))},$r(e,t,n,o)}
2var Gr=Br().m(si),Vr=Br().m(ui),Wr=Br().m(di),Jr=Br().m(fi),Zr=Br().m(pi),Qr=Br().m(mi),qr=Br().m(yi),Xr=Br().m(gi),ei=Br().m(vi),ti=Br().m(hi),ni=Br().m(bi),oi=Br().m(wi),ai=Br().m(Ci),ri=Br().m(Ai),ii=Br().m(Si),li=Br().m(Mi);function si(){return Br().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,cr.takeEvery)(Hr.eY,gi);case 1:return e.n=2,(0,cr.takeEvery)(Hr.yf,fi);case 2:return e.n=3,(0,cr.takeEvery)(Hr.qc,pi);case 3:return e.n=4,(0,cr.takeEvery)(Hr.sF,mi);case 4:return e.n=5,(0,cr.takeEvery)(Hr.b2,yi);case 5:return e.n=6,(0,cr.takeEvery)(Hr.aK,vi);case 6:return e.n=7,(0,cr.takeEvery)(Hr.Sy,di);case 7:return e.n=8,(0,cr.takeEvery)(Hr.fx,hi);case 8:return e.n=9,(0,cr.takeEvery)(Hr.Sw,wi);case 9:return e.n=10,(0,cr.takeEvery)(Hr.SN,Ai);case 10:return e.n=11,(0,cr.takeEvery)(Hr.im,Ci);case 11:return e.n=12,(0,cr.takeEvery)(Hr.c6,bi);case 12:return e.n=13,(0,cr.takeEvery)(Hr.f5,Si);case 13:return e.n=14,(0,cr.takeEvery)(Hr.nm,Mi);case 14:return e.n=15,(0,cr.takeEvery)(Hr.QX,ui);case 15:return e.a(2)}},Gr)}var ci="SettingsPage";function ui(e){var t,n;return Br().w(function(o){for(;;)switch(o.p=o.n){case 0:return o.n=1,(0,cr.put)((0,ce.KQ)());case 1:return o.p=1,o.n=2,(0,cr.call)(zr,e.token);case 2:if(!(t=o.v)||!t.error){o.n=5;break}return o.n=3,(0,cr.put)({type:Hr.Or});case 3:return Fe.A.error(ci,"Error in rest call to send a email verification token: ",t.error),o.n=4,(0,cr.put)((0,ce.YD)());case 4:return o.a(2);case 5:return o.n=6,(0,cr.call)(pr.o);case 6:o.n=9;break;case 7:return o.p=7,n=o.v,o.n=8,(0,cr.put)({type:Hr.Or});case 8:Fe.A.error(ci,"Error in rest call to send a email verification token: ",n);case 9:return o.n=10,(0,cr.put)((0,ce.YD)());case 10:return o.a(2)}},Vr,null,[[1,7]])}function di(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,(0,cr.call)(Lr,e.personId);case 1:n.n=3;break;case 2:n.p=2,t=n.v,Fe.A.error(ci,"Error in rest call to send a email verification: ",t);case 3:return n.a(2)}},Wr,null,[[0,2]])}function fi(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.n=1,(0,cr.put)((0,ce.KQ)());case 1:return n.p=1,n.n=2,(0,cr.call)(Dr,e.personId);case 2:return n.n=3,(0,cr.call)(pr.o);case 3:n.n=5;break;case 4:n.p=4,t=n.v,Fe.A.error(ci,"Error in rest call to delete a person: ",t);case 5:return n.n=6,(0,cr.put)((0,ce.YD)());case 6:return n.a(2)}},Jr,null,[[1,4]])}function pi(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.n=1,(0,cr.put)((0,ce.KQ)());case 1:return n.p=1,n.n=2,(0,cr.call)(Tr,e.personData);case 2:return n.n=3,(0,cr.call)(pr.o);case 3:n.n=5;break;case 4:n.p=4,t=n.v,Fe.A.error(ci,"Error in rest call to add a person: ",t);case 5:return n.n=6,(0,cr.put)((0,ce.YD)());case 6:return n.a(2)}},Zr,null,[[1,4]])}function mi(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.n=1,(0,cr.put)((0,ce.KQ)());case 1:return n.p=1,n.n=2,(0,cr.call)(Er,e.personId,e.personData);case 2:return n.n=3,(0,cr.call)(pr.o);case 3:n.n=5;break;case 4:n.p=4,t=n.v,Fe.A.error(ci,"Error in rest call to update a person: ",t);case 5:return n.n=6,(0,cr.put)((0,ce.YD)());case 6:return n.a(2)}},Qr,null,[[1,4]])}function yi(e){var t,n,o;return Br().w(function(a){for(;;)switch(a.p=a.n){case 0:return a.n=1,(0,cr.put)((0,ce.KQ)());case 1:if(a.p=1,!e.photoData){a.n=4;break}return a.n=2,(0,cr.call)(Pr,e.photoData);case 2:return t=a.v,n={data:{photo:t}},a.n=3,(0,cr.call)(gi,n);case 3:a.n=5;break;case 4:return a.n=5,(0,cr.call)(pr.o);case 5:a.n=7;break;case 6:a.p=6,o=a.v,Fe.A.error(ci,"Error in rest call for photo upload data",o);case 7:return a.n=8,(0,cr.put)((0,ce.YD)());case 8:return a.a(2)}},qr,null,[[1,6]])}function gi(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.n=1,(0,cr.put)((0,ce.KQ)());case 1:return n.p=1,n.n=2,(0,cr.call)(xr,e);case 2:return n.n=3,(0,cr.call)(pr.o);case 3:n.n=5;break;case 4:n.p=4,t=n.v,Fe.A.error(ci,"Error in rest call for household data",t);case 5:return n.n=6,(0,cr.put)((0,ce.YD)());case 6:return n.a(2)}},Xr,null,[[1,4]])}function vi(e){var t,n;return Br().w(function(o){for(;;)switch(o.p=o.n){case 0:return o.n=1,(0,cr.put)((0,ce.KQ)());case 1:return o.p=1,t={data:{cobrand:e.cobrand}},o.n=2,(0,cr.call)(xr,t);case 2:o.n=4;break;case 3:o.p=3,n=o.v,Fe.A.error(ci,"Error in rest call for exiting cobrand",n);case 4:return o.n=5,(0,cr.put)((0,ce.O$)());case 5:return o.n=6,(0,cr.put)((0,ce.YD)());case 6:return o.n=7,(0,cr.put)((0,ce.ao)());case 7:return o.a(2)}},ei,null,[[1,3]])}function hi(){var e,t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,(0,cr.call)(ur.ZS);case 1:return e=n.v,n.n=2,(0,cr.put)({type:Hr.PO,personalInfo:e});case 2:n.n=4;break;case 3:n.p=3,t=n.v,Fe.A.error(ci,"Error in rest call for personal info",t);case 4:return n.a(2)}},ti,null,[[0,3]])}function bi(e){var t,n,o,a,r;return Br().w(function(i){for(;;)switch(i.p=i.n){case 0:return t=e.email,n=e.pass,i.p=1,i.n=2,(0,cr.call)(ur.Lx,t,n);case 2:if((o=i.v)&&!o.error){i.n=4;break}return i.n=3,(0,cr.put)({type:Hr.yn,loginError:"null data"});case 3:i.n=6;break;case 4:return i.n=5,(0,cr.call)(ur.lw);case 5:return a=i.v,i.n=6,(0,cr.put)({type:Hr.oc,deleteAccData:a});case 6:i.n=8;break;case 7:return i.p=7,r=i.v,i.n=8,(0,cr.put)({type:Hr.yn,loginError:r});case 8:return i.a(2)}},ni,null,[[1,7]])}function wi(){var e,t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,(0,cr.call)(_r);case 1:return e=n.v,n.n=2,(0,cr.put)({type:Hr.oz,subscribedCalendars:e});case 2:n.n=4;break;case 3:n.p=3,t=n.v,Fe.A.error(ci,"Error in rest call for getting subscribed calendars",t);case 4:return n.a(2)}},oi,null,[[0,3]])}function Ci(e){var t,n,o,a,r,i;return Br().w(function(l){for(;;)switch(l.p=l.n){case 0:return l.n=1,(0,cr.put)((0,ce.KQ)());case 1:return t=e.calendarURL,n=e.attendees,o=e.successMessage,l.p=2,l.n=3,(0,cr.call)(Nr,t);case 3:if(!(r=l.v)){l.n=5;break}return l.n=4,(0,cr.call)(jr,r.calendar_source_id,n);case 4:a=l.v;case 5:l.n=8;break;case 6:return l.p=6,i=l.v,l.n=7,(0,cr.put)((0,ce.I3)(!0));case 7:Fe.A.error(ci,"Error in rest call for loadCalendarByURL",i);case 8:return l.n=9,(0,cr.call)(fr.Tp);case 9:return l.n=10,(0,cr.put)((0,ce.YD)());case 10:if(!a){l.n=12;break}return l.n=11,(0,cr.put)((0,me.D_)(!0,o,ge));case 11:l.n=13;break;case 12:Fe.A.error(ci,"Error in rest call for subscribing to external 
2calendars with attendees (loadCalendarByURL)");case 13:return l.a(2)}},ai,null,[[2,6]])}function Ai(e){var t,n,o,a,r,i,l,s,c,u,d,f,p,m;return Br().w(function(y){for(;;)switch(y.p=y.n){case 0:return y.n=1,(0,cr.put)((0,ce.KQ)());case 1:t=e.subCalendars,n=e.unsubCalendars,o=e.updatedAttendees,a=e.successMessage,y.p=2,i=Kr(t),y.p=3,i.s();case 4:if((l=i.n()).done){y.n=7;break}return s=l.value,y.n=5,(0,cr.call)(jr,s,o);case 5:(r=y.v)||Fe.A.error(ci,"Error in rest call for subbing to calendars with calId",s);case 6:y.n=4;break;case 7:y.n=9;break;case 8:y.p=8,f=y.v,i.e(f);case 9:return y.p=9,i.f(),y.f(9);case 10:c=Kr(n),y.p=11,c.s();case 12:if((u=c.n()).done){y.n=15;break}return d=u.value,y.n=13,(0,cr.call)(Ur,d);case 13:r=y.v;case 14:y.n=12;break;case 15:y.n=17;break;case 16:y.p=16,p=y.v,c.e(p);case 17:return y.p=17,c.f(),y.f(17);case 18:y.n=20;break;case 19:y.p=19,m=y.v,Fe.A.error(ci,"Error in rest call for subbing or unsubbing to calendars",m);case 20:return y.n=21,(0,cr.call)(fr.Tp);case 21:return y.n=22,(0,cr.put)((0,ce.YD)());case 22:if(!r||!a){y.n=24;break}return y.n=23,(0,cr.put)((0,me.D_)(!0,a,ge));case 23:y.n=25;break;case 24:Fe.A.error(ci,"Error in rest call for subscribing to external calendars with attendees (calendarSubscriptionUpdater)");case 25:return y.a(2)}},ri,null,[[11,16,17,18],[3,8,9,10],[2,19]])}function Si(){var e,t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,(0,cr.call)(Fr);case 1:return e=n.v,n.n=2,(0,cr.put)({type:Hr.vx,shareableCalendarStatuses:e});case 2:n.n=4;break;case 3:n.p=3,t=n.v,Fe.A.error(ci,"Error in rest call for loading shared calendar statuses",t);case 4:return n.a(2)}},ii,null,[[0,3]])}function Mi(e){var t;return Br().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,(0,cr.call)(Rr,e.personId,e.shareCalendar);case 1:return n.n=2,(0,cr.put)((0,ce.Pk)());case 2:n.n=4;break;case 3:n.p=3,t=n.v,Fe.A.error(ci,"Error in rest call for toggling a shareable calendar",t);case 4:return n.a(2)}},li,null,[[0,3]])}var ki,Oi,Ii=U()(j.Ay.div.withConfig({displayName:"styles__SettingsWrapper",componentId:"sc-1s46n6b-0"})(["background-color:",";max-width:640px;margin:0 auto;margin-top:",";border-radius:8px;box-shadow:0 1px 3px 0 rgba(0,0,0,0.2),0 2px 1px -1px rgba(0,0,0,0.12),0 1px 1px 0 rgba(0,0,0,0.14);",""],function(e){return e.theme.palette.toolbox.background},window.ReactNativeWebView?"0px":"76px",function(e){return e.darkMode&&"\n    border: 3px solid ".concat(e.theme.palette.black.main,";\n  ")}));function xi(e,t,n,o){Oi||(Oi="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var a=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={children:void 0}),1===r)t.children=o;else if(r>1){for(var i=Array(r),l=0;l<r;l++)i[l]=arguments[l+3];t.children=i}if(t&&a)for(var s in a)void 0===t[s]&&(t[s]=a[s]);else t||(t=a||{});return{$$typeof:Oi,type:e,key:void 0===n?null:""+n,ref:null,props:t,_owner:null}}function Pi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Di(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Di(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ti,Ei,Li="settings";var zi=(0,d.A)({key:Li,saga:si}),_i=(0,f.A)({key:Li,reducer:sr.A});const ji=(0,c.Zz)((0,u.A)(),_i,zi,l.j4)(function(e){var t=e.account,n=e.intl,o=(0,de.Lh)();(0,A.gA)();var a=(0,i.useDispatch)(),c=Pi((0,r.useState)(0),2),u=c[0],d=c[1],f=(0,i.useSelector)(ue.ZL),m=(0,i.useSelector)(C.Qx),y=(0,i.useSelector)(ue.I$);(0,r.useEffect)(function(){if(y){g(t.householdData.accountId,!0)}},[y]);var g=(0,r.useCallback)(function(e,t){a((0,w.Pn)(e,t))},[a]),M=(0,r.useCallback)(function(){a((0,b.tq)(!1))},[a]);return window.CoziUser&&window.CoziUser.legacyInfo&&!Ti&&(Ei=window.CoziUser.legacyInfo,Ti=setInterval(function(){if(window.CoziUser&&window.CoziUser.legacyInfo){var e=!1;window.CoziUser.legacyInfo.deviceUser!==Ei.deviceUser&&(e=!0),window.CoziUser.legacyInfo.theme!==Ei.theme&&(e=!0),window.CoziUser.legacyInfo.agendaEmail
2s!==Ei.agendaEmails&&(e=!0),window.CoziUser.legacyInfo.titleBarColor===Ei.titleBarColor&&window.CoziUser.legacyInfo.headerColor===Ei.headerColor&&window.CoziUser.legacyInfo.accentColor===Ei.accentColor||(e=!0),window.CoziUser.legacyInfo.choosePhoto!==Ei.choosePhoto&&(e=!0),window.CoziUser.legacyInfo.reload&&(window.CoziUser.legacyInfo.reload=!1,g(t.householdData.accountId,!0)),e&&(Ei=window.CoziUser.legacyInfo,d(u+1))}},1e3)),M(),xi(Ii,{darkMode:o},void 0,window.ReactNativeWebView?null:xi(p.A,{fullerWidthGrid:!0,pageName:r.createElement(l.sA,Ba.settings)},void 0,ki||(ki=xi(v,{}))),window.ReactNativeWebView?null:xi(s.mg,{},void 0,xi("title",{},void 0,n.formatMessage(Ba.a11y.settings_title))),xi(lr,{handleRefresh:g,update:u}),xi(S.vp,{statusActive:f||m,activeMessage:n.formatMessage(Ba.a11y.loadingSettings),completeMessage:n.formatMessage(Ba.a11y.settingsLoaded)}),xi(h.A,{open:f||m}))})},MEu6(e){e.exports="data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cdefs%3e %3cpath d='M30.594 16.692c2.218 0 5-1.546 6.656-3.607 1.5-1.868 2.594-4.477 2.594-7.086 0-.355-.032-.71-.094-.999-2.469.097-5.438 1.707-7.219 3.865-1.406 1.643-2.687 4.22-2.687 6.861 0 .387.062.773.093.902.157.032.407.064.657.064zM22.78 55.667c3.032 0 4.375-2.094 8.157-2.094 3.843 0 4.687 2.03 8.062 2.03 3.313 0 5.531-3.157 7.625-6.25 2.344-3.543 3.313-7.021 3.375-7.182-.219-.065-6.563-2.738-6.563-10.243 0-6.507 5-9.438 5.282-9.663-3.313-4.896-8.344-5.025-9.719-5.025-3.719 0-6.75 2.319-8.656 2.319-2.063 0-4.782-2.19-8-2.19C16.219 17.369 10 22.587 10 32.443c0 6.12 2.313 12.594 5.156 16.782 2.438 3.543 4.563 6.442 7.625 6.442z' id='a'/%3e %3c/defs%3e %3cg fill='none' fill-rule='evenodd'%3e %3cpath d='M0 0h60v60H0z'/%3e %3cmask id='b' fill='%23fff'%3e %3cuse xlink:href='%23a'/%3e %3c/mask%3e %3cg mask='url(%23b)' fill='%23000' fill-opacity='.65'%3e %3cpath d='M0 0h60v60H0z'/%3e %3c/g%3e %3c/g%3e %3c/svg%3e"},AdYY(e){e.exports="data:image/svg+xml,%3csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cdefs%3e %3cpath d='M30.594 16.692c2.218 0 5-1.546 6.656-3.607 1.5-1.868 2.594-4.477 2.594-7.086 0-.355-.032-.71-.094-.999-2.469.097-5.438 1.707-7.219 3.865-1.406 1.643-2.687 4.22-2.687 6.861 0 .387.062.773.093.902.157.032.407.064.657.064zM22.78 55.667c3.032 0 4.375-2.094 8.157-2.094 3.843 0 4.687 2.03 8.062 2.03 3.313 0 5.531-3.157 7.625-6.25 2.344-3.543 3.313-7.021 3.375-7.182-.219-.065-6.563-2.738-6.563-10.243 0-6.507 5-9.438 5.282-9.663-3.313-4.896-8.344-5.025-9.719-5.025-3.719 0-6.75 2.319-8.656 2.319-2.063 0-4.782-2.19-8-2.19C16.219 17.369 10 22.587 10 32.443c0 6.12 2.313 12.594 5.156 16.782 2.438 3.543 4.563 6.442 7.625 6.442z' id='a'/%3e %3c/defs%3e %3cg fill='none' fill-rule='evenodd'%3e %3cpath d='M0 0h60v60H0z'/%3e %3cmask id='b' fill='%23fff'%3e %3cuse xlink:href='%23a'/%3e %3c/mask%3e %3cg mask='url(%23b)' fill='%23FFF' fill-opacity='1'%3e %3cpath d='M0 0h60v60H0z'/%3e %3c/g%3e %3c/g%3e %3c/svg%3e"},"+bVT"(e){e.exports="data:image/svg+xml,%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 122.88 122.88' style='enable-background:new 0 0 122.88 122.88' xml:space='preserve'%3e%3cstyle type='text/css'%3e%3c!%5bCDATA%5b .st0%7bfill:%23188038;%7d .st1%7bfill:%231967D2;%7d .st2%7bfill:%231A73E8;%7d .st3%7bfill:%23F72A25;%7d .st4%7bfill:%23FBBC04;%7d .st5%7bfill:%23FFFFFF;%7d .st6%7bfill:%2334A853;%7d .st7%7bfill:%234285F4;%7d %5d%5d%3e%3c/style%3e%3cg%3e%3cpolygon class='st5' points='93.78,29.1 29.1,29.1 29.1,93.78 93.78,93.78 93.78,29.1'/%3e%3cpolygon class='st3' points='93.78,122.88 122.88,93.78 93.78,93.78 93.78,122.88'/%3e%3cpolygon class='st4' points='122.88,29.1 93.78,29.1 93.78,93.78 122.88,93.78 122.88,29.1'/%3e%3cpolygon class='st6' points='93.78,93.78 29.1,93.78 29.1,122.88 93.78,122.88 93.78,93.78'/%3e%3cpath class='st0' d='M0,93.78v19.4c0,5.36,4.34,9.7,9.7,9.7h19.4v-29.1H0L0,93.78z'/%3e%3cpath class='st1' d='M122.88,29.1V9.7c0-5.36-4.34-9.7-9.7-9.7h-19.4v29.1H122.88L122.88,29.1z'/%3e%3cpath class='st7' d='M93.78,0H9.7C4.34,0,0,4.34,0,9.7v84.08h29.1V29.1h64.67V0L93.78,0z'/%3e%3cpath class='st2' d='M42.37,79.27c-2.42-1.63-4.09-4.02-5-7.17l5.61-2.31c0.51,1.94,1.4,3.44,2.67,4.51 c1.26,1.07,2.8,1.59,4.59,1.59c1.84,0,3.41-0.56,4.73-1.67c1.32-1.12,1.98-2.54,1.98-4.26c0-1.76-0.7-3.2-2.09-4.32 c-1.39-1.12-3.14-1.67-5.22-1.67H46.4v-5.55h2.91c1.79,0,3.31-0.48,4.54-1.46c1.23-0.97,1.84-2.3,1.84-3.99 c0-1.5-0.55-2.7-1.65-3.6s-2.49-1.35-4.18-1.35c-1.65,0-2.96,0.44-3.93,1.32c-0.97,0.88-1.7,2-2.12,3.24l-5.55-2.31 c0.74-2.09,2.09-3.93,4.07-5.52c1.98-1.59,4.51-2.39,7.58-2.39c2.27,0,4.32,0.44,6.13,1.32c1.81,0.88,3.23,2.1,4.26,3.65 c1.03,1.56,
21.54,3.31,1.54,5.25c0,1.98-0.48,3.65-1.43,5.03c-0.95,1.37-2.13,2.43-3.52,3.16v0.33c1.79,0.74,3.36,1.96,4.51,3.52 c1.17,1.58,1.76,3.46,1.76,5.66c0,2.2-0.56,4.16-1.67,5.88c-1.12,1.72-2.66,3.08-4.62,4.07c-1.96,0.99-4.17,1.49-6.62,1.49 C47.41,81.72,44.79,80.91,42.37,79.27L42.37,79.27L42.37,79.27z M76.83,51.43l-6.16,4.45l-3.08-4.67l11.05-7.97h4.24v37.6h-6.05 V51.43L76.83,51.43z'/%3e%3c/g%3e%3c/svg%3e"}}]);

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.