PageSourceSearch

https://www.findmypast.com.au/titan/dist/jigsaw-tree-share-container.fbc7290ab47a9ed2.js

js findmypast.com.au collected 2026-10-01 12:11:19 UTC 16,270 bytes, 2 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([["1004"],{101978(e,r,t){t.d(r,{a:()=>h});var n=t(629901),a=t(775641),o=t(668312),i=t(565099);function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function c(e,r){if(null==e)return{};var t,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,t=Reflect.ownKeys(Object(e));a<t.length;a++)n=t[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,r){if(null==e)return{};var t,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)t=o[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t]);return a}(e,r),Object.getOwnPropertySymbols)for(a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n=t[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}var s=(0,o.tv)({base:["peer","min-w-6","min-h-6","w-6","h-6","m-2","border","border-solid","border-indigo","rounded-full","relative","transition-all","duration-200","ease-in-out","outline-none","appearance-none","cursor-pointer","[&+label]:cursor-pointer","disabled:cursor-not-allowed","[&+label]:disabled:cursor-not-allowed","[&+label]:disabled:text-indigo-50",'before:content-[""]',"before:block","before:absolute","before:w-0","before:h-0","before:top-[50%]","before:left-[50%]","before:translate-x-[-50%]","before:translate-y-[-50%]","before:bg-indigo","before:rounded-[100%]","before:transition-all","before:duration-200","before:ease-in-out","before:checked:w-4","before:checked:h-4","before:checked:flex","before:checked:align-middle"]}),u=a.createContext(null),f=function(){var e=a.useContext(u);if(!e)throw Error("useRadioButton must be used within an RadioButtonProvider");return e},d=function(e){var r=e.className,t=c(e,["className"]);return(0,n.jsx)(u.Provider,{value:{id:""},children:(0,n.jsx)("span",{className:(0,i.Q)("flex items-center",r),onClick:function(e){var r;null==(r=t.onClick)||r.call(t,e)},children:t.children})})};d.displayName="RadioButton.Wrapper";var p=function(e){var r=e.className,t=c(e,["className"]);return(0,n.jsx)("input",l({type:"radio",className:(0,i.Q)(s(),r)},t))};p.displayName="RadioButton.Input";var b=function(e){var r,t,a=e.className,o=c(e,["className"]),s=f().id;return(0,n.jsx)("label",(r=l({id:s,className:(0,i.Q)("peer:disabled:text-indigo-50 hover:cursor-pointer",a)},o),t=t={children:o.children?o.children:o.label},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))};b.displayName="RadioButton.Label";var y=function(e){var r=e.className,t=c(e,["className"]);return(0,n.jsx)("p",l({className:(0,i.Q)("text-sm text-grey-50",r)},t))};y.displayName="RadioButton.BodyCopy";var h={Wrapper:d,Input:p,Label:b,BodyCopy:y}},453112(e,r,t){t.d(r,{A:()=>o});var n=t(629901);t(775641);var a=t(565099);let o=function(e){var r,t,o=e.children,i=e.className,l=function(e,r){if(null==e)return{};var t,n,a,o={};if("u">typeof Reflect&&Reflect.ownKeys){for(a=0,t=Reflect.ownKeys(Object(e));a<t.length;a++)n=t[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}if(o=function(e,r){if(null==e)return{};var t,n,a={},o=Object.getOwnPropertyNames(e);for(n=0;n<o.length;n++)t=o[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t]);return a}(e,r),Object.getOwnPropertySymbols)for(a=0,t=Object.getOwnPropertySymbols(e);a<t.length;a++)n=t[a],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n]);return o}(e,["children","className"]);return(0,n.jsx)("div",(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},l),t=t={className:(0,a.Q)("h-full overflow-y-auto overscroll-contain",i),style:{WebkitOverflowScrolling:"touch"},children:o},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))}},917387(e,r,t){t.r(r),t.d(r,{default:()=>R});var n=t(629901),a=t(775641),o=t(453112),i=t(271221),l=t(387858),c=t(296797),s=t(791202),u=t(551289),f=t(90754),d=t(403923),p=t(454815),b=t(390016),y=t(857275),h=t(901562),m=t(188149),v=function(e){var r,t;return(0,n.jsx)(m.h,(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({viewBox:"0 0 16 19.75"},e),t=t={children:(0,n.jsx)("path",{fill:"currentColor",d:"M0 8.95V4.225c0-.417.12-.792.362-1.125.242-.333.555-.575.938-.725l6-2.25A2.07 2.07 0 0 1 8 0c.233 0 .467.042.7.125l6 2.25c.383.15.696.392.938.725.241.333.362.708.362 1.125V8.95c0 2.333-.667 4.513-2 6.538-1.333 2.025-3.125 3.412-5.375 4.162a1.976 1.976 0 0 1-.625.1 1.976 1.976 0 0 1-.625-.1C5.125 18.9 3.333 17.513 2 15.488.667 13.463 0 11.283 0 8.95Zm8 8.8c1.733-.55 3.167-1.65 4.3-3.3s1.7-3.483 1.7-5.5V4.225l-6-2.25-6 2.25V8.95c0 2.017.567 3.85 1.7 5.5s2.567 2.75 4.3 3.3Zm-2-3.9h4c.283 0 .52-.096.713-.287A.968.968 0 0 0 11 12.85v-3a.968.968 0 0 0-.287-.712A.968.968 0 0 0 10 8.85v-1c0-.55-.196-1.02-.588-1.412A1.926 1.926 0 0 0 8 5.85c-.55 0-1.02.196-1.412.588A1.926 1.926 0 0 0 6 7.85v1a.967.967 0 0 0-.713.288A.968.968 0 0 0 5 9.85v3c0 .283.096.52.287.713.192.191.43.287.713.287Zm1-5v-1c0-.283.096-.52.287-.712A.968.968 0 0 1 8 6.85c.283 0 .52.096.713.288.191.191.287.429.287.712v1H7Z"})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))},j=t(452224),O=t(101978),x=t(9309),g=t(25512),w=t(38366);let P=function(e){var r=e.list,t=e.keyPrefix;return(0,n.jsx)("div",{children:r.map(function(e,r){return(0,n.jsx)("div",{className:"mb-2.5 text-base",children:(0,n.jsxs)("div",{className:"flex flex-row",children:[(0,n.jsx)("div",{children:(0,n.jsx)(w.v,{color:"aqua",marginRight:"0.5rem"})}),(0,n.jsx)("div",{className:"flex-auto",children:(0,n.jsx)("p",{children:e})})]})},"".concat(t,"-").concat(r))})})};var N=t(180191),k=t(70083),S=t(182667);function _(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function A(e,r,t,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){t(e);return}l.done?r(c):Promise.resolve(c).then(n,a)}function I(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,n,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!r||o.length!==r);i=!0);}catch(e){l=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw n}}return o}}(e,r)||function(e,r){if(e){if("string"==typeof e)return _(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(e,r)}}(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
1function T(){var e,r,t=(e=["\n  mutation generatePublicTreeShareTokenMutation($familyTreeId: ID!) {\n    generatePublicTreeShareToken(familyTreeId: $familyTreeId) {\n      publicTreeShareToken\n    }\n  }\n"],r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}})));return T=function(){return t},t}var D=function(){return(0,n.jsxs)(y.F,{variant:"success",children:["Link copied! It expires in ",7," days"]})},C=(0,i.gql)(T());let E=function(){var e,r=(0,u.A)(),t=r.treeId,o=r.rootsfinderId,y=r.personId,m=(0,x.I)(),w=m.tree,_=m.treeType,T=(0,s.ne)(_),E=w.isPrivate,L=(0,g.A)(),R=(0,a.useContext)(l.w).rootDomain,B=(0,b.dh)().displayMessage,H=I((0,i.useMutation)(C,{variables:{familyTreeId:t}}),2),K=H[0],M=H[1],Q=M.data,U=M.error;if(U)throw U;var W=I((0,a.useState)(!1),2),z=W[0],F=W[1],V=["Share a view-only link that expires after 7 days","Living people won't be shared"],Z=null==Q||null==(e=Q.generatePublicTreeShareToken)?void 0:e.publicTreeShareToken,$="/public-tree/".concat(o,"/preview?familyTreeRef=").concat(w.familyTreeRef,"&publicTreeShareToken=").concat(Z),q=(0,c.H)($,R,"www");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex-auto",children:(0,n.jsxs)("div",{className:"mt-1 bg-white p-4",children:[(0,n.jsx)(S.A,{title:"Choose how to share your tree"}),(0,n.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,n.jsx)("div",{className:"rounded-lg border-none p-4 shadow-[rgba(45,43,36,0.2)_0px_0px_5px_0px] hover:cursor-pointer",children:(0,n.jsxs)(O.a.Wrapper,{className:"items-start",onClick:function(){return F(!1)},children:[(0,n.jsx)(O.a.Input,{id:"radio-invite-friends",checked:!z,onChange:function(){return F(!1)},value:"invite-friends","aria-label":"Invite friends and family",name:"share-method",className:"m-0 mr-2"}),(0,n.jsxs)("span",{className:"flex flex-col",children:[(0,n.jsx)(O.a.Label,{className:"text-lg font-bold",htmlFor:"radio-invite-friends",id:"invite-friends",label:"Invite friends and family"}),!z&&(0,n.jsx)("div",{className:"mt-4 text-sm text-dark-blue",children:(0,n.jsx)(P,{list:["Give someone view-only access to your tree from their account","Choose who can view living people","Remove and edit access at any time"],keyPrefix:"invite-friends-and-family"})})]})]})}),!E&&(0,n.jsx)("div",{className:"rounded-lg border-none p-4 shadow-[rgba(45,43,36,0.2)_0px_0px_5px_0px] hover:cursor-pointer",children:(0,n.jsxs)(O.a.Wrapper,{className:"items-start",onClick:function(){F(!0),Z||K()},children:[(0,n.jsx)(O.a.Input,{id:"radio-share-link",checked:z,onChange:function(){F(!0),Z||K()},value:"share-link","aria-label":"Share a temporary link",name:"share-method",className:"m-0 mr-2"}),(0,n.jsxs)("span",{className:"flex flex-col",children:[(0,n.jsx)(O.a.Label,{className:"text-lg font-bold",htmlFor:"radio-share-link",id:"share-link",label:"Share a temporary link"}),z&&(0,n.jsx)("div",{className:"mt-4 text-sm text-dark-blue",children:(0,n.jsx)(P,{list:V,keyPrefix:"share-temporary-link"})})]})]})}),z&&(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)(N.A,{text:Z&&q,onClick:function(e){var r;return(r=function(){return function(e,r){var t,n,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(i,"next",{value:c(0)}),l(i,"throw",{value:c(1)}),l(i,"return",{value:c(2)}),"function"==typeof Symbol&&l(i,Symbol.iterator,{value:function(){return this}}),i;function c(l){return function(c){var s=[l,c];if(t)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(t=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}
1if(6===s[0]&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=r.call(e,o)}catch(e){s=[6,e],n=0}finally{t=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(r){switch(r.label){case 0:return e.preventDefault(),T({eventAction:"copy_link_public",focus_node_id:+y,tree_id:+(null==w?void 0:w.id)}),[4,navigator.clipboard.writeText(q)];case 1:return r.sent(),B({children:(0,n.jsx)(D,{})}),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,a){var o=r.apply(e,t);function i(e){A(o,n,a,i,l,"next",e)}function l(e){A(o,n,a,i,l,"throw",e)}i(void 0)})})()},loading:!Z}),Z&&(0,n.jsx)(k.A,{inviteUrl:q})]})]}),E&&(0,n.jsxs)("div",{className:"mt-3.5 p-4",children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("h1",{className:"text-lg/6",children:"Share a temporary link"}),(0,n.jsx)(d.v,{bg:"error",children:(0,n.jsx)("p",{className:"text-xs font-bold text-white",children:"Unavailable"})})]}),(0,n.jsx)("div",{className:"mt-2",children:(0,n.jsx)(P,{color:j.a.colors.grey60,list:V,keyPrefix:"share-temporary-link"})})]})]})}),(0,n.jsx)("div",{children:(0,n.jsxs)("div",{className:"mt-2 bg-white p-4",children:[!z&&(0,n.jsxs)(p.$,{marginTop:3,variant:"primary",as:f.A,to:z?L.share.public:L.share.invite,onClick:function(){T({eventAction:"share_tree_continue",focus_node_id:+y,tree_id:+(null==w?void 0:w.id),share_type:z?"public_tree_share":"tree_share"})},children:[(0,n.jsx)("span",{className:"text-white",children:"Create an invite"}),(0,n.jsx)(h.N,{marginLeft:"0.5rem"})]}),(0,n.jsx)("div",{className:"my-4 bg-cobalt-50 px-4 py-2",children:(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("div",{children:(0,n.jsx)(v,{size:"1.3rem",marginTop:"0.25rem"})}),(0,n.jsx)("div",{className:"ml-4",children:(0,n.jsx)("p",{children:"No one else can edit your tree, and anything marked as private will never be shared"})})]})})]})})]})};var L=t(443544);let R=function(){return(0,n.jsxs)(o.A,{className:"flex flex-col",children:[(0,n.jsx)(L.A,{heading:"Share your tree",subHeading:"Show others what you’ve discovered",displayBackButton:!1}),(0,n.jsx)(E,{})]})}},901562(e,r,t){t.d(r,{N:()=>o});var n=t(629901);t(775641);var a=t(188149),o=function(e){var r,t;return(0,n.jsx)(a.h,(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({viewBox:"1 1 14 14"},e),t=t={children:(0,n.jsx)("path",{fill:"currentColor",d:"M9.147 13.333a.391.391 0 01-.29-.126L7.79 12.11a.415.415 0 01-.122-.298.41.41 0 01.122-.297L10.234 9H2.667a1 1 0 110-2h7.566L7.789 4.487a.428.428 0 01-.115-.215l-.007-.083a.41.41 0 01.122-.298l1.068-1.098a.394.394 0 01.58 0l4.773 4.91a.412.412 0 01.122.298.41.41 0 01-.122.297l-4.774 4.91a.397.397 0 01-.29.125z"})},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r))}}}]);
2//# sourceMappingURL=jigsaw-tree-share-container.fbc7290ab47a9ed2.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.