1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cae2fb81-13e8-4779-8dc0-36a7c933d9ff",e._sentryDebugIdIdentifier="sentry-dbid-cae2fb81-13e8-4779-8dc0-36a7c933d9ff")}catch(e){}}(),(self["webpackChunkorq_web"]=self["webpackChunkorq_web"]||[]).push([[556,4155,4471,6812],{44471:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("a",{staticClass:"mcr-glossary-link mcr-static-glossary-link",class:{"help-text":e.isHelpText},on:{click:function(t){return t.stopPropagation(),e.click.apply(null,arguments)}}},[e._v(" "+e._s(e.label)+" "),e.isHelpText?t("help-icon",{attrs:{size:18}}):e._e()],1)},i=[];const r=()=>Promise.resolve().then(a.bind(a,44828));var n={props:{label:String,title:String,glossaryContent:String,isHelpText:{type:Boolean,default:!1}},methods:{click(e){e.preventDefault(),this.$store.commit("setGlossaryWikiDataState",{title:this.title,content:this.glossaryContent}),this.$store.commit("setGlossaryWikiNaturalIdState",null)}},components:{HelpIcon:r}},o=n,l=a(81656),c=(0,l.A)(o,s,i,!1,null,"50b008d6",null),d=c.exports},44155:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var s=function(){var e=this,t=e._self._c;return t("button",{staticClass:"mcr-glossary-link mcr-wiki-glossary-link",class:{"help-text":e.isHelpText},attrs:{type:"button"},on:{click:function(t){return t.stopPropagation(),e.click.apply(null,arguments)}}},[e._t("default",function(){return[e._v(e._s(e.text))]}),e.isHelpText?t("help-icon",{attrs:{size:18}}
1):e._e()],2)},i=[],r=a(57940),n=a(98800);const o=()=>Promise.resolve().then(a.bind(a,44828));var l={props:{text:String,naturalId:String,isHelpText:{type:Boolean,default:!1}},methods:{click(e){this.$store.commit("setGlossaryWikiNaturalIdState",this.naturalId),r.A.trackClickWikiPopupEvent((0,n.getRoutePageName)(this.$route),(0,n.getRoutePageIdentifier)(this.$route),this.naturalId),this.$emit("click")}},components:{HelpIcon:o},name:"mcrWikiGlossaryLink"},c=l,d=a(81656),u=(0,d.A)(c,s,i,!1,null,"11eb41f6",null),m=u.exports},95691:function(e,t,a){a.d(t,{A:function(){return h}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mcr-multiselect"},[t("multiselect",e._g(e._b({ref:"multiselect",class:["bordered",e.classes],style:e.$attrs.style,attrs:{value:e.value,name:e.name,autocomplete:"off"},on:{open:e.onOpen,close:e.onClose},scopedSlots:e._u([e.$scopedSlots.caret||e.$slots.caret?{key:"caret",fn:function(t){return[e._t("caret",null,null,t)]}}:null,e.$slots.beforeList?{key:"beforeList",fn:function(){return[e._t("beforeList")]},proxy:!0}:null,e.$slots.afterList?{key:"afterList",fn:function(){return[e._t("afterList")]},proxy:!0}:null,e.$slots.noResult?{key:"noResult",fn:function(){return[e._t("noResult")]},proxy:!0}:null,e.$slots.noOptions?{key:"noOptions",fn:function(){return[e._t("noOptions")]},proxy:!0}:null,e.$scopedSlots.option?{key:"option",fn:function(t){return[e._t("option",null,null,t)]}}:null,e.$scopedSlots.singleLabel?{key:"singleLabel",fn:function(t){return[e._t("singleLabel",null,null,t)]}}:null,e.$scopedSlots.selection?{key:"selection",fn:function(t){return[e._t("selection",null,null,t)]}}:null,e.$scopedSlots.tag?{key:"tag",fn:function(t){return[e._t("tag",null,null,t)]}}:null,e.$slots.limit?{key:"limit",fn:function(){return[e._t("limit")]},proxy:!0}:null,e.$slots.placeholder?{key:"placeholder",fn:function(){return[e._t("placeholder")]},proxy:!0}:null],null,!0)},"multiselect",e.$attrs,!1),e.forwardedListeners)),e.$slots.clear?e._t("clear"):e.clearable&&e.isClearVisible?t("button",{staticClass:"clear-button",attrs:{type:"button","aria-label":e.clearAriaLabel},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.clearValue.apply(null,arguments)}}},[t("close-icon")],1):e._e(),e.$slots.leftIcon?t("div",{staticClass:"left-icon",attrs:{"aria-hidden":"true"}},[e._t("leftIcon")],2):e._e()],2)},i=[],r=a(89191),n=a(75262),o=a.n(n);const l=function(e){return e&&"function"===typeof e.setAttribute};var c={inheritAttrs:!1,props:{value:null,name:null,classes:{type:[String,Array,Object],default:""},clearable:{type:Boolean,default:!1},clearAriaLabel:{type:String,default:"Clear selection"},isClearVisible:{type:Boolean,default:!1}},mounted(){this.syncComboboxAria()},updated(){this.syncComboboxAria()},computed:{forwardedListeners(){const{open:e,close:t,clear:a,...s}=this.$listeners;return s},isOpen(){return Boolean(this.$refs.multiselect&&this.$refs.multiselect.isOpen)},listboxId(){return`listbox-${this.$attrs.id||"mcr-multiselect"}`}},methods:{updateSearch(e){return this.$refs.multiselect.updateSearch(e)},getSearchValue(){return this.$refs.multiselect?this.$refs.multiselect.search:""},selectSearch(){this.$refs.multiselect&&this.$refs.multiselect.$refs.search&&this.$refs.multiselect.$refs.search.select()},getPointer(){return this.$refs.multiselect?this.$refs.multiselect.pointer:0},getFilteredOptions(){return this.$refs.multiselect?this.$refs.multiselect.filteredOptions:[]},activate(){return this.$refs.multiselect.activate()},deactivate(){return this.$refs.multiselect.deactivate()},syncComboboxAria(){if(!this.$refs.multiselect||!this.$refs.multiselect.$el)return;const e=this.$refs.multiselect.$el;if(!l(e))return;e.setAttribute("aria-expanded",String(this.isOpen)),e.setAttribute("aria-haspopup","listbox"),e.setAttribute("aria-controls",this.listboxId);const t=this.$refs.multiselect.$refs.search;l(t)&&t.setAttribute("aria-autocomplete","list")},onOpen(e){this.syncComboboxAria(),this.$emit("open",e)},onClose(e){this.syncComboboxAria(),this.$emit("close",e)},clearValue(){this.$emit("clear")}},name:"McrMultiselect",components:{CloseIcon:r.A,Multiselect:o()}},d=c,u=a(81656),m=(0,u.A)(d,s,i,!1,null,"f28ee8b2",null),h=m.exports},65099:function(e,t,a){a.d(t,{A:function(){return c}});var s=function(){var e=this,t=e._self._c;return t("label",{staticClass:"switch-toggle"},[t("input",{staticClass:"switch-toggle__input",attrs:{"aria-label":e.label,type:"checkbox"},domProps:{checked:e.value},on:{change:e.toggleCheckbox}}),t("span",{staticClass:"slider round",attrs:{"aria-hidden":"true"}}),t("span",{staticClass:"sr-only"},[e._v(e._s(e.label))])])},i=[],r={props:{value:Boolean,label:{type:String,default:"Toggle switch"}},methods:{toggleCheckbox(e){this.$emit("toggle",e.target.checked)}},name:"SwitchToggle"},n=r,o=a(81656),l=(0,o.A)(n,s,i,!1,null,"377f3d1e",null),c=l.exports},4857:function(e,t,a){a.d(t,{A:function(){return u}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"breadcrumbs-view"},e._l(e.steps,function(a,s){return t("span",{staticClass:"step"}
1,[a.route?t("router-link",{staticClass:"link-underlined",attrs:{to:a.route}},[e._v(e._s(a.label))]):t("span",[e._v(e._s(a.label))]),s!==e.steps.length-1?t(e.separatorComponent,{tag:"component",attrs:{size:16}}):e._e()],1)}),0)},i=[],r=a(26861),n=a(32822),o={props:{steps:Array,separator:{type:String,default:"arrow"}},computed:{separatorComponent(){const e={arrow:r.A,slash:n.A};return e[this.separator]||r.A}},components:{ChevronRight:r.A,SlashIcon:n.A}},l=o,c=a(81656),d=(0,c.A)(l,s,i,!1,null,"60f825de",null),u=d.exports},13715:function(e,t,a){a.d(t,{A:function(){return c}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"stand-out-block"},[e.tag?t("div",{staticClass:"tag"},[e._v(e._s(e.tag))]):e._e(),e._t("default")],2)},i=[],r={props:{tag:{type:String,required:!1}}},n=r,o=a(81656),l=(0,o.A)(n,s,i,!1,null,"1bdc2e4f",null),c=l.exports},18169:function(e,t,a){a.d(t,{A:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"delete-confirm-modal-content alert-modal-content"},[e._t("default"),t("div",{staticClass:"buttons"},[t("mcr-button",{staticClass:"white",attrs:{disabled:e.loading},on:{click:e.cancelClick}
1},[e._v("Cancel")]),t("mcr-button",{staticClass:"proceed",attrs:{loading:e.loading},on:{click:e.okClick}},[e._v("Proceed")])],1)],2)},i=[],r=a(77984),n={components:{McrButton:r.A},props:{loading:Boolean,modalName:{type:String,required:!1}},created(){document.addEventListener("keydown",this.onKeyDown)},destroyed(){document.removeEventListener("keydown",this.onKeyDown)},methods:{cancelClick(){this.modalName&&this.$modal.hide(this.modalName),this.$emit("close")},okClick(){this.$emit("confirm")},onKeyDown(e){if(13===e.which)return this.okClick()}}},o=n,l=a(81656),c=(0,l.A)(o,s,i,!1,null,"c456e3b0",null),d=c.exports},53967:function(e,t,a){a.d(t,{A:function(){return p}});var s=function(){var e=this,t=e._self._c;return t("mcr-multiselect",{ref:e.peopleRef,staticClass:"people-multiselect",attrs:{placeholder:e.placeholder,clearable:!0,"clear-aria-label":e.multiple?"Clear selected people":"Clear selected person","is-clear-visible":Boolean(e.allowClear&&e.hasValue&&!e.isMultiselectOpened(e.peopleRef)&&!e.familyTreePersonsSearchListLoadingState),value:e.value,options:e.familyTreePersonsSearchListState,internalSearch:!1,clearOnSelect:!0,"show-no-options":!0,"show-no-results":!0,"hide-selected":e.multiple,multiple:e.multiple,taggable:!1,loading:e.isMultiselectOpened(e.peopleRef)&&e.familyTreePersonsSearchListLoadingState,disabled:e.disabled,showLabels:!1,label:"full_name",trackBy:"object_id",openDirection:"bottom"},on:{select:e.peopleSelect,"search-change":e.peopleSearch,close:e.emptyPeopleSearch,remove:e.peopleRemove,clear:e.clearPeople},scopedSlots:e._u([{key:"caret",fn:function(a){return[e.showIcon&&!e.familyTreePersonsSearchListLoadingState?t("div",{staticClass:"caret-icon",on:{mousedown:function(e){return e.preventDefault(),e.stopPropagation(),a.toggle()}}},[t("account-icon")],1):e._e()]}},{key:"option",fn:function(a){return[t("span",{staticClass:"option-label"},[t("span",{staticClass:"person-name"},[e._v(e._s(a.option.full_name)+" ")]),e.showTreeName&&a.option.family_tree?t("span",{staticClass:"family-tree-name"},[e._v("("+e._s(a.option.family_tree.name)+")")]):e._e(),e.showPersonId?t("span",{staticClass:"family-tree-name"},[e._v("#"+e._s(a.option.object_id))]):e._e()])]}},{key:"singleLabel",fn:function(a){return[t("span",{staticClass:"option-label"},[t("span",{staticClass:"person-name"},[e._v(e._s(a.option.full_name)+" ")]),e.showTreeName&&a.option.family_tree?t("span",{staticClass:"family-tree-name"},[e._v("("+e._s(a.option.family_tree.name)+")")]):e._e(),e.showPersonId?t("span",{staticClass:"family-tree-name"},[e._v("#"+e._s(a.option.object_id))]):e._e()])]}}])},[t("span",{attrs:{slot:"noOptions"},slot:"noOptions"},[e._v("Start typing to search...")]),t("span",{attrs:{slot:"noResult"},slot:"noResult"},[e._v("No person found.")]),e.isMultiselectOpened(e.peopleRef)&&e.familyTreePersonsSearchListLoadingState?t("div",{staticClass:"loading-after-list",attrs:{slot:"afterList"},slot:"afterList"},[t("span",[e._v("Searching...")])]):e._e()])},i=[],r=a(95691),n=a(38221),o=a.n(n),l=a(75839),c=a(95353),d={data(){return{peopleRef:"people-select"}},props:{value:[Array,Object],familyTreeId:{type:[String,Number],required:!1},multiple:{type:Boolean,default:!0},allowClear:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:"Search persons in family tree"},showIcon:{type:Boolean,default:!0}},computed:{...(0,c.L8)(["familyTreePersonsSearchListState","familyTreePersonsSearchListMetaState","familyTreePersonsSearchListLoadingState"]),showTreeName(){const e=this.familyTreePersonsSearchListMetaState.family_trees_count;return!this.familyTreeId&&e&&e>1},showPersonId(){return!0},hasValue(){return Array.isArray(this.value)?this.value.length>0:!!this.value}},methods:{isMultiselectOpened(e){return this.$refs[e]&&this.$refs[e].isOpen},peopleSelect(e){this.$emit("select",e)},peopleRemove(e){this.$emit("remove",e)},clearPeople(e){this.$emit("clear",e)},peopleSearch(e){this.emptyPeopleSearch(),e&&this.$store.commit("setFamilyTreePersonsSearchListLoadingState",!0),this.fetchPeopleSearch(e)},fetchPeopleSearch:o()(function(e){e?this.$store.dispatch("searchPersonsInFamilyTreeAction",{familyTreeId:this.familyTreeId,q:e,contextTreeId:this.$route.params.treeId}).catch(()=>{}):(this.emptyPeopleSearch(),this.$store.commit("setFamilyTreePersonsSearchListLo
1adingState",!1))},500),emptyPeopleSearch(){this.$store.commit("setFamilyTreePersonsSearchListState",[])},autofocus(){this.$refs[this.peopleRef].activate()}},components:{McrMultiselect:r.A,AccountIcon:l.A}},u=d,m=a(81656),h=(0,m.A)(u,s,i,!1,null,"70e39eb8",null),p=h.exports},21210:function(e,t,a){a.r(t),a.d(t,{default:function(){return C}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"manage-all-trees-page"},[e.familyTreeListLoadingState?t("div",{staticClass:"limited_content"},[t("mcr-loading-indicator",{attrs:{loading:!0}})],1):t("div",{staticClass:"limited_content"},[t("div",{staticClass:"heading-content"},[e._m(0),t("div",{staticClass:"header-actions"},[t("mcr-button-router-link",{staticClass:"create-tree-action",attrs:{to:e.createTreeRoute}},[t("plus-icon",{attrs:{size:20,title:""}}),t("span",[e._v("Create New Tree")])],1),t("mcr-button-router-link",{staticClass:"white import-tree-action",attrs:{to:e.importGedcomRoute}},[t("import-icon",{attrs:{size:20,title:""}}),t("span",[e._v("Import GEDCOM File")])],1)],1)]),t("section",{staticClass:"tree-section",attrs:{"aria-labelledby":"owned-trees-heading"}},[t("h2",{staticClass:"heading-6",attrs:{id:"owned-trees-heading"}},[e._v("Your Trees")]),t("stand-out-block",{staticClass:"tree-list light"},e._l(e.ownedTrees,function(a){return t("div",{key:a.object_id,staticClass:"tree-row"},[t("div",{staticClass:"tree-data text-md"},[t("router-link",{staticClass:"tree-name bold",attrs:{to:e.getManageTreeRoute(a)}},[e._v(e._s(a.name))])],1),t("div",{staticClass:"tree-meta text-sm"},[e.isDefaultTree(a.object_id)?t("span",{staticClass:"meta-item tree-status"},[t("home-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),t("span",[e._v("Default Tree")])],1):e._e(),t("span",{staticClass:"meta-item persons-info"},[t("profile-icon",{attrs:{size:18,title:""}}),e._v(" "+e._s(a.persons_count)+" "+e._s(a.persons_count>1?"Persons":"Person")+" ")],1),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.getAddDateTooltip(a),expression:"getAddDateTooltip(item)"}],staticClass:"meta-item added-date supplemental"},[t("added-icon",{attrs:{size:20,title:""}}),e._v(" "+e._s(e.getAddedDate(a))+" ")],1)])])}),0)],1),e.sharedTrees.length?t("section",{staticClass:"tree-section",attrs:{"aria-labelledby":"shared-trees-heading"}},[t("h2",{staticClass:"heading-6",attrs:{id:"shared-trees-heading"}},[e._v("Shared with you")]),t("stand-out-block",{staticClass:"tree-list light"},e._l(e.sharedTrees,function(a){return t("div",{key:a.object_id,staticClass:"tree-row"},[t("div",{staticClass:"tree-datat ext-md"},[t("router-link",{staticClass:"tree-name bold",attrs:{to:e.getManageTreeRoute(a)}},[e._v(e._s(a.name))])],1),t("div",{staticClass:"tree-meta text-sm"},[a.is_editor?t("span",{staticClass:"meta-item tree-status"},[t("editor-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),t("span",[e._v("Editor Access")])],1):t("span",{staticClass:"meta-item tree-status"},[t("viewer-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),t("span",[e._v("Viewer Access")])],1),t("span",{staticClass:"meta-item persons-info"},[t("profile-icon",{attrs:{size:18,title:""}}),e._v(" "+e._s(a.persons_count)+" "+e._s(a.persons_count>1?"Persons":"Person")+" ")],1),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.getAddDateTooltip(a),expression:"getAddDateTooltip(item)"}],staticClass:"meta-item added-date supplemental"},[t("added-icon",{attrs:{size:20,title:""}}),e._v(" "+e._s(e.getAddedDate(a))+" ")],1)])])}),0)],1):e._e(),e._m(1)])])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"heading-text"},[t("h1",{staticClass:"heading-4"},[e._v("Manage Trees")]),t("p",{staticClass:"supplemental text-md"},[e._v(" Create a private family tree, import a GEDCOM file, or manage trees shared with you. ")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"disclaimer text-sm supplemental"},[t("p",[e._v(" If you have an existing family tree made with another genealogy platform, you can import it here. Check your family tree building platform for an export function to get a GEDCOM file. ")]),t("p",[e._v(" Any tree you create on My China Roots and the data within will be private and not accessible to others, unless you choose to share it. ")
1])])}],r=(a(18111),a(22489),a(12273)),n=a(13715),o=a(95093),l=a.n(o),c=a(75839),d=a(32366),u=a(21193),m=a(89339),h=a(87575),p=a(27312),f=a(90153),g=a(95353),v={metaInfo:{title:"Manage Trees"},created(){this.$store.dispatch("fetchFamilyTreeListAction",{fields:"object_id,name,persons_count,created_at,is_owner,is_editor"})},computed:{...(0,g.L8)(["familyTreeListState","familyTreeListLoadingState"]),meta(){return{total_count:this.familyTreeListState.length,offset:0,limit:this.familyTreeListState.length}},createTreeRoute(){return{name:"familytree-create"}},importGedcomRoute(){return{name:"familytree-import-gedcom"}},ownedTrees(){return this.familyTreeListState.filter(e=>e.is_owner)},sharedTrees(){return this.familyTreeListState.filter(e=>!e.is_owner)}},methods:{getManageTreeRoute(e){return{name:"familytree-manage",params:{id:e.object_id}}},getAddedDate(e){return l()(e.created_at).format("MMM DD, YYYY")},isDefaultTree(e){return e===this.$store.getters.userFamilyTreeIdState},getAddDateTooltip(e){const t=l()(e.created_at).format("hh:mm MMM DD, YYYY");return{content:`Created at ${t}`,placement:"top"}}},name:"ManageAllTreesPage",components:{McrButtonRouterLink:r.A,StandOutBlock:n.A,PlusIcon:f.A,ImportIcon:h.A,AddedIcon:d.A,HomeIcon:m.A,ProfileIcon:c.A,ViewerIcon:u.A,EditorIcon:p.A}},y=v,_=a(81656),b=(0,_.A)(y,s,i,!1,null,"64c58fae",null),C=b.exports},88239:function(e,t,a){a.r(t),a.d(t,{default:function(){return b}});var s=function(){var e=this,t=e._self._c;return e.familyTreeDetailsLoadingState?t("div",{staticClass:"manage-tree-page"},[t("div",{staticClass:"readable_content"},[t("mcr-loading-indicator",{attrs:{loading:!0}})],1)]):e.loadingError?t("div",{staticClass:"manage-tree-page"},[t("page-not-found")],1):t("div",{staticClass:"manage-tree-page"},[t("div",{staticClass:"limited_content heading-content"},[t("breadcrumbs-view",{attrs:{steps:e.breadcrumbs,separator:"slash"}}),t("div",{staticClass:"tree-meta"},[t("h4",{staticClass:"main-heading"},[e._v(e._s(e.familyTreeDetailsState.name))]),t("div",{staticClass:"meta-details"},[t("div",{staticClass:"meta-item text-sm"},[t("profile-icon",{attrs:{size:18,title:""}}),e._v(" "+e._s(e.familyTreeDetailsState.persons_count)+" "+e._s(e.familyTreeDetailsState.persons_count>1?"Persons":"Person")+" ")],1),t("div",{staticClass:"meta-item text-sm"},[t("assets-icon",{attrs:{size:20,title:""}}),e._v(" "+e._s(e.familyTreeDetailsState.assets_count)+" Photos & Files ")],1),e.isDefaultTree?t("div",{staticClass:"meta-item text-sm"},[t("home-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),e._v(" Default Tree ")],1):e._e(),e.isEditor?t("div",{staticClass:"meta-item text-sm"},[t("editor-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),e._v(" Editor Access ")],1):e._e(),e.isViewer?t("div",{staticClass:"meta-item text-sm"},[t("viewer-icon",{staticClass:"home-icon",attrs:{size:20,title:""}}),e._v(" Viewer Access ")],1):e._e(),t("mcr-button-router-link",{staticClass:"white small view-tree",attrs:{to:e.ftRoute}},[t("tree-icon",{attrs:{size:20}}),e._v("View Tree")],1)],1)])],1),e.isTreeMenuRoute?e._e():t("div",{staticClass:"heading-content-mobile"},[t("router-link",{staticClass:"breadcrumb-link",attrs:{to:e.manageTreeMenuRoute}},[e._v("â¹ Back")]),t("mcr-button-router-link",{staticClass:"white small view-tree",attrs:{to:e.ftRoute}},[t("tree-icon",{attrs:{size:20}}),e._v("View Tree")],1)],1),e.familyTreeDetailsState.object_id?t("div",{staticClass:"limited_content mobile_full_width main-content"},[t("settings-navigation"),t("router-view",{staticClass:"setting-content"})],1):e._e()])},i=[],r=a(12273),n=a(4857),o=a(75839),l=a(21193),c=a(89339),d=a(79383),u=a(27312),m=a(44914),h=a(95353),p=a(31470),f=a(46812),g={metaInfo(){const e=this.familyTreeDetailsState.name;return{title:e?`Manage Tree - ${e}`:"Manage Tree"}},created(){this.$store.dispatch("fetchFamilyTreeDetailsAction",this.treeId).then(e=>
1{this.newName=e.name,this.selectedHomePerson={object_id:e.home_person.id,full_name:e.home_person.full_name||"Unknown name"},this.$store.dispatch("fetchFamilytreeContentSharesAction",{id:e.object_id})}).catch(()=>{this.loadingError=!0})},data(){return{loadingError:!1,newName:"",saveNameLoading:!1,selectedHomePerson:{},saveHomePersonLoading:!1}},computed:{...(0,h.L8)(["familyTreeDetailsState","familyTreeDetailsLoadingState","previousRouteState"]),breadcrumbs(){return[{route:this.manageTreesRoute,label:"Manage All Trees"},{route:{name:"familytree-create"},label:"+ Create New Tree"},{route:this.ftRoute,label:"View Tree"}]},ftRoute(){return{name:"familytree-details",params:{id:this.familyTreeDetailsState.object_id}}},manageTreesRoute(){return{name:"familytree-manage-all"}},manageTreeMenuRoute(){return{name:"familytree-manage",params:{id:this.familyTreeDetailsState.object_id}}},isTreeMenuRoute(){return"familytree-manage"===this.$route.name},treeId(){return this.$route.params.id},isDefaultTree(){return this.familyTreeDetailsState.object_id===this.$store.getters.userFamilyTreeIdState},isEditor(){return!this.familyTreeDetailsState.is_owner&&this.familyTreeDetailsState.is_editor},isViewer(){return!this.familyTreeDetailsState.is_owner&&!this.familyTreeDetailsState.is_editor}},name:"ManageTreePage",components:{BreadcrumbsView:n.A,McrButtonRouterLink:r.A,PageNotFound:f["default"],ProfileIcon:o.A,HomeIcon:c.A,AssetsIcon:d.A,TreeIcon:m.A,SettingsNavigation:p.A,EditorIcon:u.A,ViewerIcon:l.A}},v=g,y=a(81656),_=(0,y.A)(v,s,i,!1,null,"6c674339",null),b=_.exports},46617:function(e,t,a){a.r(t),a.d(t,{default:function(){return w}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"manage-tree-customize-page"},[t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6 no-margin"},[e._v("Tree Viewing Options")]),t("div",{staticClass:"text-sm"},[e._v("Affects your view of all family trees on My China Roots")]),t("hr"),t("div",{staticClass:"inline-item"},[t("div",[e._v("Color person cards by gender")]),t("switch-toggle",{attrs:{value:e.colorCodeGender},on:{toggle:e.saveColorCodeGender}})],1),t("hr"),t("div",{staticClass:"inline-item"},[t("div",[t("mcr-wiki-glossary-link",{attrs:{"is-help-text":!0,naturalId:"sibling-order",text:"Show sibling hierarchy by birthdate"}})],1),t("switch-toggle",{attrs:{value:e.showBirthOrder},on:{toggle:e.saveShowBirthOrder}})],1),t("hr"),t("div",{staticClass:"inline-item"},[t("div",[t("mcr-static-glossary-link",{attrs:{"is-help-text":!0,label:"Show AI exploration buttons",title:"Show AI exploration buttons","glossary-content":e.aiButtonsGlossaryContent}})],1),t("switch-toggle",{attrs:{value:e.showAiButtons},on:{toggle:e.saveShowAiButtons}})],1)]),e.familyTreeDetailsState.object_id?t("autoset-profile-pictures-block",{attrs:{"tree-id":e.familyTreeDetailsState.object_id,"allow-action":e.familyTreeDetailsState.is_owner}}):e._e()],1)},i=[],r=a(44471),n=a(44155),o=a(65099),l=a(13715),c=a(95353),d=function(){var e=this,t=e._self._c;return t("stand-out-block",{staticClass:"autoset-profile-pictures-block settings-item light"},[t("h6",{staticClass:"heading-6 no-margin"},[e._v("Autoset profile pictures")]),t("div",{staticClass:"text-sm"},[e._v(" Use images assigned to people in this tree to assign profile pictures. If image highlights exist, they will be preferred. ")]),t("mcr-button",{staticClass:"small confirm-button",attrs:{disabled:e.buttonDisabled,loading:e.postLoading},on:{click:e.autosetProfilePictures}},[e._v(" Autoset profile pictures ")]),e.displayStatus?t("dl",{staticClass:"status-summary",class:e.statusSummaryClass},[e._l(e.statusItems,function(a){return[t("dt",{key:`${a.key}-label`},[e._v(e._s(a.label))]),t("dd",{key:`${a.key}-value`},[e._v(e._s(a.value))])]})],2):e._e()],1)},u=[],m=(a(74423),a(18111),a(61701),a(77984)),h=a(24127);const p=["queued","running"],f=[{key:"status",label:"Status"},{key:"total",label:"Total"},{key:"processed",label:"Processed"},{key:"created",label:"Created"},{key:"skipped",label:"Skipped"},{key:"failed",label:"Failed"},{key:"error",label:"Error"}];var g={props:{treeId:{type:[Number,String],required:!0},allowAction:Boolean},data(){return{statusResponse:null,statusLoading:!1,postLoading:!1,statusPollInterval:null}},created(){this.fetchStatus()},beforeDestroy(){this.stopStatusPolling()},computed:{displayStatus(){return this.statusResponse&&"idle"!==this.statusResponse.status},isTaskRunning(){return p.includes(this.statusResponse?.status)},buttonDisabled(){return this.statusLoading||this.postLoading||this.isTaskRunning||!this.allowAction},statusSummaryClass(){return{completed:"completed"===this.statusResponse?.status,"in-progress":this.isTaskRunning}},statusItems(){return this.displayStatus?f.filter(e=>this.shouldShowStatusField(e.key)).map(e=>({...e,value:this.formatStatusValue(this.statusResponse[e.key])})):[]}},methods:{fetchStatus(){return this.statusLoading=!0,h.A.familyTree.autosetProfilePicturesStatus({id:this.treeId}).then(e=>{this.statusResponse=e,this.updateStatusPolling()}).catch(()=>{this.$toasted.error("Error fetching autoset profile pictures status")}).finally(()=>{this.statusLoading=!1})},autosetProfilePictures(){this.buttonDisabled||(this.postLoading=!0,h.A.familyTree.autosetProfilePictures({id:this.treeId}).then(e=>{this.statusResponse=e,this.updateStatusPolling()}).catch(()=>{this.$toasted.error("Error autosetting profile pictures")}).finally(()=>{this.postLoading=!1}))},formatStatusValue(e){return null===e||void 0===e||""===e?"-":e},shouldShowStatusField(e){return!!Object.prototype.hasOwnProperty.call(this.statusResponse,e)&&("failed"!==e&&"error"!==e||Boolean(this.statusResponse[e]))},updateStatusPolling(){this.isTaskRunning?this.startStatusPolling():this.stopStatusPolling()},startStatusPolling(){this.statusPollInterval||(this.statusPollInterval=window.setInterval(this.fetchStatus,2e3))},stopStatusPolling(){window.clearInterval(this.statusPollInterval),this.statusPollInterval=null}},name:"AutosetProfilePicturesBlock",components:{McrButton:m.A,StandOutBlock:l.A}},v=g,y=a(81656),_=(0,y.A)(v,d,u,!1,null,"0a344dc9",null),b=_.exports,C={computed:{...(0,c.L8)(["familyTreeDetailsState","familyTreeStartPersonIdState","familyTreeMapImageExistsState"]),colorCodeGender(){return!!this.familyTreeDetailsState.preferences&&this.familyTreeDetailsState.preferences.color_code_gender},showBirthOrder(){return!!this.familyTreeDetailsState.preferences&&this.familyTreeDetailsState.preferences.tree_show_birth_order},showAiButtons(){return!!this.familyTreeDetailsState.preferences&&this.familyTreeDetailsState.preferences.tree_show_ai_buttons},aiButtonsGlossaryContent(){return"When enabled, AI historical context buttons appear for events with a saved date and place. This feature uses only the date and place from the event â not names or any other information from your family tree. AI-generated information may contain mistakes."}},methods:{saveColorCodeGender(e){this.$store.commit("mutateFamilyTreeDetailsState",{preferences:{color_code_gender:e}}),this.$store.dispatch("changeUserInformationAction",{userId:"me",color_code_gender:e}).then(()=>{this.$toasted.success("Color persons cards by gender option updated"),this.familyTreeMapImageExistsState&&this.$store.dispatch("fetchFamilyTreeMapAction",{familyTreeId:this.familyTreeDetailsState.object_id,colorCode:e?"1":"0",startPerson:this.familyTreeStartPersonIdState})}).catch(()=>{this.$store.commit("mutateFamilyTreeDetailsState",{preferences:{color_code_gender:!e}}),this.$toasted.error("Error updating the option")})},saveShowBirthOrder(e){this.$store.commit("mutateFamilyTreeDetailsState",{preferences:{tree_show_birth_order:e}}),this.$store.dispatch("changeUserInformationAction",{userId:"me",tree_show_birth_order:e}).then(()=>{this.$toasted.success("Show sibling hierarchy by birthdate option updated")})},saveShowAiButtons(e){this.$store.commit("mutateFamilyTreeDetailsState",{preferences:{tree_show_ai_buttons:e}}),this.$store.dispatch("changeUserInformationAction",{userId:"me",tree_show_ai_buttons:e}).then(()=>{this.$toasted.success("Show AI exploration buttons option updated")})}},name:"ManageTreeCustomizePage",components:{AutosetProfilePicturesBlock:b,McrStaticGlossaryLink:r["default"],McrWikiGlossaryLink:n["default"],StandOutBlock:l.A,SwitchToggle:o.A}},S=C,T=(0,y.A)(S,s,i,!1,null,"298493cf",null),w=T.exports},59722:function(e,t,a){a.r(t),a.d(t,{default:function(){return b}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mage-tree-details-page"},[t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6"},[e._v("Tree Name")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newName,expression:"newName"}],ref:"name",staticClass:"full-width input",attrs:{disabled:!e.allowEdit,placeholder:"Placeholder"},domProps:{value:e.newName},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveTreeName.apply(null,arguments)},input:function(t){t.target.composing||(e.newName=t.target.value)}}}),e.allowEdit?t("div",{staticClass:"action-buttons"},[t("mcr-button",{staticClass:"save-button",attrs:{disabled:e.nameButtonDisabled,loading:e.s
1aveNameLoading},on:{click:e.saveTreeName}},[e._v("Save ")])],1):e._e()]),t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6"},[e._v("Root Person")]),t("family-tree-people-multiselect-container",{ref:"people-select",staticClass:"bordered",attrs:{"family-tree-id":e.treeId,value:e.selectedHomePerson,multiple:!1,"allow-clear":!1,disabled:!e.allowEdit},on:{select:e.selectHomePerson}}),e.allowEdit?t("div",{staticClass:"action-buttons"},[t("mcr-button",{staticClass:"save-button",attrs:{disabled:e.homePersonButtonDisabled,loading:e.saveHomePersonLoading},on:{click:e.saveHomePerson}},[e._v("Save ")])],1):e._e()],1),e.allowEdit?t("div",{staticClass:"delete-link-container"},[t("button",{staticClass:"delete-link link-button",attrs:{type:"button"},on:{click:e.openDeleteModal}},[t("delete-icon",{attrs:{"aria-hidden":"true"}}),e._v(" "+e._s(e.deleteLinkText)+" ")],1)]):e._e(),e.familyTreeDetailsState.name?t("delete-tree-modal",{attrs:{"tree-id":e.familyTreeDetailsState.object_id,"tree-name":e.familyTreeDetailsState.name,"persons-count":e.familyTreeDetailsState.persons_count,"assets-count":e.familyTreeDetailsState.assets_count,"is-default-tree":e.isDefaultTree}}):e._e()],1)},i=[],r=a(77984),n=a(13715),o=a(41589),l=a(95353),c=a(53967),d=function(){var e=this,t=e._self._c;return t("modal",{staticClass:"mobile_bottom",attrs:{name:"delete-tree-modal",classes:"clear_modal white_modal delete-tree-modal",scrollable:!0,height:"auto"}},[t("div",{staticClass:"alert-modal-content"},[t("h5",[e._v(" Are you sure you want to "+e._s(e.actionText)+" "),t("span",{staticClass:"highlighted"},[e._v(e._s(e.treeName))]),e._v("? ")]),t("div",{staticClass:"description"},[e.isDefaultTree?[e._v(" Your default tree will remain available, but all "+e._s(e.personsCount)+" persons and "+e._s(e.assetsCount)+" photos and files associated with this tree will be deleted. ")]:[e._v(" All "+e._s(e.personsCount)+" persons and "+e._s(e.assetsCount)+" photos and files associated with this tree will also be deleted. ")]],2),t("div",[e._v(" To "+e._s(e.actionText)+' this tree, type "'),t("b",[e._v(e._s(e.treeName))]),e._v('" into the input below ')]),t("div",{staticClass:"input-container"},[t("input",{staticClass:"input",on:{input:e.changeInputValue}})]),t("div",{staticClass:"buttons"},[t("mcr-button",{staticClass:"white",attrs:{disabled:e.loading},on:{click:e.closeModal}},[e._v("Cancel")]),t("mcr-button",{staticClass:"delete-button",attrs:{disabled:e.isDeleteDisabled,loading:e.loading},on:{click:e.deleteTree}},[e._v(e._s(e.deleteButtonText))])],1)])])},u=[],m=(a(44114),{props:{treeName:String,treeId:Number,personsCount:Number,assetsCount:Number,isDefaultTree:Boolean},data(){return{inputValue:"",loading:!1}},computed:{isDeleteDisabled(){return this.inputValue!==this.treeName},actionText(){return this.isDefaultTree?"clean up data for":"delete"},deleteButtonText(){return this.isDefaultTree?"Cleanup data":"Delete"},successMessage(){return this.isDefaultTree?`${this.treeName} data was cleaned up.`:`${this.treeName} was deleted.`},errorMessage(){return this.isDefaultTree?"Something went wrong during tree data cleanup. Please try again later.":"Something went wrong during tree deletion. Please try again later."}},methods:{closeModal(){this.$modal.hide("delete-tree-modal")},changeInputValue(e){this.inputValue=e.target.value},deleteTree(){this.loading=!0,this.$store.dispatch("deleteFamilyTreeAction",{id:this.treeId}).then(e=>{this.$toasted.success(this.successMessage),this.isDefaultTree&&(this.$store.dispatch("cleanupTreeStateAction"),this.$store.commit("clearActiveFamilyTreeIdState")),this.$store.getters.activeFamilyTreeIdState==this.treeId&&this.$store.commit("clearActiveFamilyTreeIdState"),e.member_family_tree_id&&this.$store.commit("setUserFamilyTreeIdState",e.member_family_tree_id),this.$router.push({name:"familytree-manage-all"})}).catch(()=>{this.$toasted.error(this.errorMessage),this.loading=!1})}},components:{McrButton:r.A},name:"DeleteTreeModal"}),h=m,p=a(81656),f=(0,p.A)(h,d,u,!1,null,"794fe1f0",null),g=f.exports,v={data(){const e=this.$store.getters.familyTreeDetailsState;
1return{newName:e.name,saveNameLoading:!1,selectedHomePerson:{object_id:e.home_person.id,full_name:e.home_person.full_name||"Unknown name"},saveHomePersonLoading:!1}},computed:{...(0,l.L8)(["familyTreeDetailsState","familyTreeDetailsLoadingState"]),nameButtonDisabled(){return this.familyTreeDetailsState.name===this.newName},homePersonButtonDisabled(){const e=this.familyTreeDetailsState.home_person||{};return e.id===this.selectedHomePerson.object_id},treeId(){return this.$route.params.id},allowEdit(){return this.familyTreeDetailsState.is_owner},isDefaultTree(){return this.familyTreeDetailsState.object_id===this.$store.getters.userFamilyTreeIdState},deleteLinkText(){return this.isDefaultTree?"Cleanup tree data":"Delete this tree"}},methods:{saveTreeName(){this.$refs.name.blur();const e=this.newName;this.nameButtonDisabled||(this.saveNameLoading=!0,this.$store.commit("mutateFamilyTreeDetailsState",{name:e}),this.$store.dispatch("updateFamilyTreeAction",{id:this.treeId,name:e}).then(()=>{this.$toasted.success("Tree name updated")}).catch(()=>{this.$toasted.error("Error updating tree name")}).finally(()=>{this.saveNameLoading=!1}))},selectHomePerson(e){this.selectedHomePerson=e},saveHomePerson(){this.homePersonButtonDisabled||(this.saveHomePersonLoading=!0,this.$store.dispatch("updateFamilyTreeAction",{id:this.treeId,home_person_id:this.selectedHomePerson.object_id}).then(e=>{this.$toasted.success("Root person updated"),this.$store.commit("mutateFamilyTreeDetailsState",{home_person:e.home_person})}).catch(()=>{this.$toasted.error("Error updating root person")}).finally(()=>{this.saveHomePersonLoading=!1}))},openDeleteModal(){this.$modal.show("delete-tree-modal")}},components:{DeleteTreeModal:g,StandOutBlock:n.A,McrButton:r.A,FamilyTreePeopleMultiselectContainer:c.A,DeleteIcon:o.A},name:"ManageTreeDetailsPage"},y=v,_=(0,p.A)(y,s,i,!1,null,"331dfa94",null),b=_.exports},15673:function(e,t,a){a.r(t),a.d(t,{default:function(){return b}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"manage-tree-export-page"},[t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6"},[e._v("Export")]),t("export-tree-container",{attrs:{"tree-name":e.familyTreeDetailsState.name,"tree-id":e.familyTreeDetailsState.object_id}})],1)],1)},i=[],r=a(13715),n=a(95353),o=function(){var e=this,t=e._self._c;return t("section",{staticClass:"export-tree-container",attrs:{"aria-label":"Tree export options"}},[t("div",{staticClass:"form-controls"},[t("div",{staticClass:"export-options"},[t("div",{staticClass:"export-format"},[t("span",{staticClass:"input-label"},[e._v("Format")]),t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.aboutGedcom},expression:"{content: aboutGedcom}"}],staticClass:"export-format-about text-md bold"},[t("span",[e._v("Gedcom 5.5")]),t("help-icon",{attrs:{size:18,"aria-hidden":"true"}})],1)]),t("fieldset",{staticClass:"primary-name-language-options"},[t("legend",{staticClass:"input-label"},[e._v("Primary name language")]),t("div",{staticClass:"radio-options"},[t("div",{staticClass:"radio-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.primaryNameLanguage,expression:"primaryNameLanguage"}],attrs:{type:"radio",id:"primaryNameLanguageEnglish",name:"primaryNameLanguage",value:"english"},domProps:{checked:e._q(e.primaryNameLanguage,"english")},on:{change:function(t){e.primaryNameLanguage="english"}}}),t("label",{attrs:{for:"primaryNameLanguageEnglish"}},[e._v("English")])]),t("div",{staticClass:"radio-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.primaryNameLanguage,expression:"primaryNameLanguage"}],attrs:{type:"radio",id:"primaryNameLanguageChinese",name:"primaryNameLanguage",value:"chinese"},domProps:{checked:e._q(e.primaryNameLanguage,"chinese")},on:{change:function(t){e.primaryNameLanguage="chinese"}}}),t("label",{attrs:{for:"primaryNameLanguageChinese"}},[e._v("Chinese")])])])]),t("fieldset",{staticClass:"image-options"},[t("div",{staticClass:"checkbox-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.includeImages,expression:"includeImages"}],attrs:{type:"checkbox",id:"includeImages",name:"includeImages"},domProps:{checked:Array.isArray(e.includeImages)?e._i(e.includeImages,null)>-1:e.includeImages},on:{change:function(t){var a=e.includeImages,s=t.target,i=!!s.checked;if(Array.isArray(a)){var r=null,n=e._i(a,r);s.checked?n<0&&(e.includeImages=a.concat([r])):n>-1&&(e.includeImages=a.slice(0,n).concat(a.slice(n+1)))}else e.includeImages=i}}}),t("label",{attrs:{for:"includeImages"}},[e._v("Include all person images")])]),t("div",{staticClass:"checkbox-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.includeLibrary,expression:"includeLibrary"}],attrs:{type:"checkbox",id:"includeLibrary",name:"includeLibrary"},domProps:{checked:Array.isArray(e.includeLibrary)?e._i(e.includeLibrary,null)>-1:e.includeLibrary},on:{change:function(t){var a=e.includeLibrary,s=t.target,i=!!s.checked;if(Array.isArray(a)){var r=null,n=e._i(a,r);s.checked?n<0&&(e.includeLibrary=a.concat([r])):n>-1&&(e.includeLibrary=a.slice(0,n).concat(a.slice(n+1)))}else e.includeLibrary=i}}}),t("label",{attrs:{for:"includeLibrary"}},[e._v("Include other images in library")])]),t("div",{staticClass:"checkbox-control"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.includeAltNamesAsEvents,expression:"includeAltNamesAsEvents"}],attrs:{type:"checkbox",id:"includeAltNamesAsEvents",name:"includeAltNamesAsEvents"},domProps:{checked:Array.isArray(e.includeAltNamesAsEvents)?e._i(e.includeAltNamesAsEvents,null)>-1:e.includeAltNamesAsEvents},on:{change:function(t){var a=e.includeAltNamesAsEvents,s=t.target,i=!!s.checked;if(Array.isArray(a)){var r=null,n=e._i(a,r);s.checked?n<0&&(e.includeAltNamesAsEvents=a.concat([r])):n>-1&&(e.includeAltNamesAsEvents=a.slice(0,n).concat(a.slice(n+1)))}else e.includeAltNamesAsEvents=i}}}),t("label",{staticClass:"checkbox-label-with-help",attrs:{for:"includeAltNamesAsEvents"}},[t("span",[e._v("Include alternate names as events")]),t("help-icon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.aboutAltNamesAsEvents},expression:"{content: aboutAltNamesAsEvents}"}],staticClass:"help-icon",attrs:{size:18,"aria-hidden":"true"}})],1)])])]),e.downloadURL?e._e():t("mcr-button",{staticClass:"export-button",attrs:{loading:e.isWaitingDownload,disabled:e.isWaitingDownload},on:{click:e.startDownload}},[e._v("Export ")])],1),e.isWaitingDownload?t("div",{staticClass:"status-container",attrs:{role:"status","aria-live":"polite"}},[t("mcr-loading-indicator",{attrs:{loading:e.isWaitingDownload}}),t("span",[e._v("We are preparing your download. Please wait...")])],1):e._e(
1),e.downloadURL?t("div",{staticClass:"status-container completed",attrs:{role:"status","aria-live":"polite"}},[t("span",{staticClass:"bold"},[e._v("Export is completed")]),t("a",{attrs:{href:e.downloadURL,download:e.fileName}},[e._v("Download Gedcom File")])]):e._e(),e.asyncExportNotification?t("div",{staticClass:"notification text-sm"},[e.isWaitingDownload?t("span",[e._v("You can close this page and we will notify you when your file is ready by "),t("b",[e._v("email.")])]):e._e(),e.isWaitingDownload?t("span",[e._v("Also your GEDCOM file will be available in your "),t("b",[e._v("library")]),e._v(".")]):e._e(),e.isWaitingDownload?e._e():t("span",[e._v("Also your GEDCOM file is available in your "),t("b",[e._v("library")]),e._v(".")])]):e._e(),e.hasError?t("div",{staticClass:"error-container",attrs:{role:"alert"}},[e.errorText?t("span",[e._v(e._s(e.errorText))]):t("span",[e._v("There was an error exporting your tree. Please try again later or "),t("router-link",{attrs:{to:{name:"get-in-touch"}}},[e._v("contact us")])],1)]):e._e()])},l=[],c=(a(64979),a(77984)),d=a(24127);const u=()=>Promise.resolve().then(a.bind(a,44828));var m={props:{treeId:{type:[Number,String],required:!0},treeName:{type:String,required:!0}},data:function(){return{isWaitingDownload:!1,exportFormat:"gedcom5",downloadURL:null,fileName:`${this.treeName}.ged`,hasError:null,errorText:null,includeImages:!1,includeLibrary:!1,primaryNameLanguage:"english",includeAltNamesAsEvents:!0,statusKey:null,asyncExportNotification:!1,aboutGedcom:"Gedcom 5 is a standard file format for genealogical data.<br>It is supported by most genealogy software programs.",aboutAltNamesAsEvents:"Some platforms read names from GEDCOM events instead of name fields.<br>Keep this on for broader compatibility, or turn it off to avoid duplicate name entries."}},methods:{startDownload(){this.isWaitingDownload=!0,this.hasError=!1,this.downloadURL=null,d.A.familyTree.exportTree({id:this.treeId,format:this.exportFormat,include_images:this.includeImages,include_library:this.includeLibrary,primary_name_language:this.primaryNameLanguage,include_alt_names_as_events:this.includeAltNamesAsEvents}).then(e=>{"object"===typeof e?(this.statusKey=e.status_key,this.asyncExportNotification=!0,setTimeout(()=>{this.checkStatusKey()},1e3)):this.downloadURL="data:text/plain;base64,"+btoa(unescape(encodeURIComponent(e)))}).catch(e=>{e.response&&401===e.response.status&&(this.errorText="You are not authorized to export this tree."),this.hasError=!0}).finally(()=>{this.downloadURL&&(this.isWaitingDownload=!1)})},checkStatusKey(){d.A.familyTree.exportTree({id:this.treeId,status_key:this.statusKey}).then(e=>{e.url?(this.downloadURL=e.url,this.isWaitingDownload=!1):e.error?(this.hasError=!0,this.isWaitingDownload=!1,this.asyncExportNotification=!1,this.errorText="There was an error exporting your tree. Please try again later or contact us."):setTimeout(()=>{this.checkStatusKey()},1e3)})}},name:"ExportTreeContainer",components:{McrButton:c.A,HelpIcon:u}},h=m,p=a(81656),f=(0,p.A)(h,o,l,!1,null,"61809c18",null),g=f.exports,v={computed:{...(0,n.L8)(["familyTreeDetailsState"])},components:{StandOutBlock:r.A,ExportTreeContainer:g},name:"ManageTreeExportPage"},y=v,_=(0,p.A)(y,s,i,!1,null,"8e3c9a2e",null),b=_.exports},67200:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mage-tree-mobile-menu-page"},[t("div",{staticClass:"heading-content"},[t("breadcrumbs-view",{attrs:{steps:e.breadcrumbs,separator:"slash"}}),t("h5",{staticClass:"main-heading heading-5 meta-item"},[e._v(e._s(e.familyTreeDetailsState.name))])],1),t("stand-out-block",{staticClass:"tree-meta-block light"},[t("div",{staticClass:"tree-meta"},[t("div",{staticClass:"meta-item"},[t("div",{staticClass:"count heading-6"},[e._v(e._s(e.familyTreeDetailsState.persons_count))]),t("div",{staticClass:"text-md"},[e._v(e._s(e.familyTreeDetailsState.persons_count>1?"Persons":"Person"))])]),t("div",{staticClass:"meta-item"},[t("div",{staticClass:"count heading-6"},[e._v(e._s(e.familyTreeDetailsState.assets_count))]),t("div",{staticClass:"text-md"},[e._v("Photos & Files")])]),e.isDefaultTree?t("div",{staticClass:"meta-item"},[t("div",{staticClass:"icon-container"},[t("home-icon",{staticClass:"home-icon",attrs:{size:24,title:""}})],1),t("div",{staticClass:"text-md"}
1,[e._v("Default Tree")])]):e._e(),e.isEditor?t("div",{staticClass:"meta-item"},[t("div",{staticClass:"icon-container"},[t("editor-icon",{staticClass:"home-icon",attrs:{size:20,title:""}})],1),t("div",{staticClass:"text-md"},[e._v("Editor Access")])]):e._e(),e.isViewer?t("div",{staticClass:"meta-item"},[t("div",{staticClass:"icon-container"},[t("viewer-icon",{staticClass:"home-icon",attrs:{size:20,title:""}})],1),t("div",{staticClass:"text-md"},[e._v("Viewer Access")])]):e._e()]),t("mcr-button-router-link",{staticClass:"white small view-tree",attrs:{to:e.ftRoute}},[t("tree-icon",{attrs:{size:20}}),e._v("View Tree")],1)],1),t("settings-navigation")],1)},i=[],r=a(12273),n=a(4857),o=a(13715),l=a(21193),c=a(89339),d=a(27312),u=a(44914),m=a(95353),h=a(31470),p={beforeRouteEnter(e,t,a){a(e=>{if(e.$store.getters.windowWidthState>e.$breakpoints.mobile)return e.$router.replace({name:"familytree-manage-details",params:{id:e.$route.params.id}}),!1})},computed:{...(0,m.L8)(["familyTreeDetailsState"]),ftRoute(){return{name:"familytree-details",params:{id:this.familyTreeDetailsState.object_id}}},breadcrumbs(){return[{route:this.manageTreesRoute,label:"Manage All Trees"},{route:this.ftRoute,label:"View Tree"},{route:{name:"familytree-create"},label:"+ Create New Tree"}]},manageTreesRoute(){return{name:"familytree-manage-all"}},isDefaultTree(){return this.familyTreeDetailsState.object_id===this.$store.getters.userFamilyTreeIdState},isEditor(){return!this.familyTreeDetailsState.is_owner&&this.familyTreeDetailsState.is_editor},isViewer(){return!this.familyTreeDetailsState.is_owner&&!this.familyTreeDetailsState.is_editor}},components:{BreadcrumbsView:n.A,SettingsNavigation:h.A,HomeIcon:c.A,McrButtonRouterLink:r.A,TreeIcon:u.A,StandOutBlock:o.A,EditorIcon:d.A,ViewerIcon:l.A},name:"ManageTreeMobileMenu"},f=p,g=a(81656),v=(0,g.A)(f,s,i,!1,null,"39f658ca",null),y=v.exports},85383:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"manage-tree-privacy-page"},[t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6"},[e._v("Privacy Settings")]),t("div",{staticClass:"tree-privacy-setting-option"},[t("input",{attrs:{type:"radio",disabled:!e.allowEdit,id:e.inputPrivateId,name:e.inputName},domProps:{checked:!e.isPublic,value:!e.isPublic},on:{change:function(t){return e.updateFamilyTree(!1)}}}),t("label",{staticClass:"description",attrs:{for:e.inputPrivateId}},[t("span",{staticClass:"bold text-lg"},[e._v("Private")]),t("span",{staticClass:"text-xs"},[e._v("Only you and the people you invite will be able to see the tree.")])])]),t("div",{staticClass:"tree-privacy-setting-option"},[t("input",{attrs:{type:"radio",disabled:!e.allowEdit,id:e.inputPublicId,name:e.inputName},domProps:{checked:e.isPublic,value:e.isPublic},on:{change:function(t){return e.updateFamilyTree(!0)}}}),t("label",{staticClass:"description",attrs:{for:e.inputPublicId}},[t("span",{staticClass:"bold text-lg"},[e._v("Public")]),t("span",{staticClass:"text-xs"},[e._v("Anyone with the share link can view this tree.")])])]),t("transition",{attrs:{name:"fade"}},[e.isPublic?t("div",{staticClass:"family-tree-share-link"},[t("tree-share-link",{attrs:{"tree-id":e.objectId}})],1):e._e()])],1)],1)},i=[],r=a(13715),n=a(95353),o=a(82355),l={computed:{...(0,n.L8)(["familyTreeDetailsState"]),objectId(){return this.familyTreeDetailsState.object_id},isPublic(){return this.familyTreeDetailsState.is_public},inputPrivateId(){return`tree-privacy-private-${this.objectId}`},inputPublicId(){return`tree-privacy-public-${this.objectId}`},inputName(){return`tree-privacy-radio-${this.objectId}`},allowEdit(){return this.familyTreeDetailsState.is_owner}},methods:{updateFamilyTree(e){this.$store.dispatch("updateFamilyTreeAction",{id:this.objectId,is_public:e}).then(e=>{this.onUpdated(e)})},onUpdated(e){this.$toasted.success("Privacy settings updated"),this.$store.commit("mutateFamilyTreeDetailsState",{is_public:e.is_public})}},components:{TreeShareLink:o.A,StandOutBlock:r.A},name:"ManageTreeDetailsPage"},c=l,d=a(81656),u=(0,d.A)(c,s,i,!1,null,"662fc9f3",null),m=u.exports},2470:function(e,t,a){a.r(t),a.d(t,{default:function(){return y}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"manage-tree-sharing-page"},[t("stand-out-block",{staticClass:"settings-item light"},[t("h6",{staticClass:"heading-6 no-margin"},[e._v("Invite collaborators")]),t("div",{staticClass:"text-sm subtitle"},[e._v("You can invite your family members to collaborate on your family tree project")]),t("tree-invite-input",{attrs:{"tree-id":e.familyTreeDetailsState.object_id},on:{invited:e.onMembersInvited}}
1),e.isTreePublic?t("div",{staticClass:"privacy-container text-xs"},[t("div",{staticClass:"icon-container"},[t("lock-open-icon",{attrs:{size:20}})],1),t("div",[t("div",{staticClass:"bold"},[e._v("Public")]),t("div",[e._v("Anyone with the share link can view this tree.")])])]):t("div",{staticClass:"privacy-container text-xs"},[t("div",{staticClass:"icon-container"},[t("lock-icon",{attrs:{size:20}})],1),t("div",[t("div",{staticClass:"bold"},[e._v("Private")]),t("div",[e._v("Only you and the people you invite will be able to see the tree.")])])]),e.isTreePublic?t("tree-share-link",{attrs:{"tree-id":e.familyTreeDetailsState.object_id}}):e._e()],1),t("stand-out-block",{staticClass:"settings-item light"},[t("div",{staticClass:"heading-container"},[t("h6",{staticClass:"heading-6 no-margin"},[e._v("User List")]),e.userListUpdateLoading?t("bounce-loading",{staticClass:"dark"}):e._e()],1),t("div",{staticClass:"text-sm subtitle"},[e._v("Review people who can access this tree, or invite suggested collaborators.")]),t("content-shares-list",{attrs:{shares:e.familytreeContentSharesState,"share-target-key":"family_tree_id","share-target-id":e.familyTreeDetailsState.object_id,loading:e.familytreeContentSharesLoadingState,"accept-loading-by-email":e.familytreeContentShareAcceptLoadingByEmailState},on:{"invite-suggestion":e.acceptSuggestion},scopedSlots:e._u([{key:"target-share-action",fn:function({share:a,email:s}){return[t("tree-member-role-select",{attrs:{"tree-id":e.familyTreeDetailsState.object_id,email:s,"is-editor":a.is_editor},on:{"pre-role-change":e.onPreRoleChange,deleted:e.fetchContentShares}})]}}])})],1)],1)},i=[],r=(a(18111),a(13579),a(13715)),n=a(94178),o=a(16593),l=a(42128),c=a(95353),d=a(28877),u=a(59732),m=a(18315),h=a(82355),p={computed:{...(0,c.L8)(["familyTreeDetailsState","familyTreeEditMemberLoadingState","familyTreeDeleteMemberLoadingState","familytreeContentSharesState","familytreeContentSharesLoadingState","familytreeContentShareAcceptLoadingByEmailState"]),userListUpdateLoading(){const e=Object.values(this.familyTreeEditMemberLoadingState).some(e=>e),t=Object.values(this.familyTreeDeleteMemberLoadingState).some(e=>e);return e||t},isTreePublic(){return this.familyTreeDetailsState.is_public}},methods:{fetchContentShares(){return this.$store.dispatch("fetchFamilytreeContentSharesAction",{id:this.familyTreeDetailsState.object_id}).catch(()=>{this.$toasted.error("Error loading sharing members. Please try again later.")})},onMembersInvited(){this.fetchContentShares()},onPreRoleChange({email:e,is_editor:t}){this.$store.commit("mutateFamilytreeContentShareState",{email:e,data:{is_editor:t}})},acceptSuggestion(e){return this.$store.dispatch("acceptFamilytreeContentShareSuggestionAction",{shared_with_email:e.shared_with_email,family_tree_id:this.familyTreeDetailsState.object_id,share_everything:!1,is_editor:e.is_editor}).then(()=>{this.$toasted.success("Collaborator invited successfully! You can change their access rights below.")}).catch(()=>{this.$toasted.error("Error accepting suggestion. Changes were not saved.")})}},name:"ManageTreeSharingPage",components:{TreeShareLink:h.A,BounceLoading:n.A,TreeInviteInput:u.A,StandOutBlock:r.A,LockIcon:l.A,LockOpenIcon:o.A,ContentSharesList:d.A,TreeMemberRoleSelect:m.A}},f=p,g=a(81656),v=(0,g.A)(f,s,i,!1,null,"05b3ce76",null),y=v.exports},31470:function(e,t,a){a.d(t,{A:function(){return v}});var s=function(){var e=this,t=e._self._c;return t("stand-out-block",{staticClass:"settings-navigation light"},[t("router-link",{staticClass:"settings-navigation-item",attrs:{to:e.detailsRoute}},[t("tree-icon",{staticClass:"item-icon tree-icon",attrs:{size:20}}),t("span",{staticClass:"label"},[e._v("Tree Details")]),t("arrow-icon",{staticClass:"arrow-icon",attrs:{size:25}})],1),t("router-link",{staticClass:"settings-navigation-item",attrs:{to:e.privacyRoute}},[t("privacy-icon",{staticClass:"item-icon",attrs:{size:22}}),t("span",{staticClass:"label"},[e._v("Privacy")]),t("arrow-icon",{staticClass:"arrow-icon",attrs:{size:25}})],1),t("router-link",{staticClass:"settings-navigation-item",class:{disabled:!e.familyTreeDetailsState.is_owner},attrs:{to:e.sharingRoute}},[t("sharing-icon",{staticClass:"item-icon",attrs:{size:22}}),t("span",{staticClass:"label"},[e._v("Sharing")]),t("arrow-icon",{staticClass:"arrow-icon",attrs:{size:25}})],1),t("router-link",{staticClass:"settings-navigation-item",class:{disabled:!e.familyTreeDetailsState.is_owner},attrs:{to:e.exportRoute}},[t("export-icon",{staticClass:"item-icon",attrs:{size:22}}),t("span",{staticClass:"label"},[e._v("Export")]),t("arrow-icon",{staticClass:"arrow-icon",attrs:{size:25}})],1),t("router-link",{staticClass:"settings-navigation-item",attrs:{to:e.customizeRoute}},[t("customize-icon",{staticClass:"item-icon",attrs:{size:22}}),t("span",{staticClass:"label"},[e._v("Customize Tree")]),t("arrow-icon",{staticClass:"arrow-icon",attrs:{size:25}})],1)],1)},i=[],r=a(13715),n=a(82859),o=a(26861),l=a(30703),c=a(42128),d=a(18620),u=a(44914),m=a(95353),h={data(){const e=this.$route.params.id,t={id:e};return{detailsRoute:{name:"familytree-manage-details",params:t},privacyRoute:{name:"familytree-manage-privacy",params:t},sharingRoute:{name:"familytree-manage-sharing",params:t},exportRoute:{name:"familytree-manage-export",params:t},customizeRoute:{name:"familytree-manage-customize",params:t}}},computed:{...(0,m.L8)(["familyTreeDetailsState"])},components:{StandOutBlock:r.A,TreeIcon:u.A,PrivacyIcon:c.A,ArrowIcon:o.A,ExportIcon:l.A,CustomizeIcon:d.A,SharingIcon:n.A},name:"SettingsNavigation"},p=h,f=a(81656),g=(0,f.A)(p,s,i,!1,null,"6e0dad06",null),v=g.exports},46812:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"readable_content"},[t("h1",[e._v("Page Not Found!")]),t("p",[e._v("Sorry, we couldn't find the page at this address.")]),t("div",{staticClass:"bold"},[e._v("Suggestions")]),t("ul",[t("li",[t("router-link",{attrs:{to:"/"}},[e._v("Visit our home page")]),e._v(" for an overview of our services.")],1),t("li",[e._v("Read "),t("router-link",{attrs:{to:{name:"testimonials"}}},[e._v("testimonials")]),e._v(" from our customers.")],1),t("li",[e._v(" Search for records in our "),t("router-link",{attrs:{to:e.searchRecordsRoute}},[e._v("Chinese Genealogical Records database")]),e._v(". ")],1),t("li",[e._v("Learn more about "),t("router-link",{attrs:{to:{name:"our-story"}}},[e._v("My China Roots and our story")]),e._v(".")],1),t("li",[t("router-link",{attrs:{to:{name:"contact"}}},[e._v("Contact us")]),e._v(" via email or phone.")],1)])])])},i=[],r=a(95406),n={metaInfo:{title:"Page Not Found",meta:[{vmid:"robots",name:"robots",content:"noindex,nofollow"}]},computed:{searchRecordsRoute(){return{name:"search-all-records",query:{tab:r.pN}}}}
1,name:"page.not.found"},o=n,l=a(81656),c=(0,l.A)(o,s,i,!1,null,"43995364",null),d=c.exports}}]); 2//# sourceMappingURL=family-tree-manage.da954acd.js.map
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.