@planningcenter/organization-avatars 0.1.0-pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Planning Center
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Organization Avatars
2
+
3
+ This package provides a React component that can be used for uploading and editing an organization's light mode and dark mode avatars.
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),B=require("react-dom"),D=require("@planningcenter/url"),N=require("@planningcenter/tapestry"),A=require("@planningcenter/icons/paths/general"),L=require("@planningcenter/icons/paths/services"),P=require("react-dropzone");function S(a){var o,r,t="";if(typeof a=="string"||typeof a=="number")t+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(o=0;o<c;o++)a[o]&&(r=S(a[o]))&&(t&&(t+=" "),t+=r)}else for(r in a)a[r]&&(t&&(t+=" "),t+=r);return t}function $(){for(var a,o,r=0,t="",c=arguments.length;r<c;r++)(a=arguments[r])&&(o=S(a))&&(t&&(t+=" "),t+=o);return t}const T=a=>a==="dark_mode_avatar"?"dark":"light";function z({avatarUrl:a,organization:o,mode:r,pcoApp:t,pcoEnv:c,csrfToken:f,onAvatarUpdate:x}){const[n,m]=i.useState(null),[d,v]=i.useState(a),[l,g]=i.useState(!1),[j,u]=i.useState(""),_=i.useId(),C=i.useRef(null),b=T(r),F=h=>{const[s]=h;s&&m(Object.assign(s,{preview:URL.createObjectURL(s)}))};i.useEffect(()=>{v(a)},[a]),i.useEffect(()=>()=>{n?.preview&&(URL.revokeObjectURL(n.preview),u(""))},[n]);const k=async h=>{const s=await fetch(D.pcoApiUrl(t,{env:c}),{method:"PATCH",headers:{"Content-Type":"application/json","X-CSRF-Token":f,Accept:"application/json"},body:JSON.stringify({data:{attributes:h}})}),p=await s.json();if(!s.ok)throw p;return p},q=async h=>{if(h.preventDefault(),!(!n||l)){g(!0);try{const s=new FileReader,p=await new Promise((w,U)=>{s.onloadend=()=>w(s.result),s.onerror=U,s.readAsDataURL(n)}),y=await k({[r]:p,[`${r}_cache`]:""});v(y.data.attributes[r].url),m(null),x(r,y.data.attributes[r].url),C.current?.close()}catch{u("We were unable to save your avatar.")}finally{g(!1)}}},M=async()=>{if(!l){g(!0);try{await k({[`remove_${r}`]:"1"}),v(""),x(r,""),C.current?.close()}catch{u("We were unable to delete your avatar.")}finally{g(!1)}}},O=()=>{m(null),u("")};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"pco-org-avatar",children:[e.jsx("button",{type:"button",commandfor:_,command:"show-modal",className:`pco-org-avatar__button pco-org-avatar__button--${b}`,children:d?e.jsxs(e.Fragment,{children:[e.jsx("img",{src:d,alt:`Church logo for ${o}`}),e.jsx("span",{children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:A.pencil})})})]}):e.jsx("svg",{width:"48",height:"48",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:L.image})})}),e.jsxs("div",{className:"pco-org-avatar__label",children:[b," mode"]})]}),B.createPortal(e.jsx("dialog",{id:_,ref:C,className:"dialog",onClose:O,children:e.jsxs("form",{onSubmit:q,children:[e.jsxs("div",{className:"dialog__header",children:[e.jsxs("h1",{className:"dialog__title",children:["Church logo — ",b," mode"]}),e.jsx("button",{type:"button",commandfor:_,command:"close",className:"dialog__close","aria-label":"Close modal",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:A.smallX})})})]}),e.jsxs("div",{className:"dialog__body",children:[j&&e.jsxs("div",{role:"alert",className:"alert alert--danger mb-2",children:[e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",className:"symbol","aria-hidden":"true",children:e.jsx("path",{d:A.exclamationTriangle})}),e.jsx("div",{className:"alert__content",children:e.jsx("p",{children:j})})]}),e.jsx(P,{accept:{"image/*":[".jpg",".jpeg",".png"]},multiple:!1,onDropAccepted:F,children:({getRootProps:h,getInputProps:s,isFocused:p,isDragAccept:y,isDragReject:w,isDragActive:U})=>{const R=$("pco-org-avatar__dropzone",`pco-org-avatar__dropzone--${b}`,{"pco-org-avatar__dropzone--image":n||d,"pco-org-avatar__dropzone--focused":p,"pco-org-avatar__dropzone--accepted":y,"pco-org-avatar__dropzone--rejected":U&&w});return e.jsxs("div",{...h({className:R}),children:[e.jsx("input",{...s()}),n?e.jsx("img",{src:n.preview,alt:`Church logo for ${o}`}):d?e.jsx("img",{src:d,alt:`Church logo for ${o}`}):e.jsxs(e.Fragment,{children:[e.jsx("svg",{width:"64",height:"64",viewBox:"0 0 16 16","aria-hidden":"true",children:e.jsx("path",{d:A.toCloudArrow})}),U&&w?e.jsxs(e.Fragment,{children:[e.jsx("h2",{children:"Wrong file type"}),e.jsx("p",{children:"Please upload a PNG or JPG file."})]}):e.jsxs(e.Fragment,{children:[e.jsx("h2",{children:"Add church logo"}),e.jsx("p",{children:"Use a high-quality image (up to 20mb) with a transparent background."})]})]})]})}})]}),e.jsxs("div",{className:"dialog__actions",children:[d&&e.jsx(N.Button,{label:"Delete logo",kind:"delete",onClick:M,loading:l,disabled:l,className:"mr-a"}),e.jsx(N.Button,{type:"button",label:"Cancel",commandfor:_,command:"close",disabled:l}),e.jsx(N.Button,{type:"submit",label:"Update logo",kind:"primary",loading:l,disabled:!n||l})]})]})}),document.body)]})}function I({avatarUrl:a,darkModeAvatarUrl:o,orgName:r,pcoApp:t,pcoEnv:c,csrfToken:f,showDarkModeAvatar:x=!1}){const[n,m]=i.useState(a),[d,v]=i.useState(o),l=(j,u)=>{j==="avatar"?m(u):j==="dark_mode_avatar"&&v(u)},g=d||n;return e.jsxs("div",{className:"d-f g-1",children:[e.jsx(z,{avatarUrl:n,organization:r,mode:"avatar",pcoApp:t,pcoEnv:c,csrfToken:f,onAvatarUpdate:l}),x&&e.jsx(z,{avatarUrl:g,organization:r,mode:"dark_mode_avatar",pcoApp:t,pcoEnv:c,csrfToken:f,onAvatarUpdate:l})]})}exports.OrganizationAvatars=I;
@@ -0,0 +1,2 @@
1
+ export { OrganizationAvatars } from "./organization_avatars";
2
+ export type { OrganizationAvatarsProps } from "./types";
package/dist/index.js ADDED
@@ -0,0 +1,331 @@
1
+ import { jsxs as o, Fragment as b, jsx as e } from "react/jsx-runtime";
2
+ import { useState as m, useId as P, useRef as S, useEffect as M } from "react";
3
+ import { createPortal as I } from "react-dom";
4
+ import { pcoApiUrl as T } from "@planningcenter/url";
5
+ import { Button as j } from "@planningcenter/tapestry";
6
+ import { pencil as W, smallX as G, exclamationTriangle as J, toCloudArrow as X } from "@planningcenter/icons/paths/general";
7
+ import { image as q } from "@planningcenter/icons/paths/services";
8
+ import E from "react-dropzone";
9
+ function R(a) {
10
+ var l, r, t = "";
11
+ if (typeof a == "string" || typeof a == "number") t += a;
12
+ else if (typeof a == "object") if (Array.isArray(a)) {
13
+ var c = a.length;
14
+ for (l = 0; l < c; l++) a[l] && (r = R(a[l])) && (t && (t += " "), t += r);
15
+ } else for (r in a) a[r] && (t && (t += " "), t += r);
16
+ return t;
17
+ }
18
+ function H() {
19
+ for (var a, l, r = 0, t = "", c = arguments.length; r < c; r++) (a = arguments[r]) && (l = R(a)) && (t && (t += " "), t += l);
20
+ return t;
21
+ }
22
+ const K = (a) => a === "dark_mode_avatar" ? "dark" : "light";
23
+ function D({
24
+ avatarUrl: a,
25
+ organization: l,
26
+ mode: r,
27
+ pcoApp: t,
28
+ pcoEnv: c,
29
+ csrfToken: y,
30
+ onAvatarUpdate: w
31
+ }) {
32
+ const [i, g] = m(null), [s, f] = m(a), [d, v] = m(!1), [_, h] = m(""), U = P(), z = S(null), C = K(r), F = (u) => {
33
+ const [n] = u;
34
+ n && g(
35
+ Object.assign(n, {
36
+ preview: URL.createObjectURL(n)
37
+ })
38
+ );
39
+ };
40
+ M(() => {
41
+ f(a);
42
+ }, [a]), M(() => () => {
43
+ i?.preview && (URL.revokeObjectURL(i.preview), h(""));
44
+ }, [i]);
45
+ const x = async (u) => {
46
+ const n = await fetch(T(t, { env: c }), {
47
+ method: "PATCH",
48
+ headers: {
49
+ "Content-Type": "application/json",
50
+ "X-CSRF-Token": y,
51
+ Accept: "application/json"
52
+ },
53
+ body: JSON.stringify({
54
+ data: {
55
+ attributes: u
56
+ }
57
+ })
58
+ }), p = await n.json();
59
+ if (!n.ok) throw p;
60
+ return p;
61
+ }, L = async (u) => {
62
+ if (u.preventDefault(), !(!i || d)) {
63
+ v(!0);
64
+ try {
65
+ const n = new FileReader(), p = await new Promise((k, N) => {
66
+ n.onloadend = () => k(n.result), n.onerror = N, n.readAsDataURL(i);
67
+ }), A = await x({
68
+ [r]: p,
69
+ [`${r}_cache`]: ""
70
+ });
71
+ f(A.data.attributes[r].url), g(null), w(r, A.data.attributes[r].url), z.current?.close();
72
+ } catch {
73
+ h("We were unable to save your avatar.");
74
+ } finally {
75
+ v(!1);
76
+ }
77
+ }
78
+ }, O = async () => {
79
+ if (!d) {
80
+ v(!0);
81
+ try {
82
+ await x({
83
+ [`remove_${r}`]: "1"
84
+ }), f(""), w(r, ""), z.current?.close();
85
+ } catch {
86
+ h("We were unable to delete your avatar.");
87
+ } finally {
88
+ v(!1);
89
+ }
90
+ }
91
+ }, $ = () => {
92
+ g(null), h("");
93
+ };
94
+ return /* @__PURE__ */ o(b, { children: [
95
+ /* @__PURE__ */ o("div", { className: "pco-org-avatar", children: [
96
+ /* @__PURE__ */ e(
97
+ "button",
98
+ {
99
+ type: "button",
100
+ commandfor: U,
101
+ command: "show-modal",
102
+ className: `pco-org-avatar__button pco-org-avatar__button--${C}`,
103
+ children: s ? /* @__PURE__ */ o(b, { children: [
104
+ /* @__PURE__ */ e("img", { src: s, alt: `Church logo for ${l}` }),
105
+ /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
106
+ "svg",
107
+ {
108
+ width: "16",
109
+ height: "16",
110
+ viewBox: "0 0 16 16",
111
+ fill: "currentColor",
112
+ "aria-hidden": "true",
113
+ children: /* @__PURE__ */ e("path", { d: W })
114
+ }
115
+ ) })
116
+ ] }) : /* @__PURE__ */ e(
117
+ "svg",
118
+ {
119
+ width: "48",
120
+ height: "48",
121
+ viewBox: "0 0 16 16",
122
+ fill: "currentColor",
123
+ "aria-hidden": "true",
124
+ children: /* @__PURE__ */ e("path", { d: q })
125
+ }
126
+ )
127
+ }
128
+ ),
129
+ /* @__PURE__ */ o("div", { className: "pco-org-avatar__label", children: [
130
+ C,
131
+ " mode"
132
+ ] })
133
+ ] }),
134
+ I(
135
+ /* @__PURE__ */ e(
136
+ "dialog",
137
+ {
138
+ id: U,
139
+ ref: z,
140
+ className: "dialog",
141
+ onClose: $,
142
+ children: /* @__PURE__ */ o("form", { onSubmit: L, children: [
143
+ /* @__PURE__ */ o("div", { className: "dialog__header", children: [
144
+ /* @__PURE__ */ o("h1", { className: "dialog__title", children: [
145
+ "Church logo — ",
146
+ C,
147
+ " mode"
148
+ ] }),
149
+ /* @__PURE__ */ e(
150
+ "button",
151
+ {
152
+ type: "button",
153
+ commandfor: U,
154
+ command: "close",
155
+ className: "dialog__close",
156
+ "aria-label": "Close modal",
157
+ children: /* @__PURE__ */ e(
158
+ "svg",
159
+ {
160
+ width: "16",
161
+ height: "16",
162
+ viewBox: "0 0 16 16",
163
+ fill: "currentColor",
164
+ "aria-hidden": "true",
165
+ children: /* @__PURE__ */ e("path", { d: G })
166
+ }
167
+ )
168
+ }
169
+ )
170
+ ] }),
171
+ /* @__PURE__ */ o("div", { className: "dialog__body", children: [
172
+ _ && /* @__PURE__ */ o("div", { role: "alert", className: "alert alert--danger mb-2", children: [
173
+ /* @__PURE__ */ e(
174
+ "svg",
175
+ {
176
+ width: "16",
177
+ height: "16",
178
+ viewBox: "0 0 16 16",
179
+ className: "symbol",
180
+ "aria-hidden": "true",
181
+ children: /* @__PURE__ */ e("path", { d: J })
182
+ }
183
+ ),
184
+ /* @__PURE__ */ e("div", { className: "alert__content", children: /* @__PURE__ */ e("p", { children: _ }) })
185
+ ] }),
186
+ /* @__PURE__ */ e(
187
+ E,
188
+ {
189
+ accept: { "image/*": [".jpg", ".jpeg", ".png"] },
190
+ multiple: !1,
191
+ onDropAccepted: F,
192
+ children: ({
193
+ getRootProps: u,
194
+ getInputProps: n,
195
+ isFocused: p,
196
+ isDragAccept: A,
197
+ isDragReject: k,
198
+ isDragActive: N
199
+ }) => {
200
+ const B = H(
201
+ "pco-org-avatar__dropzone",
202
+ `pco-org-avatar__dropzone--${C}`,
203
+ {
204
+ "pco-org-avatar__dropzone--image": i || s,
205
+ "pco-org-avatar__dropzone--focused": p,
206
+ "pco-org-avatar__dropzone--accepted": A,
207
+ "pco-org-avatar__dropzone--rejected": N && k
208
+ }
209
+ );
210
+ return /* @__PURE__ */ o("div", { ...u({ className: B }), children: [
211
+ /* @__PURE__ */ e("input", { ...n() }),
212
+ i ? /* @__PURE__ */ e(
213
+ "img",
214
+ {
215
+ src: i.preview,
216
+ alt: `Church logo for ${l}`
217
+ }
218
+ ) : s ? /* @__PURE__ */ e(
219
+ "img",
220
+ {
221
+ src: s,
222
+ alt: `Church logo for ${l}`
223
+ }
224
+ ) : /* @__PURE__ */ o(b, { children: [
225
+ /* @__PURE__ */ e(
226
+ "svg",
227
+ {
228
+ width: "64",
229
+ height: "64",
230
+ viewBox: "0 0 16 16",
231
+ "aria-hidden": "true",
232
+ children: /* @__PURE__ */ e("path", { d: X })
233
+ }
234
+ ),
235
+ N && k ? /* @__PURE__ */ o(b, { children: [
236
+ /* @__PURE__ */ e("h2", { children: "Wrong file type" }),
237
+ /* @__PURE__ */ e("p", { children: "Please upload a PNG or JPG file." })
238
+ ] }) : /* @__PURE__ */ o(b, { children: [
239
+ /* @__PURE__ */ e("h2", { children: "Add church logo" }),
240
+ /* @__PURE__ */ e("p", { children: "Use a high-quality image (up to 20mb) with a transparent background." })
241
+ ] })
242
+ ] })
243
+ ] });
244
+ }
245
+ }
246
+ )
247
+ ] }),
248
+ /* @__PURE__ */ o("div", { className: "dialog__actions", children: [
249
+ s && /* @__PURE__ */ e(
250
+ j,
251
+ {
252
+ label: "Delete logo",
253
+ kind: "delete",
254
+ onClick: O,
255
+ loading: d,
256
+ disabled: d,
257
+ className: "mr-a"
258
+ }
259
+ ),
260
+ /* @__PURE__ */ e(
261
+ j,
262
+ {
263
+ type: "button",
264
+ label: "Cancel",
265
+ commandfor: U,
266
+ command: "close",
267
+ disabled: d
268
+ }
269
+ ),
270
+ /* @__PURE__ */ e(
271
+ j,
272
+ {
273
+ type: "submit",
274
+ label: "Update logo",
275
+ kind: "primary",
276
+ loading: d,
277
+ disabled: !i || d
278
+ }
279
+ )
280
+ ] })
281
+ ] })
282
+ }
283
+ ),
284
+ document.body
285
+ )
286
+ ] });
287
+ }
288
+ function oe({
289
+ avatarUrl: a,
290
+ darkModeAvatarUrl: l,
291
+ orgName: r,
292
+ pcoApp: t,
293
+ pcoEnv: c,
294
+ csrfToken: y,
295
+ showDarkModeAvatar: w = !1
296
+ }) {
297
+ const [i, g] = m(a), [s, f] = m(
298
+ l
299
+ ), d = (_, h) => {
300
+ _ === "avatar" ? g(h) : _ === "dark_mode_avatar" && f(h);
301
+ };
302
+ return /* @__PURE__ */ o("div", { className: "d-f g-1", children: [
303
+ /* @__PURE__ */ e(
304
+ D,
305
+ {
306
+ avatarUrl: i,
307
+ organization: r,
308
+ mode: "avatar",
309
+ pcoApp: t,
310
+ pcoEnv: c,
311
+ csrfToken: y,
312
+ onAvatarUpdate: d
313
+ }
314
+ ),
315
+ w && /* @__PURE__ */ e(
316
+ D,
317
+ {
318
+ avatarUrl: s || i,
319
+ organization: r,
320
+ mode: "dark_mode_avatar",
321
+ pcoApp: t,
322
+ pcoEnv: c,
323
+ csrfToken: y,
324
+ onAvatarUpdate: d
325
+ }
326
+ )
327
+ ] });
328
+ }
329
+ export {
330
+ oe as OrganizationAvatars
331
+ };
@@ -0,0 +1,2 @@
1
+ import type { OrganizationAvatarProps } from "./types";
2
+ export declare function OrganizationAvatar({ avatarUrl, organization, mode, pcoApp, pcoEnv, csrfToken, onAvatarUpdate, }: OrganizationAvatarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { OrganizationAvatarsProps } from "./types";
2
+ export declare function OrganizationAvatars({ avatarUrl: initialAvatarUrl, darkModeAvatarUrl: initialDarkModeAvatarUrl, orgName, pcoApp, pcoEnv, csrfToken, showDarkModeAvatar, }: OrganizationAvatarsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ export type OrganizationAvatarsProps = {
2
+ avatarUrl?: string;
3
+ darkModeAvatarUrl?: string;
4
+ orgName: string;
5
+ pcoApp: string;
6
+ pcoEnv?: string;
7
+ csrfToken: string;
8
+ showDarkModeAvatar?: boolean;
9
+ };
10
+ export type OrganizationAvatarProps = {
11
+ avatarUrl?: string;
12
+ organization: string;
13
+ mode: "avatar" | "dark_mode_avatar";
14
+ pcoApp: string;
15
+ pcoEnv?: string;
16
+ csrfToken: string;
17
+ onAvatarUpdate: (attrName: string, newUrl: string) => void;
18
+ };
19
+ export type FileWithPreview = File & {
20
+ preview: string;
21
+ };
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@planningcenter/organization-avatars",
3
+ "version": "0.1.0-pre",
4
+ "description": "Organization avatar upload components for Planning Center apps",
5
+ "type": "module",
6
+ "packageManager": "yarn@1.22.22",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs"
15
+ },
16
+ "./style.css": "./dist/style.css"
17
+ },
18
+ "files": [
19
+ "dist/",
20
+ "README.md"
21
+ ],
22
+ "scripts": {
23
+ "dev": "vite --config vite.config.docs.ts",
24
+ "build:lib": "vite build --config vite.config.lib.ts && tsc --project tsconfig.lib.json && cp src/organization_avatar.css dist/style.css",
25
+ "build:docs": "vite build --config vite.config.docs.ts"
26
+ },
27
+ "devDependencies": {
28
+ "@planningcenter/icons": "^15.28.0",
29
+ "@planningcenter/tapestry": "^2.8.0",
30
+ "@types/react": "^19.2.10",
31
+ "@types/react-dom": "^19.2.3",
32
+ "react": "^19.2.4",
33
+ "react-dom": "^19.2.4",
34
+ "typescript": "^5.9.3",
35
+ "vite": "^7.3.1"
36
+ },
37
+ "dependencies": {
38
+ "clsx": "^2.1.1"
39
+ },
40
+ "peerDependencies": {
41
+ "@planningcenter/icons": "^15.26.0",
42
+ "@planningcenter/tapestry": "^2.7.0",
43
+ "@planningcenter/url": "^3.1.0",
44
+ "react": "^18.0.0",
45
+ "react-dom": "^18.0.0",
46
+ "react-dropzone": "^14.0.0"
47
+ }
48
+ }