PageSourceSearch

https://www.treedom.net/_next/static/chunks/pages/bff/user-subscription/[slug]-aa33f0955c6a513b.js

js treedom.net collected 2026-10-02 04:09:24 UTC 27,487 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81389],{36220:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(67294),a=i(3436),r=i(66589),s={"text-basic":"tc_tU3ut","text-color-inherit":"tc_K9Js-","text-variant-h1":"tc_dRAMK","text-variant-h1-color-default":"tc_T7poa","text-variant-h1-color-primary":"tc_lqKK8","text-variant-h2":"tc_mW4EM","text-variant-h2-color-default":"tc_5PUHp","text-variant-h2-color-primary":"tc_JGw8F","text-variant-h3":"tc_XMRWV","text-variant-h3-color-default":"tc_vMlB-","text-variant-h3-color-primary":"tc_2ws6B","text-variant-h4":"tc_Fo7xk","text-variant-h4-color-default":"tc_itiKB","text-variant-h4-color-primary":"tc_30e6o","text-variant-h5":"tc_80G1i","text-variant-h5-color-default":"tc_-F60u","text-variant-h5-color-primary":"tc_PSMyN","text-variant-h6":"tc_mZNP9","text-variant-h6-color-default":"tc_Ts5Ol","text-variant-h6-color-primary":"tc_9T-cN","text-variant-subheading":"tc_qiW3p","text-variant-subheading-color-default":"tc_o0jqN","text-variant-subheading-color-primary":"tc_Fe8Rd","text-variant-body":"tc_2Ur0-","text-variant-body-color-default":"tc_AncK3","text-variant-body-color-primary":"tc_evgoZ","text-variant-caption":"tc_Yjx7t","text-variant-caption-color-default":"tc_3Tg2G","text-variant-caption-color-primary":"tc_mj4Ck","text-align-center":"tc_Uooqg","text-align-justify":"tc_exVzs","text-align-left":"tc_loAki","text-align-right":"tc_Na6gK","no-wrap":"tc_Ic2JH","gutter-bottom":"tc_kXY-m","gutter-top":"tc_Z0l4L",paragraph:"tc_PtBXS",bold:"tc_oQiJz"};(0,r.Z)(".tc_tU3ut{margin:0}.tc_K9Js-{color:inherit}.tc_dRAMK{font-family:var(--font-heading);font-size:54px;font-weight:800;line-height:58px}@media (max-width:680px){.tc_dRAMK{font-size:32px;line-height:36px}}.tc_T7poa{color:var(--color-font-100)}.tc_lqKK8{color:var(--color-primary-500)}.tc_mW4EM{font-family:var(--font-heading);font-size:42px;font-weight:800;line-height:48px}@media (max-width:680px){.tc_mW4EM{font-size:26px;line-height:34px}}.tc_5PUHp{color:var(--color-font-100)}.tc_JGw8F{color:var(--color-primary-500)}.tc_XMRWV{font-family:var(--font-heading);font-size:32px;font-weight:800;line-height:36px}@media (max-width:680px){.tc_XMRWV{font-size:22px;line-height:28px}}.tc_vMlB-{color:var(--color-font-100)}.tc_2ws6B{color:var(--color-primary-500)}.tc_Fo7xk{font-family:var(--font-heading);font-size:26px;font-weight:700;line-height:28px}@media (max-width:680px){.tc_Fo7xk{font-size:20px;line-height:26px}}.tc_itiKB{color:var(--color-font-100)}.tc_30e6o{color:var(--color-primary-500)}.tc_80G1i{font-family:var(--font-heading);font-size:20px;font-weight:700;line-height:24px}@media (max-width:680px){.tc_80G1i{font-size:18px;line-height:24px}}.tc_-F60u{color:var(--color-font-100)}.tc_PSMyN{color:var(--color-primary-500)}.tc_mZNP9{font-family:var(--font-heading);font-size:16px;font-weight:600;line-height:20px}@media (max-width:680px){.tc_mZNP9{font-size:14px;font-weight:700;line-height:20px}}.tc_Ts5Ol{color:var(--color-font-100)}.tc_9T-cN{color:var(--color-primary-500)}.tc_qiW3p{font-family:var(--font-heading);font-size:14px;font-weight:600;letter-spacing:2px;line-height:16px;text-transform:uppercase}.tc_o0jqN{color:var(--color-font-100)}.tc_Fe8Rd{color:var(--color-primary-500)}.tc_2Ur0-{font-family:var(--font-body);font-size:16px;font-weight:400;line-height:22px}@media (max-width:680px){.tc_2Ur0-{font-size:14px;line-height:22px}}.tc_AncK3{color:var(--color-font-300)}.tc_evgoZ{color:var(--color-primary-300)}.tc_Yjx7t{font-family:var(--font-body);font-size:12px;font-weight:400;line-height:16px}@media (max-width:680px){.tc_Yjx7t{font-size:12px;line-height:16px}}.tc_3Tg2G{color:var(--color-font-500)}.tc_mj4Ck{color:var(--color-primary-300)}.tc_Uooqg{text-align:center}.tc_exVzs{text-align:justify}.tc_loAki{text-align:left}.tc_Na6gK{text-align:right}.tc_Ic2JH{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tc_kXY-m{margin-bottom:var(--spacing-2)}.tc_Z0l4L{margin-top:var(--spacing-2)}.tc_PtBXS{margin-bottom:var(--spacing-4)}.tc_oQiJz{font-weight:700}","style-b1552e44-3717-4d04-8c8f-8744f8d8f464");
1let o={body:"p",caption:"p",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subheading:"span"};function l({align:e,bold:t,children:i,className:r,color:l="default",component:c,gutterBottom:d,gutterTop:u,noWrap:m,paragraph:v,variant:p="body",...f}){let g=c||(v?"p":o[p])||"span",h=(0,a.Z)(s["text-basic"],s[`text-variant-${p}`],s[`text-variant-${p}-color-${l}`],{[s[`text-align-${e}`]]:e&&"inherit"!==e,[s["no-wrap"]]:!!m,[s["gutter-bottom"]]:!!d,[s["gutter-top"]]:!!u,[s.paragraph]:!!v,[s.bold]:!!t},r);return n.createElement(g,{...f,className:h},i)}},52026:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294),a=i(96266);let r=n.memo(e=>n.createElement(a.Z,e,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"lock-fill_svg__tds-svg-icon--fill",viewBox:"0 0 24 24",...e},n.createElement("path",{d:"M18 8h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h2V7a6 6 0 1 1 12 0v1Zm-7 7.732V18h2v-2.268a2 2 0 1 0-2 0ZM16 8V7a4 4 0 1 0-8 0v1h8Z"}))))},15992:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294),a=i(96266);let r=n.memo(e=>n.createElement(a.Z,e,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"price-tag-line_svg__tds-svg-icon--fill",viewBox:"0 0 24 24",...e},n.createElement("path",{d:"m10.9 2.1 9.9 1.415 1.413 9.9-9.192 9.192a1 1 0 0 1-1.414 0l-9.9-9.9a1 1 0 0 1 0-1.414L10.9 2.1Zm.707 2.122L3.828 12l8.486 8.485 7.778-7.778-1.06-7.425-7.425-1.06Zm2.12 6.364a2 2 0 1 1 2.83-2.829 2 2 0 0 1-2.83 2.829Z"}))))},3865:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294),a=i(96266);let r=n.memo(e=>n.createElement(a.Z,e,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"tree-line_svg__tds-svg-icon--fill",viewBox:"0 0 24 24",...e},n.createElement("path",{d:"m16.222 7.575.122 1.615 1.605.216C19.182 9.573 20 10.55 20 11.587c0 1.048-.84 2.035-2.078 2.182l-1.459.173-.271 1.444c-.125.666-.776 1.28-1.678 1.28a1.774 1.774 0 0 1-1.324-.57l-1.483-1.64-1.483 1.64c-.307.34-.776.57-1.323.57-1.026 0-1.7-.766-1.707-1.525v-.014c.001-.024.004-.089.004-.16v-1.531l-1.477-.4C4.668 12.751 4 11.866 4 10.922c0-1.087.908-2.114 2.232-2.199l1.525-.098.306-1.498C8.414 5.407 10.043 4 12.113 4c2.25 0 3.963 1.653 4.109 3.575ZM13 18.358c.462.198.974.309 1.514.309 1.82 0 3.333-1.257 3.644-2.912C20.32 15.498 22 13.73 22 11.587c0-2.123-1.644-3.874-3.784-4.163C17.986 4.394 15.342 2 12.113 2c-2.978 0-5.46 2.036-6.01 4.727C3.816 6.874 2 8.694 2 10.922c0 1.926 1.351 3.545 3.198 4.044 0 .028 0 .054-.002.08a1.844 1.844 0 0 0-.002.081c0 1.953 1.657 3.54 3.707 3.54.78 0 1.502-.23 2.099-.623v4.067a1 1 0 1 0 2 0v-3.753Z"}))))},6778:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"UserSubscriptionTabIframeTree"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tree"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"registryId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"projectSpecie"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[{kind:"Argument",name:{kind:"Name",value:"locale"},value:{kind:"Variable",name:{kind:"Name",value:"locale"}}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"scientificSpecie"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"scientificName"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"UserSubscriptionTabIframe"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pagination"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaginationInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"locale"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"subscriptions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"lastSubscriptionTree"},name:{kind:"Name",value:"subscriptionTrees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagination"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"1"}}]}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"EnumValue",value:"ASSIGNED_ON_DESC"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserSubscriptionTabIframeTree"},directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"subscriptionTrees"},arguments:[{kind:"Argument",name:{kind:"Name",value:"pagination"},value:{kind:"Variable",name:{kind:"Name",value:"pagination"}}},{kind:"Argument",name:{kind:"Name",value:"sort"},value:{kind:"EnumValue",value:"ASSIGNED_ON_ASC"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserSubscriptionTabIframeTree"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:928}};t.loc.source={body:"fragment UserSubscriptionTabIframeTree on Tree {\n  id\n  registryId\n  icon {\n    id\n    url\n  }\n  projectSpecie {\n    id\n    name(locale: $locale)\n    scientificSpecie {\n      id\n      scientificName\n    }\n  }\n}\n\nquery UserSubscriptionTabIframe(\n  $slug: String!\n  $pagination: PaginationInput!\n  $locale: String!\n) {\n  user(slug: $slug) {\n    id\n    subscriptions {\n      edges {\n        node {\n          id\n          state\n        }\n      }\n      totalCount\n    }\n    lastSubscriptionTree: subscriptionTrees(\n      pagination: { first: 1 }\n      sort: ASSIGNED_ON_DESC\n    ) {\n      edges {\n        node {\n          ...UserSubscriptionTabIframeTree\n        }\n      }\n    }\n    subscriptionTrees(pagination: $pagination, sort: ASSIGNED_ON_ASC) {\n      edges {\n        node {\n          ...UserSubscriptionTabIframeTree\n        }\n      }\n      totalCount\n      pageInfo {\n        endCursor\n        hasNextPage\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function n(e,t){for(var i=0;i<e.definitions.length;i++){var n=e.definitions[i];if(n.name&&n.name.value==t)return n}}function a(e,t){var a={kind:e.kind,definitions:[n(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=i[t]||new Set,s=new Set,o=new Set;for(r.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){s.has(e)||(s.add(e),(i[e]||new Set).forEach(function(e){o.add(e)}))})}
1return s.forEach(function(t){var i=n(e,t);i&&a.definitions.push(i)}),a}t.definitions.forEach(function(e){if(e.name){var t=new Set;(function e(t,i){if("FragmentSpread"===t.kind)i.add(t.name.value);else if("VariableDefinition"===t.kind){var n=t.type;"NamedType"===n.kind&&i.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,i)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,i)}),t.definitions&&t.definitions.forEach(function(t){e(t,i)})})(e,t),i[e.name.value]=t}}),e.exports=t,e.exports.UserSubscriptionTabIframeTree=a(t,"UserSubscriptionTabIframeTree"),e.exports.UserSubscriptionTabIframe=a(t,"UserSubscriptionTabIframe")},64396:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bff/user-subscription/[slug]",function(){return i(28625)}])},74640:function(e,t,i){"use strict";i.d(t,{s:function(){return s}});var n=i(85893),a=i(67294),r=i(80007);let s=e=>{let{onHidden:t,onVisible:i,children:s,...o}=e,[l,c]=(0,r.X)();return(0,a.useEffect)(()=>{c&&(null==i||i()),c||null==t||t()},[c]),(0,n.jsx)("div",{ref:l,...o,children:s})}},28625:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return $},default:function(){return Y}});var n,a,r,s,o=i(85893),l=i(67294),c=i(93967),d=i.n(c),u=i(84545),m=i(52026),v=i(36220),p=i(94680),f=i(3865),g=i(15992),h=i(6812),x=i(91992),b=i(10786),k=i(98756),N=i(66580),_=i(54602),S=i(4170),w=i.n(S);let y=e=>{let t=e.replace(/^#/,"");return 3===t.length?{red:parseInt(t[0]+t[0],16),green:parseInt(t[1]+t[1],16),blue:parseInt(t[2]+t[2],16)}:{red:parseInt(t.substring(0,2),16),green:parseInt(t.substring(2,4),16),blue:parseInt(t.substring(4,6),16)}},j=e=>{let{title:t,description:i,icon:n,cta:a,color:r,className:s}=e,{red:l,green:c,blue:u}=y(r),m={"--color":[l,c,u].join(", ")};return(0,o.jsxs)("div",{className:d()(w().root,s),style:m,children:[(0,o.jsx)("div",{className:w().icon,children:n}),(0,o.jsxs)("div",{className:w().content,children:[(0,o.jsx)(v.r,{variant:"h5",children:t}),(0,o.jsx)(v.r,{variant:"caption",className:w().description,children:i}),a&&(0,o.jsx)(p.z,{style:{color:r},classNameExtended:w().cta,variant:"text",onClick:()=>(0,_.o)({name:null==a?void 0:a.message}),children:a.label})]})]})};var T=i(74044),C=i.n(T);let F=e=>{let{title:t,children:i,variant:n="green",className:a}=e;return(0,o.jsxs)("div",{className:d()(C().root,a,{[C().green]:"green"===n,[C().grayscale]:"grayscale"===n}),children:[(0,o.jsxs)("div",{className:C().content,children:[(0,o.jsx)(v.r,{variant:"h5",className:C().title,children:t}),(0,o.jsx)("div",{className:C().children,children:i})]}),(0,o.jsx)("div",{className:C().band})]})};var E=i(25675),V=i.n(E),M=i(11163),I=i.n(M),q=i(3522),z=i.n(q);function Z(){return(Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var A=function(e){return l.createElement("svg",Z({xmlns:"http://www.w3.org/2000/svg",width:58,height:64,fill:"none"},e),n||(n=l.createElement("path",{fill:"#9FA4AB",d:"M33.13 63.712c-1.62-10.01-1.766-24.03-1.337-28.705a.1.1 0 0 0 0-.029.1.1 0 0 1 0-.028c-.093-.247-3.812-.445-4.877-.445-1.129 0-2.023.218-2.023.486a.15.15 0 0 0 .044.1c.239 2.603.514 7.387.579 12.84a146 146 0 0 1-.575 15.785z"})),a||(a=l.createElement("path",{fill:"#707680",d:"M57.142 27.264c0-5.865-4.635-10.71-10.65-11.503C45.85 7.39 38.399.785 29.32.785c-8.382 0-15.38 5.618-16.906 13.061C5.961 14.251.857 19.278.857 25.43c0 5.315 3.81 9.787 8.998 11.171v.446c0 5.399 4.667 9.778 10.426 9.778a10.7 10.7 0 0 0 7.897-3.396 10.68 10.68 0 0 0 7.893 3.396c5.124 0 9.382-3.469 10.256-8.038 6.091-.725 10.815-5.606 10.815-11.523"})),r||(r=l.createElement("path",{fill:"#fff",d:"M26.04 29.505q0-1.536.675-2.518.675-1.013 1.965-2.21.891-.829 1.32-1.382.43-.583.43-1.228 0-.89-.767-1.412-.737-.552-1.935-.553a4.4 4.4 0 0 0-2.24.584 4.5 4.5 0 0 0-1.597 1.627l-4.575-2.456q1.26-2.149 3.562-3.347t5.557-1.197q3.653 0 5.863 1.535 2.241 1.504 2.241 4.237 0 1.259-.43 2.24a6.2 6.2 0 0 1-1.043 1.628q-.584.645-1.535 1.474-1.044.89-1.535 1.535a2.24 2.24 0 0 0-.491 1.443zm2.732 8.105q-1.505 0-2.487-.922-.981-.952-.982-2.302 0-1.381.952-2.272.983-.89 2.517-.89 1.536 0 2.518.89t.982 2.272q0 1.35-.982 2.302-.982.922-2.518.922"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var O=function(e){return l.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:34,he
1ight:11,fill:"none"},e),s||(s=l.createElement("path",{fill:"#485D6A",d:"M5.22 10.378q-2.017 0-3.403-1.344T.431 5.632q0-2.1 1.344-3.402Q3.161.928 5.22.928q2.1 0 3.444 1.302 1.345 1.302 1.345 3.402 0 2.058-1.387 3.402-1.344 1.344-3.402 1.344m11.894 0q-2.016 0-3.402-1.344t-1.386-3.402q0-2.1 1.344-3.402Q15.056.928 17.114.928q2.1 0 3.444 1.302t1.344 3.402q0 2.058-1.386 3.402-1.344 1.344-3.402 1.344m11.895 0q-2.017 0-3.402-1.344T24.22 5.632q0-2.1 1.343-3.402Q26.95.928 29.01.928q2.1 0 3.444 1.302t1.343 3.402q0 2.058-1.386 3.402-1.344 1.344-3.401 1.344"})))};let B=e=>{let{variant:t,size:i="big",tree:n,className:a,shadow:r}=e,{t:s}=(0,u.$G)(),c=(0,l.useMemo)(()=>{let e=s("profile.user.subscription.trees.tree",{defaultValue:"Tree"});switch(t){case"tree":var i,a;return null!==(a=null==n?void 0:null===(i=n.projectSpecie)||void 0===i?void 0:i.name)&&void 0!==a?a:e;case"more-trees":return s("profile.user.subscription.trees.more-trees",{defaultValue:"More trees"});default:return e}},[s,t,n]),m=(0,l.useMemo)(()=>{switch(t){case"tree":return n?(0,o.jsx)(V(),{src:n.icon.url,alt:c,width:"big"===i?160:105,height:"big"===i?160:105,unoptimized:!0}):(0,o.jsx)(A,{});case"more-trees":return(0,o.jsx)("div",{className:z().moreTrees,children:(0,o.jsx)(O,{})});default:return(0,o.jsx)(A,{})}},[t,n,c,i]),p=e=>()=>{I().push(x.PATHS.dashboard.premium.trees.tree(e))};return(0,o.jsxs)("div",{className:d()(z().root,a,{[z().big]:"big"===i,[z().green]:"tree"===t,[z().grayscale]:"tree"!==t,[z().shadow]:r}),children:[(0,o.jsx)("div",{className:z().band}),(0,o.jsxs)("div",{className:z().content,children:[(0,o.jsx)("div",{className:z().icon,children:m}),(0,o.jsxs)("div",{children:[(0,o.jsx)(v.r,{variant:"h5",className:z().title,children:c}),(null==n?void 0:n.projectSpecie.scientificSpecie.scientificName)&&(0,o.jsx)(v.r,{className:z().scientificName,children:n.projectSpecie.scientificSpecie.scientificName})]})]}),"tree"===t&&(0,o.jsx)("button",{type:"button",className:z().button,onClick:()=>{(0,_.o)({name:"user-subscription-tree",payload:{treeId:null==n?void 0:n.id}}),(null==n?void 0:n.registryId)&&p(null==n?void 0:n.registryId)}})]})};var U=i(26176),D=i(74640),K=i(77870),G=i.n(K);let L=(e,t)=>t?e%2:e%3==0?0:3-e%3,Q=e=>{let{trees:t,isMobile:i,onLoadMore:n,canLoadMore:a,className:r}=e,s=(0,l.useMemo)(()=>[...Array(i?1:2).fill(0).map((e,t)=>(0,o.jsx)(B,{variant:"unknown"},"last-row-unknown-".concat(t))),(0,o.jsx)(B,{variant:"more-trees"},"last-row-more-trees")],[i]),c=(0,l.useMemo)(()=>{let e=t.map(e=>(0,o.jsx)("div",{className:G().card,children:(0,o.jsx)(B,{variant:"tree",tree:e,className:G().treeCard})},e.id));return[...e,...Array(L(e.length,i)).fill(0).map((e,t)=>(0,o.jsx)(B,{variant:"unknown"},"unknown-".concat(t)))]},[t,i]);return(0,o.jsxs)("div",{className:d()(G().root,r),children:[c,a?(0,o.jsx)(D.s,{onVisible:n,className:d()(G().loader,{[G().desktop]:!i}),children:(0,o.jsx)(U.a,{variant:"primary",size:"large"})}):s]})};var W=i(6778),R=i.n(W),H=i(98081),J=i.n(H);let X=e=>{var t,i,n,a,r,s,c,S,w;let{isMobile:y,slug:T}=e,C=(0,b.b)(),{t:E}=(0,u.$G)(),{data:V,fetchMore:M}=(0,h.aM)(R(),{client:N.uM,variables:{locale:C,pagination:{first:12},slug:T}}),I=null==V?void 0:V.user.subscriptionTrees,q=(0,l.useMemo)(()=>{var e,t;return null!==(t=null==I?void 0:null===(e=I.edges)||void 0===e?void 0:e.map(e=>e.node))&&void 0!==t?t:[]},[I]),z=!!(null==I?void 0:I.pageInfo.hasNextPage),Z=(null==V?void 0:null===(a=V.user)||void 0===a?void 0:null===(n=a.subscriptions)||void 0===n?void 0:null===(i=n.edges)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.node.state)===k.pVe.Canceled,A=(0,l.useCallback)(async()=>{let e=null==I?void 0:I.pageInfo.endCursor;await M({variables:{locale:C,pagination:{first:12,after:e},slug:T},updateQuery:(e,t)=>{let{fetchMoreResult:i}=t,{pageInfo:n,edges:a,totalCount:r}=i.user.subscriptionTrees;return{user:{...e.user,subscriptionTrees:{pageInfo:n,edges:[...e.user.subscriptionTrees.edges,...a],totalCount:r}}}}})},[null==I?void 0:I.pageInfo.endCursor,M,C,T]),P=null==V?void 0:null===(c=V.user.lastSubscriptionTree)||void 0===c?void 0:null===(s=c.edges)||void 0===s?void 0:null===(r=s[0])||void 0===r?void 0:r.no
1de,O=(0,l.useMemo)(()=>{var e,t;return{title:E("profile.user.subscription.title"),badge:{trees:{title:E("common.trees",{count:null!==(t=null==V?void 0:null===(e=V.user.subscriptionTrees)||void 0===e?void 0:e.totalCount)&&void 0!==t?t:0,defaultValue:"{{count}} trees"}),description:E("profile.user.subscription.badge.trees.description",{defaultValue:"Trees you've planted until now"})},benefits:{title:E("profile.user.subscription.badge.benefits.title",{defaultValue:"Benefits for subscribers"}),description:E("profile.user.subscription.badge.benefits.description",{defaultValue:"Discover your benefits thanks to exclusive discounts on our partner websites dedicated to you."}),cta:{label:E("profile.user.subscription.badge.benefits.cta",{defaultValue:"Discover"}),url:x.PATHS.settings.certificate}}},lastReceivedTree:E("profile.user.subscription.last-received-tree",{defaultValue:"Last received tree"}),whatWillBeNext:E("profile.user.subscription.what-will-be-next",{defaultValue:"What will be next?"}),trees:{title:E("profile.user.subscription.trees.title",{defaultValue:"Trees"}),description:E("profile.user.subscription.trees.description",{defaultValue:"Here you will find the list of trees you have planted thanks to your subscription."})},modal:{title:E("profile.user.subscription.modal.title",{defaultValue:"Reactivate a subscription"}),description:E("profile.user.subscription.modal.description",{defaultValue:"It seems like you have deactivated your subscription. Your tree collection is temporarily darkened. Reactivate your subscription to unlock it and keep collecting trees."}),cta:E("profile.user.subscription.modal.cta",{defaultValue:"Subscribe"})}}},[null==V?void 0:null===(S=V.user.subscriptionTrees)||void 0===S?void 0:S.totalCount,E]);return(0,o.jsxs)("div",{className:d()(J().root,{[J().desktop]:!y}),children:[Z&&(0,o.jsx)("div",{className:J().reactivateModal,children:(0,o.jsxs)("div",{className:J().reactivateModalContent,children:[(0,o.jsx)(m.Z,{size:"xlarge",color:"white"}),(0,o.jsx)(v.r,{variant:"h4",className:J().modalTitle,children:O.modal.title}),(0,o.jsx)(v.r,{className:J().modalDescription,children:O.modal.description}),(0,o.jsx)(p.z,{classNameExtended:J().modalCta,onClick:()=>(0,_.o)({name:"user-subscription-reactivate"}),children:O.modal.cta})]})}),(0,o.jsxs)("div",{className:d()(J().content,{[J().blur]:Z}),children:[(0,o.jsx)(v.r,{variant:"h4",className:J().title,children:O.title}),(0,o.jsxs)("div",{className:J().badges,children:[(0,o.jsx)(j,{icon:(0,o.jsx)(f.Z,{}),title:O.badge.trees.title,description:O.badge.trees.description,color:"#3498DB",className:J().treesBadge}),(0,o.jsx)(j,{icon:(0,o.jsx)(g.Z,{}),title:O.badge.benefits.title,description:O.badge.benefits.description,color:"#F39C12",cta:{label:O.badge.benefits.cta.label,message:"user-subscription-benefits"},className:J().benefitsBadge})]}),(0,o.jsxs)("div",{className:J().treeCards,children:[(0,o.jsx)(F,{title:O.lastReceivedTree,variant:"green",className:J().treeCard,children:(0,o.jsx)(B,{variant:"tree",size:"small",tree:P,shadow:!0})}),(0,o.jsx)(F,{title:O.whatWillBeNext,variant:"grayscale",className:J().treeCard,children:(0,o.jsx)(B,{variant:"unknown",size:"small",shadow:!0})})]}),V&&(null===(w=V.user.subscriptionTrees)||void 0===w?void 0:w.totalCount)>0&&(0,o.jsxs)("div",{className:J().treesListContainer,children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(v.r,{variant:"h5",className:J().treesListTitle,children:O.trees.title}),!y&&(0,o.jsx)(v.r,{className:J().treesListTitle,gutterTop:!0,children:O.trees.description})]}),(0,o.jsx)(Q,{trees:q,isMobile:y,onLoadMore:A,canLoadMore:z,className:J().treesList})]})]})]})};var $=!0,Y=e=>{let{slug:t,view:i}=e;return(0,o.jsx)(X,{isMobile:"mobile"===i,slug:t})}},54602:function(e,t,i){"use strict";i.d(t,{o:function(){return a}});var n=i(98220);let a=e=>{let t=window.opener||window.parent||window;try{t.postMessage(e)}catch(t){n.k.error("error posting message",e,t)}}},98081:function(e){e.exports={root:"TKjMBx",title:"MWOEVp",badges:"ZPNeCU",treesBadge:"VcSp2p",benefitsBadge:"_0JaPv1",treeCards:"dW7uSF",treeCard:"Gqu9If",treesListContainer:"b8_8JK",reactivateModal:"w3OKKV",reactivateModalContent:"uwqsQJ",modalTitle:"SH1uuQ",modalDescription:"PzhjnC",modalCta:"hD5yHP",desktop:"Tao70f",treesList:"dHpRVp",blur:"_4k3c45"}},4170:function(e){e.exports={root:"J_wBAX",icon:"yGv8TO",description:"_01AoYz",cta:"bYuNLa"}},3522:function(e){e.exports={root:"_8LqPOE",big:"bm83gJ",band:"MmfQhj",icon:"_k4x9X",green:"yF4uQ8",grayscale:"hEpKHV",title:"WRlpHM",scientificName:"NnkMAF",shadow:"nY_s0V",content:"_QB2oB",moreTrees:"UEHI6f",button:"YPMWVw"}},74044:function(e){e.exports={root:"jqyu5j",green:"oT7tIf",band:"m3r7FV",grayscale:"RfrF3t",content:"r9hQ6q",children:"WMU93Q",title:"Q_586m"}},77870:function(e){e.exports={root:"G78u1w",loader:"LOZ026",desktop:"sCQN_r"}},80007:function(e,t,i){"use strict";i.d(t,{X:function(){return s}});var n=i(67294),a=i(77777);let r={root:null,rootMargin:"0px 0px 0px 0px",threshold:[0,1]};function s(e,t){let i="function"==typeof e?e:a.Z,s="object"==typeof e?e:t||r,{root:o=null,rootMargin:l,threshold:c}
1=s,[d,u]=(0,n.useState)(null),[m,v]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(d){let e=new IntersectionObserver((e,t)=>{for(let{isIntersecting:t}of e)v(t);i(e,t)},s);return e.observe(d),()=>{e.disconnect()}}return a.Z},[d,i,o,l,c,s]),[(0,n.useCallback)(e=>{u(e)},[]),m]}},77777:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});let n=()=>{}}},function(e){e.O(0,[25675,6812,92888,49774,40179],function(){return e(e.s=64396)}),_N_E=e.O()}]);
2//# sourceMappingURL=[slug]-aa33f0955c6a513b.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.