diff --git a/.plasmic/plasmic/ravi_r_r/PlasmicReviewCard.tsx b/.plasmic/plasmic/ravi_r_r/PlasmicReviewCard.tsx index 20d1f36f..ca5ac718 100644 --- a/.plasmic/plasmic/ravi_r_r/PlasmicReviewCard.tsx +++ b/.plasmic/plasmic/ravi_r_r/PlasmicReviewCard.tsx @@ -89,6 +89,8 @@ import RepliesIcon from "../fragment_icons/icons/PlasmicIcon__Replies"; // plasm import HeartIcon from "../fragment_icons/icons/PlasmicIcon__Heart"; // plasmic-import: WTtCf_1I-uMv/icon import BoldheartIcon from "../fragment_icons/icons/PlasmicIcon__Boldheart"; // plasmic-import: eZfYsLpdWQA_/icon +import __fn_splunkEvent from "@/common/services/plasmicSplunkEvent"; // plasmic-import: splunkEvent/customFunction + createPlasmicElementProxy; export type PlasmicReviewCard__VariantMembers = {}; @@ -174,7 +176,9 @@ export interface DefaultReviewCardProps { className?: string; } -const $$ = {}; +const $$ = { + splunkEvent: __fn_splunkEvent +}; function useNextRouter() { try { @@ -388,6 +392,34 @@ function PlasmicReviewCard__RenderFunc(props: { ) { $steps["runCode"] = await $steps["runCode"]; } + + $steps["splunk"] = true + ? (() => { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id + }, + type: "share_comment", + token: "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }} > { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id, + edit_text: $state.edditTextBox.value + }, + type: "edit_comment", + token: + "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }} startIcon={ { - try { - return true; - } catch (e) { - if ( - e instanceof TypeError || - e?.plasmicType === "PlasmicUndefinedDataError" - ) { - return true; - } - throw e; - } - })() ? ( - + + +
- - -
- {"\u0648\u06cc\u0631\u0627\u06cc\u0634"} -
- - ) : null + {"\u0648\u06cc\u0631\u0627\u06cc\u0634"} +
+
} /> ) : null} @@ -950,6 +992,35 @@ function PlasmicReviewCard__RenderFunc(props: { ) { $steps["close"] = await $steps["close"]; } + + $steps["splunk"] = true + ? (() => { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id + }, + type: "delete_comment", + token: + "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }} startIcon={ { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id, + doc_center + }, + type: "like_comment", + token: "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }} > {(() => { @@ -2097,6 +2197,36 @@ function PlasmicReviewCard__RenderFunc(props: { ) { $steps["login"] = await $steps["login"]; } + + $steps["splunk"] = + $state.reportText.value.length >= 10 && $ctx.auth.isLogin + ? (() => { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id, + report_text: $state.reportText.value + }, + type: "report_comment", + token: "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }} startIcon={ { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id, + sort: $state.sortInput.value + }, + type: "sort_comment", + token: "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }).apply(null, eventArgs); }} options={(() => { @@ -489,6 +518,35 @@ function PlasmicReviewList__RenderFunc(props: { ) { $steps["runOnSearch"] = await $steps["runOnSearch"]; } + + $steps["splunk"] = true + ? (() => { + const actionArgs = { + customFunction: async () => { + return $$.splunkEvent({ + group: "feedback", + data: { + doctor_id, + comment_id, + search_text: $state.searchInput.value + }, + type: "search_in_comment", + token: "f4fd4b50-fe90-48f3-a1ab-5a5070140318" + }); + } + }; + return (({ customFunction }) => { + return customFunction(); + })?.apply(null, [actionArgs]); + })() + : undefined; + if ( + $steps["splunk"] != null && + typeof $steps["splunk"] === "object" && + typeof $steps["splunk"].then === "function" + ) { + $steps["splunk"] = await $steps["splunk"]; + } }).apply(null, eventArgs); }} placeholder={ diff --git a/plasmic.json b/plasmic.json index e6a399d4..69ab6f9c 100644 --- a/plasmic.json +++ b/plasmic.json @@ -602,7 +602,8 @@ "name": "splunkEvent", "namespace": null } - ] + ], + "jsBundleThemes": [] }, { "projectId": "YUiM7yqBWAqsh8KSnrdj7", @@ -908,8 +909,7 @@ "name": "splunkEvent", "namespace": null } - ], - "jsBundleThemes": [] + ] }, { "projectId": "9Vr5YWkf3w7jj6SsTcCEta", diff --git a/plasmic.lock b/plasmic.lock index f2374837..e1db9bd9 100644 --- a/plasmic.lock +++ b/plasmic.lock @@ -433,142 +433,142 @@ { "type": "renderModule", "assetId": "hjUuvN6lhrZV", - "checksum": "9af260893818e7f71c7341a166c409c3" + "checksum": "59cae709b715ad0e83a170925cff5e44" }, { "type": "cssRules", "assetId": "hjUuvN6lhrZV", - "checksum": "9af260893818e7f71c7341a166c409c3" + "checksum": "59cae709b715ad0e83a170925cff5e44" }, { "type": "renderModule", "assetId": "qY29Y1sogsUa", - "checksum": "53e9a14e198652e961968e9826fcc07e" + "checksum": "8b9821faa148a5090d9b0cc88637f403" }, { "type": "cssRules", "assetId": "qY29Y1sogsUa", - "checksum": "53e9a14e198652e961968e9826fcc07e" + "checksum": "8b9821faa148a5090d9b0cc88637f403" }, { "type": "renderModule", "assetId": "Bx6gxTOoja9k", - "checksum": "7886c71cf126f22a3ce3cf5d606d57ba" + "checksum": "25312ea1a334e2990963918e77241a01" }, { "type": "cssRules", "assetId": "Bx6gxTOoja9k", - "checksum": "7886c71cf126f22a3ce3cf5d606d57ba" + "checksum": "25312ea1a334e2990963918e77241a01" }, { "type": "renderModule", "assetId": "u3Jgb_UfiULc", - "checksum": "f8dc4e006acda8dd196e457666f40be6" + "checksum": "2226aacfb01322b5040a160a4bcf3561" }, { "type": "cssRules", "assetId": "u3Jgb_UfiULc", - "checksum": "f8dc4e006acda8dd196e457666f40be6" + "checksum": "2226aacfb01322b5040a160a4bcf3561" }, { "type": "renderModule", "assetId": "YorKPsj5-KCA", - "checksum": "a1f53199e1f05a56fd7c644f5f31c8b5" + "checksum": "ba58783a1698618d9e4267b9562d45cc" }, { "type": "cssRules", "assetId": "YorKPsj5-KCA", - "checksum": "a1f53199e1f05a56fd7c644f5f31c8b5" + "checksum": "ba58783a1698618d9e4267b9562d45cc" }, { "type": "renderModule", "assetId": "TCDI-OnXQFr9", - "checksum": "0b83bb4ed593ff9ac3a2bb49d6ef9de8" + "checksum": "f15a54e1d98fdb45c0dc45b95c1d761c" }, { "type": "cssRules", "assetId": "TCDI-OnXQFr9", - "checksum": "0b83bb4ed593ff9ac3a2bb49d6ef9de8" + "checksum": "f15a54e1d98fdb45c0dc45b95c1d761c" }, { "type": "renderModule", "assetId": "dtSZu4xyXUej", - "checksum": "18e239ac298ad59df6e1815bbc605fc4" + "checksum": "9f022884e648381643062fd127f3e339" }, { "type": "cssRules", "assetId": "dtSZu4xyXUej", - "checksum": "18e239ac298ad59df6e1815bbc605fc4" + "checksum": "9f022884e648381643062fd127f3e339" }, { "type": "renderModule", "assetId": "iKLtt-X_YZoa", - "checksum": "d59e1571a8dccc63645a7ab9ca39bb76" + "checksum": "626917384ea51bb18573a70322a5a30e" }, { "type": "cssRules", "assetId": "iKLtt-X_YZoa", - "checksum": "d59e1571a8dccc63645a7ab9ca39bb76" + "checksum": "626917384ea51bb18573a70322a5a30e" }, { "type": "renderModule", "assetId": "zIWWWwAA3-2B", - "checksum": "6fb5cd0a1d6f24dcf74e3a79ec207615" + "checksum": "93eaa329174b2304d0d6f97e46cf83c1" }, { "type": "cssRules", "assetId": "zIWWWwAA3-2B", - "checksum": "6fb5cd0a1d6f24dcf74e3a79ec207615" + "checksum": "93eaa329174b2304d0d6f97e46cf83c1" }, { "type": "renderModule", "assetId": "sV_mee6VG9G8", - "checksum": "36b42a8b4b80c375a2129e787120f7b6" + "checksum": "3834e27dc86b82abe31eac033ea4d9ee" }, { "type": "cssRules", "assetId": "sV_mee6VG9G8", - "checksum": "36b42a8b4b80c375a2129e787120f7b6" + "checksum": "3834e27dc86b82abe31eac033ea4d9ee" }, { "type": "renderModule", "assetId": "2zJ5Um1a_BM7", - "checksum": "8ac63e0f82b07eb2c0e83dcfbe359d65" + "checksum": "084f2ec0cf92c1d20d88d569d2a788ea" }, { "type": "cssRules", "assetId": "2zJ5Um1a_BM7", - "checksum": "8ac63e0f82b07eb2c0e83dcfbe359d65" + "checksum": "084f2ec0cf92c1d20d88d569d2a788ea" }, { "type": "renderModule", "assetId": "vFHey9elqn-I", - "checksum": "71307e1b76630267474a4c060096ef36" + "checksum": "7c163407f2486365684dd783b54f6881" }, { "type": "cssRules", "assetId": "vFHey9elqn-I", - "checksum": "71307e1b76630267474a4c060096ef36" + "checksum": "7c163407f2486365684dd783b54f6881" }, { "type": "renderModule", "assetId": "ZewL2B_Ktxrj", - "checksum": "daa18c9b21e42e0bfabcf8ae39ac961d" + "checksum": "9fe49efaffd38ede3f97a6f2baace622" }, { "type": "cssRules", "assetId": "ZewL2B_Ktxrj", - "checksum": "daa18c9b21e42e0bfabcf8ae39ac961d" + "checksum": "9fe49efaffd38ede3f97a6f2baace622" }, { "type": "renderModule", "assetId": "WD65zwC-xphy", - "checksum": "f5ed62fd9ae448e37b9b7a38dab4905d" + "checksum": "c1fc12ce30fdc26d597164d34d16a5c8" }, { "type": "cssRules", "assetId": "WD65zwC-xphy", - "checksum": "f5ed62fd9ae448e37b9b7a38dab4905d" + "checksum": "c1fc12ce30fdc26d597164d34d16a5c8" }, { "type": "icon",