bitsnap-react 1.4.15 → 1.6.0
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/README.md +153 -0
- package/dist/chunk-O4ICBP4G.mjs +2 -0
- package/dist/chunk-O4ICBP4G.mjs.map +1 -0
- package/dist/chunk-U6FLIRIV.mjs +2 -0
- package/dist/errors.d.mts +2 -0
- package/dist/errors.d.ts +2 -0
- package/dist/errors.mjs +1 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +464 -0
- package/dist/index.d.ts +464 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal.d.mts +2 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.mjs +1 -1
- package/dist/internal.mjs.map +1 -1
- package/dist/models.d.mts +592 -0
- package/dist/models.d.ts +592 -0
- package/dist/models.js +1 -1
- package/dist/models.js.map +1 -1
- package/dist/models.mjs +1 -1
- package/dist/models.mjs.map +1 -1
- package/dist/returns.d.mts +417 -0
- package/dist/returns.d.ts +417 -0
- package/dist/returns.js +2 -0
- package/dist/returns.js.map +1 -0
- package/dist/returns.mjs +2 -0
- package/dist/returns.mjs.map +1 -0
- package/package.json +48 -7
- package/dist/chunk-43KBVYBT.mjs +0 -2
- /package/dist/{chunk-43KBVYBT.mjs.map → chunk-U6FLIRIV.mjs.map} +0 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/components/checkout/ApplePay.tsx","../src/public.api.client.ts","../src/gen/proto/public/v1/public_api_pb.ts","../src/gen/proto/common/v1/address_pb.ts","../src/gen/proto/common/v1/gateway_pb.ts","../src/gen/proto/common/v1/push_notifications_pb.ts","../src/gen/proto/dashboard/v1/audiobooks_pb.ts","../src/panel/components/PanelLogin.tsx","../src/lib/utils.ts","../src/rpc-provider.tsx","../src/components/checkout/constants.ts","../src/gen/proto/dashboard/v1/notifications-NotificationsService_connectquery.ts","../src/gen/proto/dashboard/v1/notifications_pb.ts","../src/gen/proto/dashboard/v1/product_pb.ts","../src/gen/proto/public/v1/public_api-PublicApiService_connectquery.ts","../src/ui/button.tsx","../src/ui/card.tsx","../src/ui/input.tsx","../src/ui/input-otp.tsx","../src/ui/label.tsx","../src/panel/LoadingIndicator.tsx","../src/panel/config.ts","../src/panel/PanelProvider.tsx","../src/panel/return-url.ts","../src/panel/components/PanelPage.tsx","../src/panel/hooks/useUrlSearchParams.ts","../src/ui/switch.tsx","../src/panel/components/PanelNotifications.tsx","../src/ui/pagination.tsx","../src/ui/skeleton.tsx","../src/panel/components/PanelOrderHistory.tsx","../src/panel/components/PanelPlans.tsx","../src/panel/components/PanelProductGrid.tsx","../src/lib/render.text.tsx","../src/panel/components/PanelProductDetails.tsx","../src/panel/audio-player/AudioPlayer.tsx","../src/panel/audio-player/media.session.coordinator.ts","../src/panel/components/ProgressBar.tsx","../src/panel/components/PanelProductHeader.tsx","../src/panel/components/PanelProfile.tsx","../src/panel/components/PublicOrderPage.tsx","../src/ui/textarea.tsx","../src/components/checkout/CartProvider.tsx","../src/components/checkout/frontent.analytics.ts","../src/components/checkout/lib/round.number.ts","../src/components/checkout/google.pay.mapper.ts","../src/components/checkout/helper.methods.ts","../src/components/checkout/lib/err.ts","../src/components/checkout/state.ts","../src/components/checkout/methods.ts","../src/components/checkout/locale.ts","../src/components/checkout/BitsnapCart.tsx","../src/components/checkout/CartComponent.tsx","../src/components/checkout/CartComponentContent.tsx","../src/components/checkout/CountrySelector.tsx","../src/ui/select.tsx","../src/components/checkout/SingleProduct.tsx","../src/ui/button-group.tsx","../src/components/checkout/Skeleton.tsx","../src/ui/spinner.tsx","../src/components/checkout/GooglePay.tsx","../src/components/notifications/NotificationsComponentPublic.tsx","../src/components/notifications/constants.tsx","../src/components/notifications/NotificationHeader.tsx","../src/components/notifications/NotificationGroupsList.tsx","../src/ui/popover.tsx","../src/components/notifications/HowOftenComponent.tsx","../src/components/notifications/QRCodeSection.tsx","../src/components/notifications/AddUserToGroups.tsx","../src/components/notifications/FormInput.tsx","../src/components/notifications/ManageMyData.tsx","../src/components/notifications/UnsubscribeDialog.tsx","../src/components/notifications/LoginScreen.tsx","../src/ui/dialog.tsx"],"sourcesContent":["import \"./global.css\";\n\nexport * from \"./components\";\n","import ApplePayButton from \"apple-pay-button\";\nimport { PublicApiClient } from \"src/public.api.client\";\nimport CartProvider, { getProjectID, useCartProvider } from \"./CartProvider\";\nimport { HOST } from \"./constants\";\nimport { isErr } from \"./lib/err\";\nimport { round } from \"./lib/round.number\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\n\ntype AppleButtonType =\n | \"plain\"\n | \"add-money\"\n | \"book\"\n | \"buy\"\n | \"check-out\"\n | \"continue\"\n | \"contribute\"\n | \"donate\"\n | \"order\"\n | \"pay\"\n | \"reload\"\n | \"rent\"\n | \"set-up\"\n | \"subscribe\"\n | \"support\"\n | \"tip\"\n | \"top-up\";\ntype ColorType = \"black\" | \"white\" | \"white-outline\";\n\nexport type Props = {\n style?: {\n width?: string;\n height?: string;\n borderRadius?: string;\n padding?: string;\n boxSizing?: string;\n };\n buttonType?: AppleButtonType;\n colorType?: ColorType;\n items: {\n name: string;\n id: string;\n price: number;\n quantity: number;\n isDeliverable?: boolean;\n metadata?: { [key: string]: string | undefined };\n }[];\n onClick?: () => Promise<void>;\n};\n\nfunction ApplePayButtonComponent({\n style,\n buttonType,\n colorType,\n items,\n onClick,\n}: Props) {\n const {\n checkIfApplePayIsAvailable,\n getApplePayPaymentRequest,\n completeApplePayPayment,\n setCountry,\n setCouponCodeIfPossible,\n setDeliveryMethod,\n setEmail,\n setPostalCode,\n clearCart,\n } = useCartProvider();\n const { data: isApplePayAvailable } = useQuery({\n queryKey: [\"is-apple-pay-available\"],\n queryFn: checkIfApplePayIsAvailable,\n });\n if (isApplePayAvailable != true) {\n return null;\n }\n\n const expectedItems = items.map((el) => ({\n productID: el.id,\n quantity: el.quantity,\n metadata: el.metadata,\n }));\n\n async function beginSession() {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: items.map((el) => ({\n id: el.id,\n name: el.name,\n price: el.price,\n quantity: el.quantity,\n currency: \"PLN\",\n })),\n });\n const requiresShipping =\n items.find((el) => el.isDeliverable === true) != null;\n const session = new ApplePaySession(14, {\n countryCode: \"PL\",\n merchantCapabilities: [\"supports3DS\"],\n supportedNetworks: [\"visa\", \"masterCard\"],\n currencyCode: \"PLN\",\n total: {\n amount: `${round(\n items.reduce((acc, item) => acc + item.price * item.quantity, 0) /\n 100,\n 2\n )}`,\n label: \"Płatność za koszyk\",\n type: \"pending\",\n },\n lineItems: [\n ...items.map(\n (item) =>\n ({\n amount: `${round((item.price * item.quantity) / 100, 2)}`,\n label: item.name,\n type: \"final\",\n } as ApplePayJS.ApplePayLineItem)\n ),\n requiresShipping\n ? ({\n amount: `16.99`,\n type: \"pending\",\n label: \"Dostawa\",\n } as ApplePayJS.ApplePayLineItem)\n : undefined,\n ].filter((el) => el != null),\n ...(requiresShipping\n ? {\n shippingMethods: [],\n supportsCouponCode: true,\n requiredBillingContactFields: [\n \"name\",\n \"email\",\n \"postalAddress\",\n \"phone\",\n ],\n requiredShippingContactFields: [\n \"name\",\n \"email\",\n \"postalAddress\",\n \"phone\",\n ],\n }\n : {}),\n });\n await onClick?.();\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n if (isErr(apRequest)) {\n console.error(\"Error creating ApplePaySession:\", apRequest.error);\n return;\n }\n\n session.oncancel = (event) => {\n console.log(\"ApplePaySession cancelled\", event);\n };\n\n session.onvalidatemerchant = async (event) => {\n try {\n const result = await PublicApiClient.get(HOST).applePayValidateMerchant(\n {\n validationUrl: event.validationURL,\n projectId: getProjectID(),\n }\n );\n console.log(\"merchantSession\", result.merchantSession);\n if (result.merchantSession.length > 0) {\n console.log(\"completing merchant session\");\n session.completeMerchantValidation(\n JSON.parse(result.merchantSession)\n );\n } else {\n session.abort();\n }\n } catch (error) {\n session.abort;\n }\n };\n\n session.onshippingmethodselected = async (event) => {\n console.log(\"shipping method selected\", event);\n await setDeliveryMethod(event.shippingMethod.identifier);\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n console.log(\"apRequest\", apRequest);\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n session.completeShippingMethodSelection({\n newTotal: apRequest.total,\n newLineItems: apRequest.lineItems,\n newShippingMethods: apRequest.shippingMethods,\n });\n };\n session.onshippingcontactselected = async (event) => {\n try {\n if (event.shippingContact.countryCode != null) {\n await setCountry(event.shippingContact.countryCode);\n }\n if (event.shippingContact.postalCode != null) {\n await setPostalCode(event.shippingContact.postalCode);\n }\n if (event.shippingContact.phoneNumber != null) {\n await setEmail(event.shippingContact.emailAddress);\n }\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n console.log(\"apRequest\", apRequest);\n session.completeShippingContactSelection({\n newLineItems: apRequest.lineItems,\n newTotal: apRequest.total,\n newShippingMethods: apRequest.shippingMethods,\n });\n } catch (error) {\n console.log(\"shipping contact selected error\", error);\n session.abort();\n }\n };\n\n session.oncouponcodechanged = async (event) => {\n try {\n console.log(\"coupon code changed\", event);\n const result = await setCouponCodeIfPossible(event.couponCode);\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n console.log(\"apRequest\", apRequest);\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n session.completeCouponCodeChange({\n errors: isErr(result)\n ? [new ApplePayError(\"couponCodeInvalid\")]\n : undefined,\n newTotal: apRequest.total,\n newLineItems: apRequest.lineItems,\n newShippingMethods: apRequest.shippingMethods,\n });\n } catch (error) {\n console.log(\"coupon code changed error\", error);\n session.abort();\n }\n };\n\n session.onpaymentauthorized = async (event) => {\n try {\n const result = await completeApplePayPayment({\n token: event.payment.token,\n billingContact: event.payment.billingContact,\n shippingContact: event.payment.shippingContact,\n });\n if (isErr(result)) {\n console.log(\"apple pay error\", result);\n session.completePayment({\n status: ApplePaySession.STATUS_FAILURE,\n });\n return;\n }\n\n if (result.redirectURL) {\n setTimeout(() => {\n open(result.redirectURL, \"_self\");\n }, 2000);\n }\n session.completePayment({\n status: result.isSuccess\n ? ApplePaySession.STATUS_SUCCESS\n : ApplePaySession.STATUS_FAILURE,\n });\n\n result.isSuccess && clearCart();\n } catch (e) {\n session.completePayment({\n status: ApplePaySession.STATUS_FAILURE,\n });\n }\n // event.complete(ApplePaySession.STATUS_SUCCESS);\n };\n\n session.begin();\n }\n\n return (\n <ApplePayButton\n style={style}\n buttonStyle={colorType}\n type={buttonType}\n onClick={beginSession}\n />\n );\n}\n\nfunction Wrapper(props: Props) {\n return (\n <>\n <CartProvider>\n <ApplePayButtonComponent {...props} />\n </CartProvider>\n </>\n );\n}\nexport default Wrapper;\n","import type { Transport } from \"@connectrpc/connect\";\nimport { createClient, type Client } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { PublicApiService } from \"./gen/proto/public/v1/public_api_pb\";\n\nexport namespace PublicApiClient {\n export function get(host: string): Client<typeof PublicApiService> {\n return createClient(PublicApiService, getTransport(host));\n }\n\n let transport: Transport | undefined;\n function getTransport(host: string): Transport {\n if (transport == null) {\n transport = createConnectTransport({\n useBinaryFormat: true,\n baseUrl: host + \"/api/rpc\",\n });\n }\n return transport;\n }\n}\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Address, BillingAddress } from \"../../common/v1/address_pb\";\nimport { file_common_v1_address } from \"../../common/v1/address_pb\";\nimport type { Gateway } from \"../../common/v1/gateway_pb\";\nimport { file_common_v1_gateway } from \"../../common/v1/gateway_pb\";\nimport type { NotificationEvent, NotificationGroupHowOften, PushNotificationDeviceToken } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Audiobook as Audiobook$1 } from \"../../dashboard/v1/audiobooks_pb\";\nimport { file_dashboard_v1_audiobooks } from \"../../dashboard/v1/audiobooks_pb\";\nimport type { Empty, EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/public_api.proto.\n */\nexport const file_public_v1_public_api: GenFile = /*@__PURE__*/\n fileDesc(\"ChpwdWJsaWMvdjEvcHVibGljX2FwaS5wcm90bxINcHVibGljX2FwaS52MSJLCiBVc2VyUGFuZWxHZXRDb3Vyc2VEZXRhaWxzUmVxdWVzdBIUCgxhY2Nlc3NfdG9rZW4YASABKAkSEQoJYWNjZXNzX2lkGAIgASgJIncKIVVzZXJQYW5lbEdldENvdXJzZURldGFpbHNSZXNwb25zZRIWCgxyZWRpcmVjdF91cmwYASABKAlIABIwCgdmYWlsdXJlGAIgASgOMh0ucHVibGljX2FwaS52MS5GYWlsdXJlTWVzc2FnZUgAQggKBnJlc3VsdCJ6ChBHZXRPcmRlcnNSZXF1ZXN0EhIKCnByb2plY3RfaWQYASABKAkSFAoMYWNjZXNzX3Rva2VuGAIgASgJEhIKBWxpbWl0GAMgASgFSACIAQESEwoGb2Zmc2V0GAQgASgFSAGIAQFCCAoGX2xpbWl0QgkKB19vZmZzZXQigwIKEUdldE9yZGVyc1Jlc3BvbnNlEj0KBm9yZGVycxgBIA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saWNfYXBpLnYxLk9uZUNsaWNrQXV0aG9yaXplUGF5bWVudFJlc3BvbnNlEnYKIk5vdGlmeVVzZXJBYm91dFByb2R1Y3RBdmFpbGFiaWxpdHkSOC5wdWJsaWNfYXBpLnYxLk5vdGlmeVVzZXJBYm91dFByb2R1Y3RBdmFpbGFiaWxpdHlSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EnIKFUdldFB1YmxpY09yZGVyRGV0YWlscxIrLnB1YmxpY19hcGkudjEuR2V0UHVibGljT3JkZXJEZXRhaWxzUmVxdWVzdBosLnB1YmxpY19hcGkudjEuR2V0UHVibGljT3JkZXJEZXRhaWxzUmVzcG9uc2UScgoVQWRkUHVibGljT3JkZXJDb21tZW50EisucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXF1ZXN0GiwucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXNwb25zZRJ1ChZHZXRPcmRlckZvclRlc3RpbW9uaWFsEiwucHVibGljX2FwaS52MS5HZXRPcmRlckZvclRlc3RpbW9uaWFsUmVxdWVzdBotLnB1YmxpY19hcGkudjEuR2V0T3JkZXJGb3JUZXN0aW1vbmlhbFJlc3BvbnNlEmYKEVN1Ym1pdFRlc3RpbW9uaWFsEicucHVibGljX2FwaS52MS5TdWJtaXRUZXN0aW1vbmlhbFJlcXVlc3QaKC5wdWJsaWNfYXBpLnYxLlN1Ym1pdFRlc3RpbW9uaWFsUmVzcG9uc2USeAoXR2V0VGVzdGltb25pYWxVcGxvYWRVcmwSLS5wdWJsaWNfYXBpLnYxLkdldFRlc3RpbW9uaWFsVXBsb2FkVXJsUmVxdWVzdBouLnB1YmxpY19hcGkudjEuR2V0VGVzdGltb25pYWxVcGxvYWRVcmxSZXNwb25zZWIGcHJvdG8z\", [file_common_v1_address, file_common_v1_gateway, file_common_v1_push_notifications, file_dashboard_v1_audiobooks, file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsRequest\n */\nexport type UserPanelGetCourseDetailsRequest = Message<\"public_api.v1.UserPanelGetCourseDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsRequest.\n * Use `create(UserPanelGetCourseDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsRequestSchema: GenMessage<UserPanelGetCourseDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsResponse\n */\nexport type UserPanelGetCourseDetailsResponse = Message<\"public_api.v1.UserPanelGetCourseDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetCourseDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: string redirect_url = 1;\n */\n value: string;\n case: \"redirectUrl\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsResponse.\n * Use `create(UserPanelGetCourseDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsResponseSchema: GenMessage<UserPanelGetCourseDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from message public_api.v1.GetOrdersRequest\n */\nexport type GetOrdersRequest = Message<\"public_api.v1.GetOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * @generated from field: optional int32 limit = 3;\n */\n limit?: number;\n\n /**\n * @generated from field: optional int32 offset = 4;\n */\n offset?: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersRequest.\n * Use `create(GetOrdersRequestSchema)` to create a new message.\n */\nexport const GetOrdersRequestSchema: GenMessage<GetOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse\n */\nexport type GetOrdersResponse = Message<\"public_api.v1.GetOrdersResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetOrdersResponse.OrderSummary orders = 1;\n */\n orders: GetOrdersResponse_OrderSummary[];\n\n /**\n * @generated from field: int32 total_count = 2;\n */\n totalCount: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.\n * Use `create(GetOrdersResponseSchema)` to create a new message.\n */\nexport const GetOrdersResponseSchema: GenMessage<GetOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse.OrderSummary\n */\nexport type GetOrdersResponse_OrderSummary = Message<\"public_api.v1.GetOrdersResponse.OrderSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * @generated from field: int32 total_amount = 3;\n */\n totalAmount: number;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: string customer_name = 6;\n */\n customerName: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.OrderSummary.\n * Use `create(GetOrdersResponse_OrderSummarySchema)` to create a new message.\n */\nexport const GetOrdersResponse_OrderSummarySchema: GenMessage<GetOrdersResponse_OrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 3, 0);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableRequest\n */\nexport type IsOneClickPaymentAvailableRequest = Message<\"public_api.v1.IsOneClickPaymentAvailableRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableRequest.\n * Use `create(IsOneClickPaymentAvailableRequestSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableRequestSchema: GenMessage<IsOneClickPaymentAvailableRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 4);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse\n */\nexport type IsOneClickPaymentAvailableResponse = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse\"> & {\n /**\n * @generated from field: bool inpost_pay = 1;\n */\n inpostPay: boolean;\n\n /**\n * @generated from field: bool apple_pay = 2;\n */\n applePay: boolean;\n\n /**\n * @generated from field: bool google_pay = 3;\n */\n googlePay: boolean;\n\n /**\n * @generated from field: optional public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig google_pay_config = 4;\n */\n googlePayConfig?: IsOneClickPaymentAvailableResponse_GooglePayConfig;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.\n * Use `create(IsOneClickPaymentAvailableResponseSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponseSchema: GenMessage<IsOneClickPaymentAvailableResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\n */\nexport type IsOneClickPaymentAvailableResponse_GooglePayConfig = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\"> & {\n /**\n * @generated from field: string merchant_id = 1;\n */\n merchantId: string;\n\n /**\n * @generated from field: string merchant_name = 2;\n */\n merchantName: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: string gateway_merchant_id = 4;\n */\n gatewayMerchantId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig.\n * Use `create(IsOneClickPaymentAvailableResponse_GooglePayConfigSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponse_GooglePayConfigSchema: GenMessage<IsOneClickPaymentAvailableResponse_GooglePayConfig> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentRequest\n */\nexport type OneClickAuthorizePaymentRequest = Message<\"public_api.v1.OneClickAuthorizePaymentRequest\"> & {\n /**\n * @generated from field: public_api.v1.OneClickAuthorizePaymentRequest.Gateway gateway = 1;\n */\n gateway: OneClickAuthorizePaymentRequest_Gateway;\n\n /**\n * @generated from field: string paymentData = 2;\n */\n paymentData: string;\n\n /**\n * @generated from field: string paymentMethod = 3;\n */\n paymentMethod: string;\n\n /**\n * @generated from field: string transactionIdentifier = 4;\n */\n transactionIdentifier: string;\n\n /**\n * @generated from field: public_api.v1.GetPreOrderDetailsRequest order = 5;\n */\n order?: GetPreOrderDetailsRequest;\n\n /**\n * @generated from field: optional common.v1.Address shipping_address = 6;\n */\n shippingAddress?: Address;\n\n /**\n * @generated from field: optional common.v1.BillingAddress billing_address = 7;\n */\n billingAddress?: BillingAddress;\n\n /**\n * @generated from field: optional string metadata = 8;\n */\n metadata?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentRequest.\n * Use `create(OneClickAuthorizePaymentRequestSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentRequestSchema: GenMessage<OneClickAuthorizePaymentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 6);\n\n/**\n * @generated from enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway\n */\nexport enum OneClickAuthorizePaymentRequest_Gateway {\n /**\n * @generated from enum value: APPLE_PAY = 0;\n */\n APPLE_PAY = 0,\n\n /**\n * @generated from enum value: GOOGLE_PAY = 1;\n */\n GOOGLE_PAY = 1,\n}\n\n/**\n * Describes the enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway.\n */\nexport const OneClickAuthorizePaymentRequest_GatewaySchema: GenEnum<OneClickAuthorizePaymentRequest_Gateway> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 6, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentResponse\n */\nexport type OneClickAuthorizePaymentResponse = Message<\"public_api.v1.OneClickAuthorizePaymentResponse\"> & {\n /**\n * @generated from field: bool is_success = 1;\n */\n isSuccess: boolean;\n\n /**\n * @generated from field: string redirect_url = 2;\n */\n redirectUrl: string;\n\n /**\n * @generated from field: string transaction_id = 3;\n */\n transactionId: string;\n\n /**\n * @generated from field: optional string apple_pay_tracking_url = 4;\n */\n applePayTrackingUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentResponse.\n * Use `create(OneClickAuthorizePaymentResponseSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentResponseSchema: GenMessage<OneClickAuthorizePaymentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7);\n\n/**\n * @generated from message public_api.v1.PreOrderItem\n */\nexport type PreOrderItem = Message<\"public_api.v1.PreOrderItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.PreOrderItem.\n * Use `create(PreOrderItemSchema)` to create a new message.\n */\nexport const PreOrderItemSchema: GenMessage<PreOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 8);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsRequest\n */\nexport type GetPreOrderDetailsRequest = Message<\"public_api.v1.GetPreOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.PreOrderItem items = 2;\n */\n items: PreOrderItem[];\n\n /**\n * @generated from field: optional string country_code = 3;\n */\n countryCode?: string;\n\n /**\n * @generated from field: optional string post_code = 4;\n */\n postCode?: string;\n\n /**\n * We can check if coupon code is available.\n *\n * @generated from field: optional string couponCode = 5;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string email = 6;\n */\n email?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 7;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional string phone = 8;\n */\n phone?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsRequest.\n * Use `create(GetPreOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsRequestSchema: GenMessage<GetPreOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 9);\n\n/**\n * @generated from message public_api.v1.DeliveryMethod\n */\nexport type DeliveryMethod = Message<\"public_api.v1.DeliveryMethod\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 4;\n */\n description?: string;\n\n /**\n * @generated from field: optional int32 min_days = 5;\n */\n minDays?: number;\n\n /**\n * @generated from field: optional int32 max_days = 6;\n */\n maxDays?: number;\n};\n\n/**\n * Describes the message public_api.v1.DeliveryMethod.\n * Use `create(DeliveryMethodSchema)` to create a new message.\n */\nexport const DeliveryMethodSchema: GenMessage<DeliveryMethod> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsResponse\n */\nexport type GetPreOrderDetailsResponse = Message<\"public_api.v1.GetPreOrderDetailsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.DeliveryMethod methods = 1;\n */\n methods: DeliveryMethod[];\n\n /**\n * @generated from field: optional string couponCode = 2;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 3;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional int32 total_amount = 4;\n */\n totalAmount?: number;\n\n /**\n * @generated from field: optional int32 coupon_value = 5;\n */\n couponValue?: number;\n\n /**\n * Mainly use for Google Pay\n *\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: string country = 7;\n */\n country: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsResponse.\n * Use `create(GetPreOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsResponseSchema: GenMessage<GetPreOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 11);\n\n/**\n * @generated from message public_api.v1.NotifyUserAboutProductAvailabilityRequest\n */\nexport type NotifyUserAboutProductAvailabilityRequest = Message<\"public_api.v1.NotifyUserAboutProductAvailabilityRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message public_api.v1.NotifyUserAboutProductAvailabilityRequest.\n * Use `create(NotifyUserAboutProductAvailabilityRequestSchema)` to create a new message.\n */\nexport const NotifyUserAboutProductAvailabilityRequestSchema: GenMessage<NotifyUserAboutProductAvailabilityRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 12);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantRequest\n */\nexport type ApplePayValidateMerchantRequest = Message<\"public_api.v1.ApplePayValidateMerchantRequest\"> & {\n /**\n * @generated from field: string validation_url = 1;\n */\n validationUrl: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantRequest.\n * Use `create(ApplePayValidateMerchantRequestSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantRequestSchema: GenMessage<ApplePayValidateMerchantRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 13);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantResponse\n */\nexport type ApplePayValidateMerchantResponse = Message<\"public_api.v1.ApplePayValidateMerchantResponse\"> & {\n /**\n * @generated from field: string merchant_session = 1;\n */\n merchantSession: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantResponse.\n * Use `create(ApplePayValidateMerchantResponseSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantResponseSchema: GenMessage<ApplePayValidateMerchantResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductRequest\n */\nexport type GetAvailableCountForProductRequest = Message<\"public_api.v1.GetAvailableCountForProductRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string all_variants = 2;\n */\n allVariants: string[];\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductRequest.\n * Use `create(GetAvailableCountForProductRequestSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductRequestSchema: GenMessage<GetAvailableCountForProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse\n */\nexport type GetAvailableCountForProductResponse = Message<\"public_api.v1.GetAvailableCountForProductResponse\"> & {\n /**\n * @generated from field: map<string, public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct> available_counts = 1;\n */\n availableCounts: { [key: string]: GetAvailableCountForProductResponse_AvailableCountForProduct };\n\n /**\n * @generated from field: optional public_api.v1.GetAvailableCountForProductResponse.Error error = 2;\n */\n error?: GetAvailableCountForProductResponse_Error;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.\n * Use `create(GetAvailableCountForProductResponseSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponseSchema: GenMessage<GetAvailableCountForProductResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\n */\nexport type GetAvailableCountForProductResponse_AvailableCountForProduct = Message<\"public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\"> & {\n /**\n * @generated from field: int32 available_quantity_to_order = 1;\n */\n availableQuantityToOrder: number;\n\n /**\n * @generated from field: bool can_back = 2;\n */\n canBack: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct.\n * Use `create(GetAvailableCountForProductResponse_AvailableCountForProductSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponse_AvailableCountForProductSchema: GenMessage<GetAvailableCountForProductResponse_AvailableCountForProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16, 0);\n\n/**\n * @generated from enum public_api.v1.GetAvailableCountForProductResponse.Error\n */\nexport enum GetAvailableCountForProductResponse_Error {\n /**\n * @generated from enum value: ERROR_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: ERROR_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE = 2;\n */\n PRODUCT_NOT_AVAILABLE = 2,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3;\n */\n PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3,\n}\n\n/**\n * Describes the enum public_api.v1.GetAvailableCountForProductResponse.Error.\n */\nexport const GetAvailableCountForProductResponse_ErrorSchema: GenEnum<GetAvailableCountForProductResponse_Error> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 16, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelDeleteAccountRequest\n */\nexport type UserPanelDeleteAccountRequest = Message<\"public_api.v1.UserPanelDeleteAccountRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelDeleteAccountRequest.\n * Use `create(UserPanelDeleteAccountRequestSchema)` to create a new message.\n */\nexport const UserPanelDeleteAccountRequestSchema: GenMessage<UserPanelDeleteAccountRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 17);\n\n/**\n * @generated from message public_api.v1.DidBuyProductRequest\n */\nexport type DidBuyProductRequest = Message<\"public_api.v1.DidBuyProductRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n};\n\n/**\n * Describes the message public_api.v1.DidBuyProductRequest.\n * Use `create(DidBuyProductRequestSchema)` to create a new message.\n */\nexport const DidBuyProductRequestSchema: GenMessage<DidBuyProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 18);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest\n */\nexport type UpdateNotificationSettingsRequest = Message<\"public_api.v1.UpdateNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.UpdateNotificationSettingsRequest.Group modifications = 3;\n */\n modifications: UpdateNotificationSettingsRequest_Group[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 4;\n */\n enabledMethods: NotificationMethod[];\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.\n * Use `create(UpdateNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequestSchema: GenMessage<UpdateNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest.Group\n */\nexport type UpdateNotificationSettingsRequest_Group = Message<\"public_api.v1.UpdateNotificationSettingsRequest.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: bool enabled = 2;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.Group.\n * Use `create(UpdateNotificationSettingsRequest_GroupSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequest_GroupSchema: GenMessage<UpdateNotificationSettingsRequest_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19, 0);\n\n/**\n * @generated from message public_api.v1.UpdateGlobalNotificationSettingsRequest\n */\nexport type UpdateGlobalNotificationSettingsRequest = Message<\"public_api.v1.UpdateGlobalNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateGlobalNotificationSettingsRequest.\n * Use `create(UpdateGlobalNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateGlobalNotificationSettingsRequestSchema: GenMessage<UpdateGlobalNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 20);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsRequest\n */\nexport type GetNotificationSettingsDetailsRequest = Message<\"public_api.v1.GetNotificationSettingsDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsRequest.\n * Use `create(GetNotificationSettingsDetailsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsRequestSchema: GenMessage<GetNotificationSettingsDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 21);\n\n/**\n * @generated from message public_api.v1.NotificationGroup\n */\nexport type NotificationGroup = Message<\"public_api.v1.NotificationGroup\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool enabled = 4;\n */\n enabled: boolean;\n\n /**\n * @generated from field: common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message public_api.v1.NotificationGroup.\n * Use `create(NotificationGroupSchema)` to create a new message.\n */\nexport const NotificationGroupSchema: GenMessage<NotificationGroup> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 22);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsResponse\n */\nexport type GetNotificationSettingsDetailsResponse = Message<\"public_api.v1.GetNotificationSettingsDetailsResponse\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod available_methods = 4;\n */\n availableMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 5;\n */\n enabledMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationGroup groups = 6;\n */\n groups: NotificationGroup[];\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsResponse.\n * Use `create(GetNotificationSettingsDetailsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsResponseSchema: GenMessage<GetNotificationSettingsDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 23);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsRequest\n */\nexport type GetNotificationSettingsRequest = Message<\"public_api.v1.GetNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool all = 2;\n */\n all: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsRequest.\n * Use `create(GetNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsRequestSchema: GenMessage<GetNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 24);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse\n */\nexport type GetNotificationSettingsResponse = Message<\"public_api.v1.GetNotificationSettingsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetNotificationSettingsResponse.Project projects = 1;\n */\n projects: GetNotificationSettingsResponse_Project[];\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.\n * Use `create(GetNotificationSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponseSchema: GenMessage<GetNotificationSettingsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 25);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse.Project\n */\nexport type GetNotificationSettingsResponse_Project = Message<\"public_api.v1.GetNotificationSettingsResponse.Project\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: public_api.v1.GetNotificationSettingsResponse.Status status = 3;\n */\n status: GetNotificationSettingsResponse_Status;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 4;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.Project.\n * Use `create(GetNotificationSettingsResponse_ProjectSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponse_ProjectSchema: GenMessage<GetNotificationSettingsResponse_Project> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 25, 0);\n\n/**\n * @generated from enum public_api.v1.GetNotificationSettingsResponse.Status\n */\nexport enum GetNotificationSettingsResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * @generated from enum value: STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n}\n\n/**\n * Describes the enum public_api.v1.GetNotificationSettingsResponse.Status.\n */\nexport const GetNotificationSettingsResponse_StatusSchema: GenEnum<GetNotificationSettingsResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 25, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesRequest\n */\nexport type UserPanelPushGetAvailableCompaniesRequest = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesRequest.\n * Use `create(UserPanelPushGetAvailableCompaniesRequestSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesRequestSchema: GenMessage<UserPanelPushGetAvailableCompaniesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 26);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse\n */\nexport type UserPanelPushGetAvailableCompaniesResponse = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company companies = 1;\n */\n companies: UserPanelPushGetAvailableCompaniesResponse_Company[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.\n * Use `create(UserPanelPushGetAvailableCompaniesResponseSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponseSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Group = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string how_often = 4;\n */\n howOften?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_GroupSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_GroupSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Company = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group groups = 3;\n */\n groups: UserPanelPushGetAvailableCompaniesResponse_Group[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_CompanySchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_CompanySchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Company> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27, 1);\n\n/**\n * @generated from message public_api.v1.ShouldShopProductsResponse\n */\nexport type ShouldShopProductsResponse = Message<\"public_api.v1.ShouldShopProductsResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShopProductsResponse.\n * Use `create(ShouldShopProductsResponseSchema)` to create a new message.\n */\nexport const ShouldShopProductsResponseSchema: GenMessage<ShouldShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 28);\n\n/**\n * @generated from message public_api.v1.GetShopProductsRequest\n */\nexport type GetShopProductsRequest = Message<\"public_api.v1.GetShopProductsRequest\"> & {\n /**\n * @generated from field: optional string access_token = 1;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsRequest.\n * Use `create(GetShopProductsRequestSchema)` to create a new message.\n */\nexport const GetShopProductsRequestSchema: GenMessage<GetShopProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 29);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse\n */\nexport type GetShopProductsResponse = Message<\"public_api.v1.GetShopProductsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetShopProductsResponse.Product products = 5;\n */\n products: GetShopProductsResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.\n * Use `create(GetShopProductsResponseSchema)` to create a new message.\n */\nexport const GetShopProductsResponseSchema: GenMessage<GetShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse.Product\n */\nexport type GetShopProductsResponse_Product = Message<\"public_api.v1.GetShopProductsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from field: string price = 4;\n */\n price: string;\n\n /**\n * @generated from field: optional bool is_already_bought = 5;\n */\n isAlreadyBought?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.Product.\n * Use `create(GetShopProductsResponse_ProductSchema)` to create a new message.\n */\nexport const GetShopProductsResponse_ProductSchema: GenMessage<GetShopProductsResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse\n */\nexport type UserPanelGetFileDetailsResponse = Message<\"public_api.v1.UserPanelGetFileDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetFileDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetFileDetailsResponse.Result success = 1;\n */\n value: UserPanelGetFileDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.\n * Use `create(UserPanelGetFileDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponseSchema: GenMessage<UserPanelGetFileDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 31);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse.Result\n */\nexport type UserPanelGetFileDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetFileDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string files = 2;\n */\n files: string[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.Result.\n * Use `create(UserPanelGetFileDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponse_ResultSchema: GenMessage<UserPanelGetFileDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 31, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsRequest\n */\nexport type UserPanelGetFileDetailsRequest = Message<\"public_api.v1.UserPanelGetFileDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsRequest.\n * Use `create(UserPanelGetFileDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsRequestSchema: GenMessage<UserPanelGetFileDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 32);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse\n */\nexport type UserPanelGetTicketDetailsResponse = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetTicketDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetTicketDetailsResponse.Result success = 1;\n */\n value: UserPanelGetTicketDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.\n * Use `create(UserPanelGetTicketDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponseSchema: GenMessage<UserPanelGetTicketDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 33);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse.Result\n */\nexport type UserPanelGetTicketDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string ticket_url = 2;\n */\n ticketUrl: string;\n\n /**\n * @generated from field: string product_name = 3;\n */\n productName: string;\n\n /**\n * @generated from field: string product_image_url = 4;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: optional string google_wallet_url = 5;\n */\n googleWalletUrl?: string;\n\n /**\n * @generated from field: optional string apple_wallet_url = 6;\n */\n appleWalletUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.Result.\n * Use `create(UserPanelGetTicketDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponse_ResultSchema: GenMessage<UserPanelGetTicketDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 33, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsRequest\n */\nexport type UserPanelGetTicketDetailsRequest = Message<\"public_api.v1.UserPanelGetTicketDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsRequest.\n * Use `create(UserPanelGetTicketDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsRequestSchema: GenMessage<UserPanelGetTicketDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 34);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result success = 1;\n */\n value: UserPanelGetAudiobookDetailsDownloadURLsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 35);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\"> & {\n /**\n * @generated from field: string chapter_id = 1;\n */\n chapterId: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n\n /**\n * @generated from field: optional string downloadable_url = 3;\n */\n downloadableUrl?: string;\n\n /**\n * @generated from field: optional int32 duration = 4;\n */\n duration?: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 35, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_Result = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails audiobook_download_details = 1;\n */\n audiobookDownloadDetails: UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails[];\n\n /**\n * @generated from field: optional bool is_available_to_download_in_mobile_app = 2;\n */\n isAvailableToDownloadInMobileApp?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 35, 1);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n\n /**\n * @generated from field: optional bool is_browser = 3;\n */\n isBrowser?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 36);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsResponse\n */\nexport type UserPanelGetAudiobookDetailsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n value: Audiobook$1;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsResponse.\n * Use `create(UserPanelGetAudiobookDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 37);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsRequest\n */\nexport type UserPanelGetAudiobookDetailsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsRequest.\n * Use `create(UserPanelGetAudiobookDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 38);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsRequest\n */\nexport type UserPanelGetProductsRequest = Message<\"public_api.v1.UserPanelGetProductsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsRequest.\n * Use `create(UserPanelGetProductsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetProductsRequestSchema: GenMessage<UserPanelGetProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 39);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse\n */\nexport type UserPanelGetProductsResponse = Message<\"public_api.v1.UserPanelGetProductsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetProductsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetProductsResponse.Result success = 1;\n */\n value: UserPanelGetProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.\n * Use `create(UserPanelGetProductsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponseSchema: GenMessage<UserPanelGetProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 40);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse.Result\n */\nexport type UserPanelGetProductsResponse_Result = Message<\"public_api.v1.UserPanelGetProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserProduct products = 1;\n */\n products: UserProduct[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.Result.\n * Use `create(UserPanelGetProductsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponse_ResultSchema: GenMessage<UserPanelGetProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 40, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLogoutRequest\n */\nexport type UserPanelLogoutRequest = Message<\"public_api.v1.UserPanelLogoutRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLogoutRequest.\n * Use `create(UserPanelLogoutRequestSchema)` to create a new message.\n */\nexport const UserPanelLogoutRequestSchema: GenMessage<UserPanelLogoutRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeResponse\n */\nexport type UserPanelLoginWithCodeResponse = Message<\"public_api.v1.UserPanelLoginWithCodeResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginWithCodeResponse.result\n */\n result: {\n /**\n * @generated from field: string access_token = 1;\n */\n value: string;\n case: \"accessToken\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeResponse.\n * Use `create(UserPanelLoginWithCodeResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeResponseSchema: GenMessage<UserPanelLoginWithCodeResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 42);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeRequest\n */\nexport type UserPanelLoginWithCodeRequest = Message<\"public_api.v1.UserPanelLoginWithCodeRequest\"> & {\n /**\n * @generated from field: int32 code = 1;\n */\n code: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeRequest.\n * Use `create(UserPanelLoginWithCodeRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeRequestSchema: GenMessage<UserPanelLoginWithCodeRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 43);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse\n */\nexport type UserPanelLoginResponse = Message<\"public_api.v1.UserPanelLoginResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelLoginResponse.Result success = 1;\n */\n value: UserPanelLoginResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.\n * Use `create(UserPanelLoginResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginResponseSchema: GenMessage<UserPanelLoginResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 44);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse.Result\n */\nexport type UserPanelLoginResponse_Result = Message<\"public_api.v1.UserPanelLoginResponse.Result\"> & {\n /**\n * @generated from field: int32 retry_in = 1;\n */\n retryIn: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.Result.\n * Use `create(UserPanelLoginResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelLoginResponse_ResultSchema: GenMessage<UserPanelLoginResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 44, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginRequest\n */\nexport type UserPanelLoginRequest = Message<\"public_api.v1.UserPanelLoginRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: optional bool regulations_accept = 2;\n */\n regulationsAccept?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginRequest.\n * Use `create(UserPanelLoginRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginRequestSchema: GenMessage<UserPanelLoginRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 45);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlRequest\n */\nexport type GetOrderRetryUrlRequest = Message<\"public_api.v1.GetOrderRetryUrlRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlRequest.\n * Use `create(GetOrderRetryUrlRequestSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlRequestSchema: GenMessage<GetOrderRetryUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 46);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse\n */\nexport type GetOrderRetryUrlResponse = Message<\"public_api.v1.GetOrderRetryUrlResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderRetryUrlResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderRetryUrlResponse.Success url = 1;\n */\n value: GetOrderRetryUrlResponse_Success;\n case: \"url\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.\n * Use `create(GetOrderRetryUrlResponseSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponseSchema: GenMessage<GetOrderRetryUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 47);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse.Success\n */\nexport type GetOrderRetryUrlResponse_Success = Message<\"public_api.v1.GetOrderRetryUrlResponse.Success\"> & {\n /**\n * @generated from field: string url = 1;\n */\n url: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.Success.\n * Use `create(GetOrderRetryUrlResponse_SuccessSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponse_SuccessSchema: GenMessage<GetOrderRetryUrlResponse_Success> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 47, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderRequest\n */\nexport type GetOrderRequest = Message<\"public_api.v1.GetOrderRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRequest.\n * Use `create(GetOrderRequestSchema)` to create a new message.\n */\nexport const GetOrderRequestSchema: GenMessage<GetOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 48);\n\n/**\n * @generated from message public_api.v1.GetOrderResponse\n */\nexport type GetOrderResponse = Message<\"public_api.v1.GetOrderResponse\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: repeated public_api.v1.Item items = 2;\n */\n items: Item[];\n\n /**\n * @generated from field: public_api.v1.OrderDetails details = 3;\n */\n details?: OrderDetails;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderResponse.\n * Use `create(GetOrderResponseSchema)` to create a new message.\n */\nexport const GetOrderResponseSchema: GenMessage<GetOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 49);\n\n/**\n * @generated from message public_api.v1.OrderDetails\n */\nexport type OrderDetails = Message<\"public_api.v1.OrderDetails\"> & {\n /**\n * @generated from field: repeated public_api.v1.OrderDetails.SingleItem items = 1;\n */\n items: OrderDetails_SingleItem[];\n\n /**\n * @generated from field: common.v1.Gateway gateway = 2;\n */\n gateway: Gateway;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.\n * Use `create(OrderDetailsSchema)` to create a new message.\n */\nexport const OrderDetailsSchema: GenMessage<OrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50);\n\n/**\n * @generated from message public_api.v1.OrderDetails.SingleItem\n */\nexport type OrderDetails_SingleItem = Message<\"public_api.v1.OrderDetails.SingleItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string image_url = 2;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price_amount = 5;\n */\n priceAmount: bigint;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.SingleItem.\n * Use `create(OrderDetails_SingleItemSchema)` to create a new message.\n */\nexport const OrderDetails_SingleItemSchema: GenMessage<OrderDetails_SingleItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50, 0);\n\n/**\n * @generated from message public_api.v1.Item\n */\nexport type Item = Message<\"public_api.v1.Item\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from oneof public_api.v1.Item.item\n */\n item: {\n /**\n * @generated from field: public_api.v1.FileDownloadable file_downloadable = 4;\n */\n value: FileDownloadable;\n case: \"fileDownloadable\";\n } | {\n /**\n * @generated from field: public_api.v1.Audiobook audiobook = 5;\n */\n value: Audiobook;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.Ticket ticket = 6;\n */\n value: Ticket;\n case: \"ticket\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.Item.\n * Use `create(ItemSchema)` to create a new message.\n */\nexport const ItemSchema: GenMessage<Item> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 51);\n\n/**\n * @generated from message public_api.v1.FileDownloadable\n */\nexport type FileDownloadable = Message<\"public_api.v1.FileDownloadable\"> & {\n /**\n * @generated from field: string file_url = 1;\n */\n fileUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.FileDownloadable.\n * Use `create(FileDownloadableSchema)` to create a new message.\n */\nexport const FileDownloadableSchema: GenMessage<FileDownloadable> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 52);\n\n/**\n * @generated from message public_api.v1.Audiobook\n */\nexport type Audiobook = Message<\"public_api.v1.Audiobook\"> & {\n /**\n * @generated from field: string app_download_url = 1;\n */\n appDownloadUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 53);\n\n/**\n * @generated from message public_api.v1.Ticket\n */\nexport type Ticket = Message<\"public_api.v1.Ticket\"> & {\n /**\n * @generated from field: string ticket_id = 1;\n */\n ticketId: string;\n\n /**\n * @generated from field: optional string apple_pass_url = 2;\n */\n applePassUrl?: string;\n\n /**\n * @generated from field: optional string google_ticket_url = 3;\n */\n googleTicketUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.Ticket.\n * Use `create(TicketSchema)` to create a new message.\n */\nexport const TicketSchema: GenMessage<Ticket> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54);\n\n/**\n * @generated from message public_api.v1.UserProduct\n */\nexport type UserProduct = Message<\"public_api.v1.UserProduct\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string project_name = 2;\n */\n projectName: string;\n\n /**\n * @generated from field: string product_id = 3;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 4;\n */\n productName: string;\n\n /**\n * @generated from field: string product_description = 5;\n */\n productDescription: string;\n\n /**\n * @generated from field: string product_image_url = 6;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 7;\n */\n productType: UserProductType;\n\n /**\n * @generated from field: string access_id = 8;\n */\n accessId: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 9;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_description = 10;\n */\n projectDescription?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserProduct.\n * Use `create(UserProductSchema)` to create a new message.\n */\nexport const UserProductSchema: GenMessage<UserProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 55);\n\n/**\n * @generated from message public_api.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"public_api.v1.BoolResponse\"> & {\n /**\n * @generated from oneof public_api.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 56);\n\n/**\n * @generated from message public_api.v1.PushEventRequest\n */\nexport type PushEventRequest = Message<\"public_api.v1.PushEventRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string notification_id = 2;\n */\n notificationId: string;\n\n /**\n * @generated from field: common.v1.NotificationEvent event = 3;\n */\n event: NotificationEvent;\n};\n\n/**\n * Describes the message public_api.v1.PushEventRequest.\n * Use `create(PushEventRequestSchema)` to create a new message.\n */\nexport const PushEventRequestSchema: GenMessage<PushEventRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 57);\n\n/**\n * @generated from message public_api.v1.PushSendDeviceTokenRequest\n */\nexport type PushSendDeviceTokenRequest = Message<\"public_api.v1.PushSendDeviceTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: common.v1.PushNotificationDeviceToken payload = 2;\n */\n payload?: PushNotificationDeviceToken;\n\n /**\n * @generated from field: optional bool is_notification_granted = 3;\n */\n isNotificationGranted?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.PushSendDeviceTokenRequest.\n * Use `create(PushSendDeviceTokenRequestSchema)` to create a new message.\n */\nexport const PushSendDeviceTokenRequestSchema: GenMessage<PushSendDeviceTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 58);\n\n/**\n * @generated from message public_api.v1.ProjectTheme\n */\nexport type ProjectTheme = Message<\"public_api.v1.ProjectTheme\"> & {\n /**\n * @generated from field: optional string image_url = 1;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string image_dark_url = 2;\n */\n imageDarkUrl?: string;\n\n /**\n * @generated from field: optional string brand_color = 3;\n */\n brandColor?: string;\n\n /**\n * @generated from field: optional string brand_color_dark = 4;\n */\n brandColorDark?: string;\n};\n\n/**\n * Describes the message public_api.v1.ProjectTheme.\n * Use `create(ProjectThemeSchema)` to create a new message.\n */\nexport const ProjectThemeSchema: GenMessage<ProjectTheme> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 59);\n\n/**\n * Public Order Details Messages\n *\n * @generated from message public_api.v1.GetPublicOrderDetailsRequest\n */\nexport type GetPublicOrderDetailsRequest = Message<\"public_api.v1.GetPublicOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * If provided and matches order, show unobfuscated data\n *\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * If provided, extract email from token for automatic verification\n *\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsRequest.\n * Use `create(GetPublicOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsRequestSchema: GenMessage<GetPublicOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 60);\n\n/**\n * @generated from message public_api.v1.GetPublicOrderDetailsResponse\n */\nexport type GetPublicOrderDetailsResponse = Message<\"public_api.v1.GetPublicOrderDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetPublicOrderDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderDetails order = 1;\n */\n value: PublicOrderDetails;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsResponse.\n * Use `create(GetPublicOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsResponseSchema: GenMessage<GetPublicOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 61);\n\n/**\n * @generated from message public_api.v1.PublicOrderDetails\n */\nexport type PublicOrderDetails = Message<\"public_api.v1.PublicOrderDetails\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * Always visible (e.g., \"completed\", \"pending\", \"shipped\")\n *\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * Always visible\n *\n * @generated from field: optional string processing_status = 3;\n */\n processingStatus?: string;\n\n /**\n * Obfuscated unless email verified\n *\n * @generated from field: string customer_name = 4;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 5;\n */\n customerEmail: string;\n\n /**\n * @generated from field: optional string customer_phone = 6;\n */\n customerPhone?: string;\n\n /**\n * @generated from field: optional string delivery_address = 7;\n */\n deliveryAddress?: string;\n\n /**\n * @generated from field: optional string delivery_method = 8;\n */\n deliveryMethod?: string;\n\n /**\n * @generated from field: optional string tracking_number = 9;\n */\n trackingNumber?: string;\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderItem items = 10;\n */\n items: PublicOrderItem[];\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderComment comments = 11;\n */\n comments: PublicOrderComment[];\n\n /**\n * @generated from field: int64 total_amount = 12;\n */\n totalAmount: bigint;\n\n /**\n * @generated from field: string currency = 13;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 14;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp updated_at = 15;\n */\n updatedAt?: Timestamp;\n\n /**\n * True if email matched - frontend uses this to show/hide verify form\n *\n * @generated from field: bool is_verified = 16;\n */\n isVerified: boolean;\n\n /**\n * Total non-internal comments count\n *\n * @generated from field: int32 comment_count = 17;\n */\n commentCount: number;\n\n /**\n * Project branding\n *\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 18;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_name = 19;\n */\n projectName?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderDetails.\n * Use `create(PublicOrderDetailsSchema)` to create a new message.\n */\nexport const PublicOrderDetailsSchema: GenMessage<PublicOrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 62);\n\n/**\n * @generated from message public_api.v1.PublicOrderItem\n */\nexport type PublicOrderItem = Message<\"public_api.v1.PublicOrderItem\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price = 3;\n */\n price: bigint;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: optional string image_url = 5;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderItem.\n * Use `create(PublicOrderItemSchema)` to create a new message.\n */\nexport const PublicOrderItemSchema: GenMessage<PublicOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 63);\n\n/**\n * @generated from message public_api.v1.PublicOrderComment\n */\nexport type PublicOrderComment = Message<\"public_api.v1.PublicOrderComment\"> & {\n /**\n * @generated from field: int32 id = 1;\n */\n id: number;\n\n /**\n * Obfuscated to \"***\" if not verified\n *\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * \"admin\", \"system\", \"customer\"\n *\n * @generated from field: string author_type = 3;\n */\n authorType: string;\n\n /**\n * Obfuscated if not verified\n *\n * @generated from field: optional string author_name = 4;\n */\n authorName?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderComment.\n * Use `create(PublicOrderCommentSchema)` to create a new message.\n */\nexport const PublicOrderCommentSchema: GenMessage<PublicOrderComment> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 64);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentRequest\n */\nexport type AddPublicOrderCommentRequest = Message<\"public_api.v1.AddPublicOrderCommentRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Lucia session cookie value\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentRequest.\n * Use `create(AddPublicOrderCommentRequestSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentRequestSchema: GenMessage<AddPublicOrderCommentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 65);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentResponse\n */\nexport type AddPublicOrderCommentResponse = Message<\"public_api.v1.AddPublicOrderCommentResponse\"> & {\n /**\n * @generated from oneof public_api.v1.AddPublicOrderCommentResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderComment comment = 1;\n */\n value: PublicOrderComment;\n case: \"comment\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentResponse.\n * Use `create(AddPublicOrderCommentResponseSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentResponseSchema: GenMessage<AddPublicOrderCommentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 66);\n\n/**\n * Testimonial Messages\n *\n * @generated from message public_api.v1.GetOrderForTestimonialRequest\n */\nexport type GetOrderForTestimonialRequest = Message<\"public_api.v1.GetOrderForTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialRequest.\n * Use `create(GetOrderForTestimonialRequestSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialRequestSchema: GenMessage<GetOrderForTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 67);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse\n */\nexport type GetOrderForTestimonialResponse = Message<\"public_api.v1.GetOrderForTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderForTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderForTestimonialResponse.OrderInfo order = 1;\n */\n value: GetOrderForTestimonialResponse_OrderInfo;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.\n * Use `create(GetOrderForTestimonialResponseSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponseSchema: GenMessage<GetOrderForTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 68);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderProduct\n */\nexport type GetOrderForTestimonialResponse_OrderProduct = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 2;\n */\n productName: string;\n\n /**\n * @generated from field: optional string product_image_url = 3;\n */\n productImageUrl?: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderProduct.\n * Use `create(GetOrderForTestimonialResponse_OrderProductSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderProductSchema: GenMessage<GetOrderForTestimonialResponse_OrderProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 68, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderInfo\n */\nexport type GetOrderForTestimonialResponse_OrderInfo = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderInfo\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 2;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 3;\n */\n customerEmail: string;\n\n /**\n * @generated from field: repeated public_api.v1.GetOrderForTestimonialResponse.OrderProduct products = 4;\n */\n products: GetOrderForTestimonialResponse_OrderProduct[];\n\n /**\n * @generated from field: bool already_submitted = 5;\n */\n alreadySubmitted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderInfo.\n * Use `create(GetOrderForTestimonialResponse_OrderInfoSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderInfoSchema: GenMessage<GetOrderForTestimonialResponse_OrderInfo> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 68, 1);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialRequest\n */\nexport type SubmitTestimonialRequest = Message<\"public_api.v1.SubmitTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 3;\n */\n customerName: string;\n\n /**\n * @generated from field: optional string photo_url = 4;\n */\n photoUrl?: string;\n\n /**\n * @generated from field: int32 rating = 5;\n */\n rating: number;\n\n /**\n * @generated from field: string message = 6;\n */\n message: string;\n\n /**\n * @generated from field: repeated string product_ids = 7;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialRequest.\n * Use `create(SubmitTestimonialRequestSchema)` to create a new message.\n */\nexport const SubmitTestimonialRequestSchema: GenMessage<SubmitTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 69);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialResponse\n */\nexport type SubmitTestimonialResponse = Message<\"public_api.v1.SubmitTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.SubmitTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialResponse.\n * Use `create(SubmitTestimonialResponseSchema)` to create a new message.\n */\nexport const SubmitTestimonialResponseSchema: GenMessage<SubmitTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 70);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlRequest\n */\nexport type GetTestimonialUploadUrlRequest = Message<\"public_api.v1.GetTestimonialUploadUrlRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string filename = 3;\n */\n filename: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlRequest.\n * Use `create(GetTestimonialUploadUrlRequestSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlRequestSchema: GenMessage<GetTestimonialUploadUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 71);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlResponse\n */\nexport type GetTestimonialUploadUrlResponse = Message<\"public_api.v1.GetTestimonialUploadUrlResponse\"> & {\n /**\n * @generated from field: string upload_url = 1;\n */\n uploadUrl: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlResponse.\n * Use `create(GetTestimonialUploadUrlResponseSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlResponseSchema: GenMessage<GetTestimonialUploadUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 72);\n\n/**\n * @generated from enum public_api.v1.UserProductType\n */\nexport enum UserProductType {\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_AUDIO = 1;\n */\n AUDIO = 1,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_FILE = 2;\n */\n FILE = 2,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_TICKET = 3;\n */\n TICKET = 3,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_COURSE = 4;\n */\n COURSE = 4,\n}\n\n/**\n * Describes the enum public_api.v1.UserProductType.\n */\nexport const UserProductTypeSchema: GenEnum<UserProductType> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from enum public_api.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_EMAIL_NOT_FOUND = 1;\n */\n EMAIL_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_EMAIL = 2;\n */\n INCORRECT_EMAIL = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CODE = 3;\n */\n INCORRECT_CODE = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_GENERATE_ACCESS_TOKEN_FAILED = 4;\n */\n GENERATE_ACCESS_TOKEN_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_LOGOUT_FAILED = 5;\n */\n LOGOUT_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRDUCTS_NOT_FOUND = 6;\n */\n PRDUCTS_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_AUDIOBOOK_NOT_FOUND = 7;\n */\n AUDIOBOOK_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_AUDIOBOOK = 8;\n */\n INCORRECT_AUDIOBOOK = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNAUTHORIZED = 9;\n */\n UNAUTHORIZED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_TICKET_NOT_FOUND = 10;\n */\n TICKET_NOT_FOUND = 10,\n}\n\n/**\n * Describes the enum public_api.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from enum public_api.v1.NotificationMethod\n */\nexport enum NotificationMethod {\n /**\n * @generated from enum value: NOTIFICATION_METHOD_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_EMAIL = 1;\n */\n EMAIL = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_SMS = 2;\n */\n SMS = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_PUSH = 3;\n */\n PUSH = 3,\n}\n\n/**\n * Describes the enum public_api.v1.NotificationMethod.\n */\nexport const NotificationMethodSchema: GenEnum<NotificationMethod> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from service public_api.v1.PublicApiService\n */\nexport const PublicApiService: GenService<{\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\n getOrder: {\n methodKind: \"unary\";\n input: typeof GetOrderRequestSchema;\n output: typeof GetOrderResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\n getOrders: {\n methodKind: \"unary\";\n input: typeof GetOrdersRequestSchema;\n output: typeof GetOrdersResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\n getOrderRetryUrl: {\n methodKind: \"unary\";\n input: typeof GetOrderRetryUrlRequestSchema;\n output: typeof GetOrderRetryUrlResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\n userPanelLogin: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginRequestSchema;\n output: typeof UserPanelLoginResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\n userPanelLoginWithCode: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginWithCodeRequestSchema;\n output: typeof UserPanelLoginWithCodeResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\n userPanelLogout: {\n methodKind: \"unary\";\n input: typeof UserPanelLogoutRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\n userPanelDeleteAccount: {\n methodKind: \"unary\";\n input: typeof UserPanelDeleteAccountRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\n userPanelGetProducts: {\n methodKind: \"unary\";\n input: typeof UserPanelGetProductsRequestSchema;\n output: typeof UserPanelGetProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\n userPanelGetAudiobookDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\n userPanelGetAudiobookDetailsDownloadURLs: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsDownloadURLsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsDownloadURLsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\n userPanelGetFileDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetFileDetailsRequestSchema;\n output: typeof UserPanelGetFileDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\n userPanelGetTicketDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetTicketDetailsRequestSchema;\n output: typeof UserPanelGetTicketDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\n userPanelGetCourseDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetCourseDetailsRequestSchema;\n output: typeof UserPanelGetCourseDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\n pushSendDeviceToken: {\n methodKind: \"unary\";\n input: typeof PushSendDeviceTokenRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\n pushEvent: {\n methodKind: \"unary\";\n input: typeof PushEventRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\n shouldShopProducts: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ShouldShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\n getShopProducts: {\n methodKind: \"unary\";\n input: typeof GetShopProductsRequestSchema;\n output: typeof GetShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\n didBuyProduct: {\n methodKind: \"unary\";\n input: typeof DidBuyProductRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\n getNotificationSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsRequestSchema;\n output: typeof GetNotificationSettingsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\n getNotificationSettingsDetails: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsDetailsRequestSchema;\n output: typeof GetNotificationSettingsDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\n updateGlobalNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateGlobalNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\n updateNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\n getAvailableCountForProduct: {\n methodKind: \"unary\";\n input: typeof GetAvailableCountForProductRequestSchema;\n output: typeof GetAvailableCountForProductResponseSchema;\n },\n /**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\n isOneClickPaymentAvailable: {\n methodKind: \"unary\";\n input: typeof IsOneClickPaymentAvailableRequestSchema;\n output: typeof IsOneClickPaymentAvailableResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\n getPreOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPreOrderDetailsRequestSchema;\n output: typeof GetPreOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\n applePayValidateMerchant: {\n methodKind: \"unary\";\n input: typeof ApplePayValidateMerchantRequestSchema;\n output: typeof ApplePayValidateMerchantResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\n authorizeOneClickPayment: {\n methodKind: \"unary\";\n input: typeof OneClickAuthorizePaymentRequestSchema;\n output: typeof OneClickAuthorizePaymentResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\n notifyUserAboutProductAvailability: {\n methodKind: \"unary\";\n input: typeof NotifyUserAboutProductAvailabilityRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\n getPublicOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPublicOrderDetailsRequestSchema;\n output: typeof GetPublicOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\n addPublicOrderComment: {\n methodKind: \"unary\";\n input: typeof AddPublicOrderCommentRequestSchema;\n output: typeof AddPublicOrderCommentResponseSchema;\n },\n /**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\n getOrderForTestimonial: {\n methodKind: \"unary\";\n input: typeof GetOrderForTestimonialRequestSchema;\n output: typeof GetOrderForTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\n submitTestimonial: {\n methodKind: \"unary\";\n input: typeof SubmitTestimonialRequestSchema;\n output: typeof SubmitTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\n getTestimonialUploadUrl: {\n methodKind: \"unary\";\n input: typeof GetTestimonialUploadUrlRequestSchema;\n output: typeof GetTestimonialUploadUrlResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_public_api, 0);\n\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts\"\n// @generated from file common/v1/address.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/address.proto.\n */\nexport const file_common_v1_address: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvYWRkcmVzcy5wcm90bxIJY29tbW9uLnYxIocBCgdBZGRyZXNzEgwKBG5hbWUYASABKAkSDQoFbGluZTEYAiABKAkSEgoFbGluZTIYAyABKAlIAIgBARIMCgRjaXR5GAQgASgJEg8KB2NvdW50cnkYBSABKAkSFQoIemlwX2NvZGUYBiABKAlIAYgBAUIICgZfbGluZTJCCwoJX3ppcF9jb2RlIq4BCg5CaWxsaW5nQWRkcmVzcxIMCgRuYW1lGAEgASgJEg0KBWxpbmUxGAIgASgJEhIKBWxpbmUyGAMgASgJSACIAQESDAoEY2l0eRgEIAEoCRIPCgdjb3VudHJ5GAUgASgJEhUKCHppcF9jb2RlGAYgASgJSAGIAQESEwoGdGF4X2lkGAcgASgJSAKIAQFCCAoGX2xpbmUyQgsKCV96aXBfY29kZUIJCgdfdGF4X2lkQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from message common.v1.Address\n */\nexport type Address = Message<\"common.v1.Address\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n};\n\n/**\n * Describes the message common.v1.Address.\n * Use `create(AddressSchema)` to create a new message.\n */\nexport const AddressSchema: GenMessage<Address> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 0);\n\n/**\n * @generated from message common.v1.BillingAddress\n */\nexport type BillingAddress = Message<\"common.v1.BillingAddress\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n\n /**\n * @generated from field: optional string tax_id = 7;\n */\n taxId?: string;\n};\n\n/**\n * Describes the message common.v1.BillingAddress.\n * Use `create(BillingAddressSchema)` to create a new message.\n */\nexport const BillingAddressSchema: GenMessage<BillingAddress> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 1);\n\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts\"\n// @generated from file common/v1/gateway.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/gateway.proto.\n */\nexport const file_common_v1_gateway: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvZ2F0ZXdheS5wcm90bxIJY29tbW9uLnYxKs8BCgdHYXRld2F5Eg8KC0dBVEVXQVlfQUxMEAASFwoTR0FURVdBWV9QUlpFTEVXWV8yNBABEhIKDkdBVEVXQVlfU1RSSVBFEAISEAoMR0FURVdBWV9UUEFZEAMSHAoYR0FURVdBWV9DQVNIX09OX0RFTElWRVJZEAQSEAoMR0FURVdBWV9GUkVFEAUSFgoSR0FURVdBWV9JTlBPU1RfUEFZEAYSEAoMR0FURVdBWV9QQVlVEAcSGgoWR0FURVdBWV9NQU5VQUxfUEFZTUVOVBAIQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Gateway\n */\nexport enum Gateway {\n /**\n * @generated from enum value: GATEWAY_ALL = 0;\n */\n ALL = 0,\n\n /**\n * @generated from enum value: GATEWAY_PRZELEWY_24 = 1;\n */\n PRZELEWY_24 = 1,\n\n /**\n * @generated from enum value: GATEWAY_STRIPE = 2;\n */\n STRIPE = 2,\n\n /**\n * @generated from enum value: GATEWAY_TPAY = 3;\n */\n TPAY = 3,\n\n /**\n * @generated from enum value: GATEWAY_CASH_ON_DELIVERY = 4;\n */\n CASH_ON_DELIVERY = 4,\n\n /**\n * @generated from enum value: GATEWAY_FREE = 5;\n */\n FREE = 5,\n\n /**\n * @generated from enum value: GATEWAY_INPOST_PAY = 6;\n */\n INPOST_PAY = 6,\n\n /**\n * @generated from enum value: GATEWAY_PAYU = 7;\n */\n PAYU = 7,\n\n /**\n * @generated from enum value: GATEWAY_MANUAL_PAYMENT = 8;\n */\n MANUAL_PAYMENT = 8,\n}\n\n/**\n * Describes the enum common.v1.Gateway.\n */\nexport const GatewaySchema: GenEnum<Gateway> = /*@__PURE__*/\n enumDesc(file_common_v1_gateway, 0);\n\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts\"\n// @generated from file common/v1/push_notifications.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/push_notifications.proto.\n */\nexport const file_common_v1_push_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiJjb21tb24vdjEvcHVzaF9ub3RpZmljYXRpb25zLnByb3RvEgljb21tb24udjEi9gEKG1B1c2hOb3RpZmljYXRpb25EZXZpY2VUb2tlbhIXCgpwdXNoX3Rva2VuGAIgASgJSACIAQESNAoLZXhwaXJlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAGIAQESEwoGcDI1NmRoGAQgASgJSAKIAQESFQoIZW5kcG9pbnQYBSABKAlIA4gBARIlCghwbGF0Zm9ybRgGIAEoDjITLmNvbW1vbi52MS5QbGF0Zm9ybUINCgtfcHVzaF90b2tlbkIOCgxfZXhwaXJlX3RpbWVCCQoHX3AyNTZkaEILCglfZW5kcG9pbnQiZwoXUHVzaE5vdGlmaWNhdGlvblBheWxvYWQSDQoFdGl0bGUYAiABKAkSFQoIb3Blbl91cmwYAyABKAlIAYgBARIOCgRib2R5GAQgASgJSABCCQoHbWVzc2FnZUILCglfb3Blbl91cmwqeAoIUGxhdGZvcm0SGAoUUExBVEZPUk1fVU5TUEVDSUZJRUQQABIQCgxQTEFURk9STV9XRUIQARIYChRQTEFURk9STV9JT1NfU0FOREJPWBACEhAKDFBMQVRGT1JNX0lPUxADEhQKEFBMQVRGT1JNX0FORFJPSUQQBCp0ChFOb3RpZmljYXRpb25FdmVudBIRCg1FVkVOVF9VTktOT1dOEAASEgoORVZFTlRfUkVDRUlWRUQQARIQCgxFVkVOVF9PUEVORUQQAhIRCg1FVkVOVF9DTElDS0VEEAMSEwoPRVZFTlRfRElTTUlTU0VEEAQqmQEKGU5vdGlmaWNhdGlvbkdyb3VwSG93T2Z0ZW4SJwojTk9USUZJQ0FUSU9OX0dST1VQX0hPV19PRlRFTl9SQVJFTFkQABImCiJOT1RJRklDQVRJT05fR1JPVVBfSE9XX09GVEVOX09GVEVOEAESKwonTk9USUZJQ0FUSU9OX0dST1VQX0hPV19PRlRFTl9WRVJZX09GVEVOEAJCTlpMZ2l0aHViLmNvbS9lbW1lbXMvc3VwZXItY2FydC9hcHBzL3Nydi13b3JrZXIvdXRpbHMvbW9kZWxzL2NvbW1vbi92MTtjb21tb252MWIGcHJvdG8z\", [file_google_protobuf_timestamp]);\n\n/**\n * @generated from message common.v1.PushNotificationDeviceToken\n */\nexport type PushNotificationDeviceToken = Message<\"common.v1.PushNotificationDeviceToken\"> & {\n /**\n * @generated from field: optional string push_token = 2;\n */\n pushToken?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp expire_time = 3;\n */\n expireTime?: Timestamp;\n\n /**\n * @generated from field: optional string p256dh = 4;\n */\n p256dh?: string;\n\n /**\n * @generated from field: optional string endpoint = 5;\n */\n endpoint?: string;\n\n /**\n * @generated from field: common.v1.Platform platform = 6;\n */\n platform: Platform;\n};\n\n/**\n * Describes the message common.v1.PushNotificationDeviceToken.\n * Use `create(PushNotificationDeviceTokenSchema)` to create a new message.\n */\nexport const PushNotificationDeviceTokenSchema: GenMessage<PushNotificationDeviceToken> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from message common.v1.PushNotificationPayload\n */\nexport type PushNotificationPayload = Message<\"common.v1.PushNotificationPayload\"> & {\n /**\n * @generated from field: string title = 2;\n */\n title: string;\n\n /**\n * @generated from field: optional string open_url = 3;\n */\n openUrl?: string;\n\n /**\n * @generated from oneof common.v1.PushNotificationPayload.message\n */\n message: {\n /**\n * @generated from field: string body = 4;\n */\n value: string;\n case: \"body\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message common.v1.PushNotificationPayload.\n * Use `create(PushNotificationPayloadSchema)` to create a new message.\n */\nexport const PushNotificationPayloadSchema: GenMessage<PushNotificationPayload> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.Platform\n */\nexport enum Platform {\n /**\n * @generated from enum value: PLATFORM_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: PLATFORM_WEB = 1;\n */\n WEB = 1,\n\n /**\n * @generated from enum value: PLATFORM_IOS_SANDBOX = 2;\n */\n IOS_SANDBOX = 2,\n\n /**\n * @generated from enum value: PLATFORM_IOS = 3;\n */\n IOS = 3,\n\n /**\n * @generated from enum value: PLATFORM_ANDROID = 4;\n */\n ANDROID = 4,\n}\n\n/**\n * Describes the enum common.v1.Platform.\n */\nexport const PlatformSchema: GenEnum<Platform> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from enum common.v1.NotificationEvent\n */\nexport enum NotificationEvent {\n /**\n * @generated from enum value: EVENT_UNKNOWN = 0;\n */\n EVENT_UNKNOWN = 0,\n\n /**\n * @generated from enum value: EVENT_RECEIVED = 1;\n */\n EVENT_RECEIVED = 1,\n\n /**\n * @generated from enum value: EVENT_OPENED = 2;\n */\n EVENT_OPENED = 2,\n\n /**\n * @generated from enum value: EVENT_CLICKED = 3;\n */\n EVENT_CLICKED = 3,\n\n /**\n * @generated from enum value: EVENT_DISMISSED = 4;\n */\n EVENT_DISMISSED = 4,\n}\n\n/**\n * Describes the enum common.v1.NotificationEvent.\n */\nexport const NotificationEventSchema: GenEnum<NotificationEvent> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.NotificationGroupHowOften\n */\nexport enum NotificationGroupHowOften {\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_RARELY = 0;\n */\n RARELY = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_OFTEN = 1;\n */\n OFTEN = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_VERY_OFTEN = 2;\n */\n VERY_OFTEN = 2,\n}\n\n/**\n * Describes the enum common.v1.NotificationGroupHowOften.\n */\nexport const NotificationGroupHowOftenSchema: GenEnum<NotificationGroupHowOften> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 2);\n\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/audiobooks.proto (package dashboard.audiobooks.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/audiobooks.proto.\n */\nexport const file_dashboard_v1_audiobooks: GenFile = /*@__PURE__*/\n fileDesc(\"Ch1kYXNoYm9hcmQvdjEvYXVkaW9ib29rcy5wcm90bxIXZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEiFgoUR2V0QXVkaW9ib29rc1JlcXVlc3QiIQoTR2V0QXVkaW9ib29rUmVxdWVzdBIKCgJpZBgBIAEoCSKrAQoHQ2hhcHRlchIKCgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhgKC2Rlc2NyaXB0aW9uGAMgASgJSACIAQESGgoNbXVsdGltZWRpYV9pZBgEIAEoCUgBiAEBEi4KCmNyZWF0ZWRfYXQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQg4KDF9kZXNjcmlwdGlvbkIQCg5fbXVsdGltZWRpYV9pZCLzAgoJQXVkaW9ib29rEg8KAmlkGAEgASgJSACIAQESEgoKcHJvamVjdF9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9uGAQgASgJEhMKC2NvdmVyX2ltYWdlGAUgASgJEhcKD3RodW1ibmFpbF9pbWFnZRgGIAEoCRIyCghjaGFwdGVycxgHIAMoCzIgLmRhc2hib2FyZC5hdWRpb2Jvb2tzLnYxLkNoYXB0ZXISFwoPaXNfZG93bmxvYWRhYmxlGAggASgIEi4KCmNyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEiQKF2lzX2Jyb3dzZXJfZG93bmxvYWRhYmxlGAogASgISAGIAQESGQoMYWNjZW50X2NvbG9yGAsgASgJSAKIAQFCBQoDX2lkQhoKGF9pc19icm93c2VyX2Rvd25sb2FkYWJsZUIPCg1fYWNjZW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1.GetAudiobooksRequest\n */\nexport type GetAudiobooksRequest = Message<\"dashboard.audiobooks.v1.GetAudiobooksRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksRequest.\n * Use `create(GetAudiobooksRequestSchema)` to create a new message.\n */\nexport const GetAudiobooksRequestSchema: GenMessage<GetAudiobooksRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookRequest\n */\nexport type GetAudiobookRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookRequest.\n * Use `create(GetAudiobookRequestSchema)` to create a new message.\n */\nexport const GetAudiobookRequestSchema: GenMessage<GetAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Chapter\n */\nexport type Chapter = Message<\"dashboard.audiobooks.v1.Chapter\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string multimedia_id = 4;\n */\n multimediaId?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Chapter.\n * Use `create(ChapterSchema)` to create a new message.\n */\nexport const ChapterSchema: GenMessage<Chapter> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 2);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Audiobook\n */\nexport type Audiobook = Message<\"dashboard.audiobooks.v1.Audiobook\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string description = 4;\n */\n description: string;\n\n /**\n * @generated from field: string cover_image = 5;\n */\n coverImage: string;\n\n /**\n * @generated from field: string thumbnail_image = 6;\n */\n thumbnailImage: string;\n\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Chapter chapters = 7;\n */\n chapters: Chapter[];\n\n /**\n * @generated from field: bool is_downloadable = 8;\n */\n isDownloadable: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 9;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_browser_downloadable = 10;\n */\n isBrowserDownloadable?: boolean;\n\n /**\n * @generated from field: optional string accent_color = 11;\n */\n accentColor?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 3);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobooksResponse\n */\nexport type GetAudiobooksResponse = Message<\"dashboard.audiobooks.v1.GetAudiobooksResponse\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Audiobook audiobooks = 1;\n */\n audiobooks: Audiobook[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksResponse.\n * Use `create(GetAudiobooksResponseSchema)` to create a new message.\n */\nexport const GetAudiobooksResponseSchema: GenMessage<GetAudiobooksResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 4);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookResponse\n */\nexport type GetAudiobookResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookResponse\"> & {\n /**\n * @generated from field: optional dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookResponse.\n * Use `create(GetAudiobookResponseSchema)` to create a new message.\n */\nexport const GetAudiobookResponseSchema: GenMessage<GetAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 5);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\n */\nexport type CreateOrUpdateAudiobookRequest = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\"> & {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest.\n * Use `create(CreateOrUpdateAudiobookRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookRequestSchema: GenMessage<CreateOrUpdateAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 6);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\n */\nexport type CreateOrUpdateAudiobookResponse = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result success = 1;\n */\n value: CreateOrUpdateAudiobookResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.\n * Use `create(CreateOrUpdateAudiobookResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponseSchema: GenMessage<CreateOrUpdateAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\n */\nexport type CreateOrUpdateAudiobookResponse_Result = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result.\n * Use `create(CreateOrUpdateAudiobookResponse_ResultSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponse_ResultSchema: GenMessage<CreateOrUpdateAudiobookResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookRequest\n */\nexport type DeleteAudiobookRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookRequest.\n * Use `create(DeleteAudiobookRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookRequestSchema: GenMessage<DeleteAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 8);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\n */\nexport type GetAudiobookAccessEmailsRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: optional string email = 2;\n */\n email?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest.\n * Use `create(GetAudiobookAccessEmailsRequestSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsRequestSchema: GenMessage<GetAudiobookAccessEmailsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 9);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\n */\nexport type GetAudiobookAccessEmailsResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result success = 1;\n */\n value: GetAudiobookAccessEmailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.\n * Use `create(GetAudiobookAccessEmailsResponseSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponseSchema: GenMessage<GetAudiobookAccessEmailsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\n */\nexport type GetAudiobookAccessEmailsResponse_AccessEmail = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail.\n * Use `create(GetAudiobookAccessEmailsResponse_AccessEmailSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_AccessEmailSchema: GenMessage<GetAudiobookAccessEmailsResponse_AccessEmail> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\n */\nexport type GetAudiobookAccessEmailsResponse_Result = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail emails = 1;\n */\n emails: GetAudiobookAccessEmailsResponse_AccessEmail[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result.\n * Use `create(GetAudiobookAccessEmailsResponse_ResultSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_ResultSchema: GenMessage<GetAudiobookAccessEmailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateAudiobookAccessRequest\n */\nexport type CreateAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.CreateAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateAudiobookAccessRequest.\n * Use `create(CreateAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const CreateAudiobookAccessRequestSchema: GenMessage<CreateAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 11);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\n */\nexport type DeleteAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string system_access_id = 1;\n */\n systemAccessId: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest.\n * Use `create(DeleteAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookAccessRequestSchema: GenMessage<DeleteAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 12);\n\n/**\n * @generated from message dashboard.audiobooks.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.audiobooks.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 13);\n\n/**\n * @generated from enum dashboard.audiobooks.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CHAPTER_NOT_FOUND = 2;\n */\n CHAPTER_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CHAPTER_FORMAT = 3;\n */\n INCORRECT_CHAPTER_FORMAT = 3,\n}\n\n/**\n * Describes the enum dashboard.audiobooks.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from service dashboard.audiobooks.v1.AudiobooksService\n */\nexport const AudiobooksService: GenService<{\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobooks\n */\n getAudiobooks: {\n methodKind: \"unary\";\n input: typeof GetAudiobooksRequestSchema;\n output: typeof GetAudiobooksResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobook\n */\n getAudiobook: {\n methodKind: \"unary\";\n input: typeof GetAudiobookRequestSchema;\n output: typeof GetAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateOrUpdateAudiobook\n */\n createOrUpdateAudiobook: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateAudiobookRequestSchema;\n output: typeof CreateOrUpdateAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobook\n */\n deleteAudiobook: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobookAccessEmails\n */\n getAudiobookAccessEmails: {\n methodKind: \"unary\";\n input: typeof GetAudiobookAccessEmailsRequestSchema;\n output: typeof GetAudiobookAccessEmailsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateAudiobookAccess\n */\n createAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof CreateAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobookAccess\n */\n deleteAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_audiobooks, 0);\n\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport {\n useEffect,\n useState,\n type ChangeEvent,\n type CSSProperties,\n type FormEvent,\n} from \"react\";\nimport { cn } from \"../../lib/utils\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"../../ui/card\";\nimport { Input } from \"../../ui/input\";\nimport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n} from \"../../ui/input-otp\";\nimport { REGEXP_ONLY_DIGITS } from \"input-otp\";\nimport { Label } from \"../../ui/label\";\nimport LoadingIndicator from \"../LoadingIndicator\";\nimport {\n getAllowedReturnOrigins,\n setAllowedReturnOrigins,\n} from \"../config\";\nimport { usePanelConfig } from \"../PanelProvider\";\nimport {\n buildAccessTokenRedirect,\n getReturnURLFromSearch,\n persistReturnURL,\n readPersistedReturnURL,\n} from \"../return-url\";\n\ntype LoginResponseStatus = \"success\" | \"error\" | \"default\";\n\nif (typeof window !== \"undefined\") {\n const currentOrigin = window.location.origin;\n const knownSiblings = [\n currentOrigin,\n \"https://bitsnap.pl\",\n \"https://kursy.bitsnap.pl\",\n ];\n if (getAllowedReturnOrigins().length === 0) {\n setAllowedReturnOrigins(Array.from(new Set(knownSiblings)));\n }\n}\n\ninterface LoginUserPanelProps {\n reveal: () => void;\n email: string;\n setEmail: (input: string) => void;\n loginUser: () => void;\n isLoginLoading: boolean;\n errMsg: string;\n}\n\ninterface VerifyCodePanelProps {\n email: string;\n reveal: () => void;\n setEmail: (input: string) => void;\n loginUser: () => void;\n isLoginLoading: boolean;\n loginUserResponse: {\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null;\n setLoginUserResponse: (\n response: {\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null,\n ) => void;\n responseStatus: LoginResponseStatus;\n setResponseStatus: (status: LoginResponseStatus) => void;\n errMsg: string;\n}\n\nconst LoginUserPanel = ({\n reveal,\n email,\n setEmail,\n loginUser,\n isLoginLoading,\n errMsg,\n}: LoginUserPanelProps) => {\n if (\n typeof window !== \"undefined\" &&\n localStorage.getItem(\"__access_token\") != null\n ) {\n // @ts-ignore\n window.location.href = window.location.href.replaceAll(\"login\", \"\");\n return null;\n }\n\n const [isValidEmail, setIsValidEmail] = useState<boolean>(false);\n\n const emailValidation = (input: string) => {\n const emailPattern =\n /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (emailPattern.test(input.trim())) {\n return setIsValidEmail(true);\n }\n\n return setIsValidEmail(false);\n };\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n const { value } = e.target;\n emailValidation(value);\n setEmail(value);\n };\n\n function goToVerifyCode() {\n reveal();\n }\n\n function onSubmit(e: FormEvent<HTMLFormElement>) {\n e.preventDefault();\n void loginUser();\n }\n\n return (\n <main className=\"mx-auto flex max-w-sm flex-1 flex-col justify-center space-y-12\">\n <div className={cn(\"flex min-w-sm flex-col gap-6\")}>\n <Card>\n <CardHeader>\n <CardTitle className=\"text-2xl\">Zaloguj się</CardTitle>\n <CardDescription>\n Wyślemy do Ciebie kod na maila, dzięki któremu się zalogujesz.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form onSubmit={onSubmit}>\n <div className=\"flex flex-col gap-6\">\n <div className=\"grid gap-2\">\n <Label htmlFor=\"email\">Email</Label>\n <Input\n id=\"email\"\n onChange={handleInputChange}\n type=\"email\"\n placeholder=\"m@example.com\"\n required\n />\n <span\n className={cn(\n !isValidEmail && email.length > 0\n ? \"font-bold text-red-500\"\n : \"text-neutral-700 dark:text-neutral-400\",\n \"text-xs\",\n )}\n >\n {!isValidEmail && email.length > 0\n ? \"Nieprawidłowy adres email\"\n : \"Wpisz swój adres email\"}\n </span>\n </div>\n\n <div>\n <Button\n type=\"submit\"\n disabled={isLoginLoading}\n className=\"relative w-full\"\n onClick={loginUser}\n >\n {isLoginLoading && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <LoadingIndicator />\n </div>\n )}\n Zaloguj się\n </Button>\n {errMsg.length > 0 && (\n <p className=\"text-xs font-medium text-red-500\">{errMsg}</p>\n )}\n </div>\n </div>\n <div className=\"mt-4 text-center text-sm\">\n Masz już kod?{\" \"}\n <button\n type=\"button\"\n onClick={goToVerifyCode}\n className=\"underline underline-offset-4\"\n >\n Mam już kod\n </button>\n </div>\n </form>\n </CardContent>\n </Card>\n </div>\n </main>\n );\n};\n\nconst VerifyCodePanel = ({\n email,\n reveal,\n setEmail,\n isLoginLoading,\n loginUserResponse,\n setLoginUserResponse,\n setResponseStatus,\n errMsg,\n}: VerifyCodePanelProps) => {\n const { mutateAsync: verifyCodeAsync, isPending: isVerifyLoading } =\n useMutation(rpcProvider.publicApi.userPanelLoginWithCode);\n\n const [code, setCode] = useState<string>(\"\");\n const [isValidCode, setIsValidCode] = useState<boolean>(false);\n const [isSubmitted, setIsSubmitted] = useState<boolean>(false);\n const [retryIn, setRetryIn] = useState(0);\n\n const codeValidation = (input: string) => {\n const codePattern = /^\\d+$/;\n\n if (codePattern.test(input.trim())) {\n return setIsValidCode(true);\n }\n\n return setIsValidCode(false);\n };\n\n const handleInputChange = (value: string) => {\n codeValidation(value);\n setCode(value);\n };\n\n async function login() {\n setIsSubmitted(true);\n if (code.length == 0) {\n setIsValidCode(false);\n return;\n }\n const codeValue = parseInt(code);\n\n const verifyCodeResult = await verifyCodeAsync({\n code: codeValue,\n });\n\n let status, message, accessToken;\n\n if (verifyCodeResult.result.case === \"accessToken\") {\n setIsValidCode(true);\n status = \"ok\";\n message = undefined;\n accessToken = verifyCodeResult.result.value;\n } else {\n setIsValidCode(false);\n status = \"error\";\n message = verifyCodeResult.result.value;\n accessToken = undefined;\n }\n\n if (status === \"error\") {\n setIsValidCode(false);\n console.warn(\"error:\", `Kod błędu: ${message}`);\n console.warn(\"Nieprawidłowy kod, spróbuj ponownie.\");\n }\n\n if (status === \"ok\") {\n if (accessToken) {\n localStorage.setItem(\"__access_token\", accessToken);\n localStorage.setItem(\"__user-email\", email);\n }\n const returnURL = typeof window !== \"undefined\"\n ? readPersistedReturnURL()\n : null;\n setTimeout(() => {\n if (accessToken && returnURL) {\n window.location.href = buildAccessTokenRedirect(returnURL, accessToken);\n return;\n }\n window.location.reload();\n }, 100);\n }\n }\n\n function handleRetryInTime() {\n const intervalId = setInterval(() => {\n setRetryIn((prevRetryIn) => {\n if (prevRetryIn > 0) {\n return prevRetryIn - 1;\n } else {\n clearInterval(intervalId);\n return 0;\n }\n });\n }, 1000);\n\n return () => {\n clearInterval(intervalId);\n };\n }\n\n useEffect(() => {\n if (loginUserResponse?.status === \"ok\" && loginUserResponse?.retryIn > 0) {\n setRetryIn(loginUserResponse.retryIn);\n handleRetryInTime();\n }\n }, [loginUserResponse]);\n\n function backToLoginComponent() {\n setEmail(\"\");\n setLoginUserResponse(null);\n setResponseStatus(\"default\");\n reveal();\n }\n\n function onCodeSubmit(e: FormEvent<HTMLFormElement>) {\n e.preventDefault();\n void login();\n }\n\n return (\n <main className=\"mx-auto flex max-w-md flex-1 flex-col justify-center space-y-8\">\n <div className={cn(\"flex min-w-sm flex-col gap-6\")}>\n <Card>\n <CardHeader>\n <CardTitle className=\"text-2xl\">Wpisz kod z maila</CardTitle>\n <CardDescription>\n Sprawdź czy przypadkiem nie wylądował w spamie.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form onSubmit={onCodeSubmit} className=\"flex flex-col gap-6\">\n <div className=\"grid gap-2\">\n <div className=\"my-5 flex w-full items-center justify-center\">\n <div className=\"flex flex-col gap-2\">\n <InputOTP\n id=\"verify-code\"\n maxLength={6}\n pattern={REGEXP_ONLY_DIGITS}\n onChange={(newValue) => {\n handleInputChange(newValue);\n }}\n >\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n <InputOTPSlot index={2} />\n </InputOTPGroup>\n <InputOTPSeparator />\n <InputOTPGroup>\n <InputOTPSlot index={3} />\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n <span\n className={cn(\n !isValidCode && isSubmitted\n ? \"text-red-500\"\n : \"text-neutral-700 dark:text-neutral-400\",\n \"text-xs\",\n )}\n >\n {!isValidCode && isSubmitted\n ? code.length == 0\n ? \"Kod nie może być pusty\"\n : \"Kod musi składać się z cyfr\"\n : \"Wpisz kod z maila\"}\n </span>\n </div>\n </div>\n </div>\n\n <div>\n <Button\n type=\"submit\"\n disabled={isLoginLoading || isVerifyLoading}\n className=\"relative w-full\"\n onClick={() => {\n login();\n }}\n >\n {(isLoginLoading || isVerifyLoading) && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <LoadingIndicator />\n </div>\n )}\n Zaloguj się\n </Button>\n {errMsg.length > 0 && (\n <p className=\"text-xs font-medium text-red-500\">{errMsg}</p>\n )}\n </div>\n </form>\n <div className=\"mt-4 text-center text-sm\">\n Nie masz kodu?{\" \"}\n <button\n type=\"button\"\n onClick={backToLoginComponent}\n className=\"underline underline-offset-4\"\n >\n Wróć\n </button>\n </div>\n </CardContent>\n </Card>\n </div>\n </main>\n );\n};\n\nconst PanelLoginComponentWrapper = () => {\n const { theme, allowedReturnOrigins } = usePanelConfig();\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#FFFFFF\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#FFFFFF\",\n } as CSSProperties;\n\n type Screen = \"login\" | \"verifyCode\";\n\n const [activeScreen, setActiveScreen] = useState<Screen>(\"login\");\n const [parent] = useAutoAnimate({\n duration: 300,\n easing: \"ease-in-out\",\n disrespectUserMotionPreference: false,\n });\n\n const reveal = () =>\n setActiveScreen((prevScreen) =>\n prevScreen === \"login\" ? \"verifyCode\" : \"login\",\n );\n\n const [email, setEmail] = useState<string>(\"\");\n const [responseStatus, setResponseStatus] =\n useState<LoginResponseStatus>(\"default\");\n const [loginUserResponse, setLoginUserResponse] = useState<{\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null>(null);\n const { mutateAsync: loginUserAsync, isPending: isLoginLoading } =\n useMutation(rpcProvider.publicApi.userPanelLogin);\n\n const [errMsg, setErrMsg] = useState(\"\");\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n if (window.parent !== window) return;\n\n const queryReturnURL = getReturnURLFromSearch(window.location.search);\n if (queryReturnURL) {\n persistReturnURL(queryReturnURL);\n }\n\n const returnURL = queryReturnURL ?? readPersistedReturnURL();\n if (!returnURL) return;\n\n const existingToken = window.localStorage.getItem(\"__access_token\");\n if (!existingToken) return;\n\n window.location.href = buildAccessTokenRedirect(returnURL, existingToken);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [allowedReturnOrigins]);\n\n async function loginUser() {\n setErrMsg(\"\");\n setResponseStatus(\"default\");\n const loginUserResult = await loginUserAsync({\n email: email,\n });\n\n const status = loginUserResult.result.case === \"success\" ? \"ok\" : \"error\";\n let retryIn = 0;\n let message = undefined;\n\n if (loginUserResult.result.case === \"success\") {\n retryIn = loginUserResult.result.value.retryIn;\n }\n\n if (status === \"error\") {\n message = \"Nieprawidłowy adres email, spróbuj ponownie.\";\n }\n\n setLoginUserResponse({\n status: status,\n retryIn: retryIn,\n message: message,\n });\n\n if (status === \"ok\" && activeScreen === \"login\") {\n reveal();\n } else if (status === \"ok\" && activeScreen === \"verifyCode\") {\n setResponseStatus(\"success\");\n } else if (status === \"error\") {\n setErrMsg(message ?? \"Nieprawidłowy adres email, spróbuj ponownie.\");\n }\n }\n\n return (\n <div className=\"bg-white text-black dark:bg-black dark:text-white\">\n <div\n className=\"font-inter flex h-screen w-screen flex-col p-4\"\n style={styles}\n ref={parent}\n >\n <header>\n {theme?.logoDarkURL && (\n <img\n src={theme?.logoDarkURL}\n className=\"hidden dark:inline\"\n alt=\"Company Logo\"\n draggable={false}\n />\n )}\n {theme?.logoURL && (\n <img\n src={theme?.logoURL}\n className=\"dark:hidden\"\n alt=\"Company Logo\"\n draggable={false}\n />\n )}\n </header>\n {activeScreen === \"login\" && (\n <LoginUserPanel\n reveal={reveal}\n email={email}\n setEmail={setEmail}\n loginUser={loginUser}\n isLoginLoading={isLoginLoading}\n errMsg={errMsg}\n />\n )}\n {activeScreen === \"verifyCode\" && (\n <VerifyCodePanel\n email={email}\n reveal={reveal}\n setEmail={setEmail}\n loginUser={loginUser}\n isLoginLoading={isLoginLoading}\n loginUserResponse={loginUserResponse}\n setLoginUserResponse={setLoginUserResponse}\n responseStatus={responseStatus}\n setResponseStatus={setResponseStatus}\n errMsg={errMsg}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const PanelLogin = () => {\n return <PanelLoginComponentWrapper />;\n};\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport type Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type Partial<T> = {\n [P in keyof T]?: T[P];\n};\n","import {\n TransportProvider,\n useMutation as um,\n useQuery as uq,\n} from \"@connectrpc/connect-query\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport React, { useState } from \"react\";\n\nimport { Transport } from \"@connectrpc/connect\";\nimport { HOST, setCustomHost } from \"./components/checkout/constants\";\nimport * as notificationsRouter from \"./gen/proto/dashboard/v1/notifications-NotificationsService_connectquery\";\nimport * as publicApiRouter from \"./gen/proto/public/v1/public_api-PublicApiService_connectquery\";\n\nlet currentFinalTransportHost: string | undefined;\nlet finalTransport: Transport | undefined;\n\n// @ts-ignore\nBigInt.prototype.toJSON = function () {\n return this.toString();\n};\n\nexport const rpcProvider = {\n publicApi: publicApiRouter,\n notifications: notificationsRouter,\n};\n\nexport const useQuery = uq;\nexport const useMutation = um;\n\nlet customHost: string | undefined;\n\nexport function setHost(host: string): void {\n customHost = host;\n setCustomHost(host);\n}\n\nfunction getTransportHost(): string {\n return customHost ?? HOST;\n}\n\nexport const RpcProvider: React.FC<{\n children: React.ReactNode;\n}> = ({ children }) => {\n const transportHost = getTransportHost();\n\n if (finalTransport == null || currentFinalTransportHost !== transportHost) {\n currentFinalTransportHost = transportHost;\n finalTransport = createConnectTransport({\n baseUrl: transportHost + \"/api/rpc\",\n useBinaryFormat: true,\n // @ts-ignore\n fetch: async (input, init?) => {\n return fetch(input, {\n ...init,\n keepalive: false,\n credentials: \"include\",\n });\n },\n });\n }\n\n const [queryClient] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { staleTime: 5000 } },\n }),\n );\n\n return (\n <TransportProvider transport={finalTransport}>\n <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>\n </TransportProvider>\n );\n};\n","export let HOST = \"https://bitsnap.pl\";\n\nexport function setCustomHost(host: string) {\n console.log(\"setCustomHost\", host);\n HOST = host;\n}\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { NotificationsService } from \"./notifications_pb\";\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\nexport const createNotificationSetting = NotificationsService.method.createNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\nexport const readNotificationSetting = NotificationsService.method.readNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\nexport const updateNotificationSetting = NotificationsService.method.updateNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\nexport const deleteNotificationSetting = NotificationsService.method.deleteNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\nexport const createNotificationGroup = NotificationsService.method.createNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\nexport const readNotificationGroups = NotificationsService.method.readNotificationGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\nexport const updateNotificationGroup = NotificationsService.method.updateNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\nexport const deleteNotificationGroup = NotificationsService.method.deleteNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\nexport const createNotificationUser = NotificationsService.method.createNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\nexport const readNotificationUsers = NotificationsService.method.readNotificationUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\nexport const updateNotificationUser = NotificationsService.method.updateNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\nexport const deleteNotificationUser = NotificationsService.method.deleteNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\nexport const createNotificationGroupUser = NotificationsService.method.createNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\nexport const readNotificationGroupUsers = NotificationsService.method.readNotificationGroupUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\nexport const updateNotificationGroupUser = NotificationsService.method.updateNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\nexport const deleteNotificationGroupUser = NotificationsService.method.deleteNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\nexport const createNotificationMessage = NotificationsService.method.createNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\nexport const readNotificationMessages = NotificationsService.method.readNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\nexport const getSentNotificationMessages = NotificationsService.method.getSentNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\nexport const updateNotificationMessage = NotificationsService.method.updateNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\nexport const deleteNotificationMessage = NotificationsService.method.deleteNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\nexport const createNotificationMessageJob = NotificationsService.method.createNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\nexport const readNotificationMessageJobs = NotificationsService.method.readNotificationMessageJobs;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\nexport const updateNotificationMessageJob = NotificationsService.method.updateNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\nexport const deleteNotificationMessageJob = NotificationsService.method.deleteNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\nexport const readNotificationProducts = NotificationsService.method.readNotificationProducts;\n\n/**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\nexport const getNotificationUserSettings = NotificationsService.method.getNotificationUserSettings;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\nexport const verifyUserEmail = NotificationsService.method.verifyUserEmail;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\nexport const getUserGroups = NotificationsService.method.getUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\nexport const updateUserGroups = NotificationsService.method.updateUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\nexport const getProjectedRecipientCount = NotificationsService.method.getProjectedRecipientCount;\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { SearchProductsResponseSchema } from \"./product_pb\";\nimport { file_dashboard_v1_product } from \"./product_pb\";\nimport type { NotificationGroupHowOften } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/notifications.proto.\n */\nexport const file_dashboard_v1_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiBkYXNoYm9hcmQvdjEvbm90aWZpY2F0aW9ucy5wcm90bxIaZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEiYAoWVmVyaWZ5VXNlckVtYWlsUmVxdWVzdBISCgVlbWFpbBgBIAEoCUgAiAEBEhEKBGNvZGUYAiABKAlIAYgBARIMCgRzbHVnGAMgASgJQggKBl9lbWFpbEIHCgVfY29kZSJ/ChdWZXJpZnlVc2VyRW1haWxSZXNwb25zZRIPCgJvaxgBIAEoCEgAiAEBEhkKDGFjY2Vzc190b2tlbhgCIAEoCUgBiAEBEhQKB3VzZXJfaWQYAyABKAlIAogBAUIFCgNfb2tCDwoNX2FjY2Vzc190b2tlbkIKCghfdXNlcl9pZCJQChRHZXRVc2VyR3JvdXBzUmVxdWVzdBIMCgRzbHVnGAEgASgJEhkKDGFjY2Vzc190b2tlbhgCIAEoCUgAiAEBQg8KDV9hY2Nlc3NfdG9rZW4iiQIKFUdldFVzZXJHcm91cHNSZXNwb25zZRJHCgZncm91cHMYASADKA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2VyRW1haWxSZXNwb25zZRJ0Cg1HZXRVc2VyR3JvdXBzEjAuZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuR2V0VXNlckdyb3Vwc1JlcXVlc3QaMS5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXRVc2VyR3JvdXBzUmVzcG9uc2USXwoQVXBkYXRlVXNlckdyb3VwcxIzLmRhc2hib2FyZC5ub3RpZmljYXRpb25zLnYxLlVwZGF0ZVVzZXJHcm91cHNSZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EpsBChpHZXRQcm9qZWN0ZWRSZWNpcGllbnRDb3VudBI9LmRhc2hib2FyZC5ub3RpZmljYXRpb25zLnYxLkdldFByb2plY3RlZFJlY2lwaWVudENvdW50UmVxdWVzdBo+LmRhc2hib2FyZC5ub3RpZmljYXRpb25zLnYxLkdldFByb2plY3RlZFJlY2lwaWVudENvdW50UmVzcG9uc2ViBnByb3RvMw\", [file_google_protobuf_timestamp, file_google_protobuf_empty, file_dashboard_v1_product, file_common_v1_push_notifications]);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailRequest\n */\nexport type VerifyUserEmailRequest = Message<\"dashboard.notifications.v1.VerifyUserEmailRequest\"> & {\n /**\n * @generated from field: optional string email = 1;\n */\n email?: string;\n\n /**\n * @generated from field: optional string code = 2;\n */\n code?: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailRequest.\n * Use `create(VerifyUserEmailRequestSchema)` to create a new message.\n */\nexport const VerifyUserEmailRequestSchema: GenMessage<VerifyUserEmailRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailResponse\n */\nexport type VerifyUserEmailResponse = Message<\"dashboard.notifications.v1.VerifyUserEmailResponse\"> & {\n /**\n * @generated from field: optional bool ok = 1;\n */\n ok?: boolean;\n\n /**\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 3;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailResponse.\n * Use `create(VerifyUserEmailResponseSchema)` to create a new message.\n */\nexport const VerifyUserEmailResponseSchema: GenMessage<VerifyUserEmailResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsRequest\n */\nexport type GetUserGroupsRequest = Message<\"dashboard.notifications.v1.GetUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * if access token is not provided, all groups are off and user needs to check which groups are for him.\n *\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsRequest.\n * Use `create(GetUserGroupsRequestSchema)` to create a new message.\n */\nexport const GetUserGroupsRequestSchema: GenMessage<GetUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse\n */\nexport type GetUserGroupsResponse = Message<\"dashboard.notifications.v1.GetUserGroupsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.GetUserGroupsResponse.Group groups = 1;\n */\n groups: GetUserGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.\n * Use `create(GetUserGroupsResponseSchema)` to create a new message.\n */\nexport const GetUserGroupsResponseSchema: GenMessage<GetUserGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse.Group\n */\nexport type GetUserGroupsResponse_Group = Message<\"dashboard.notifications.v1.GetUserGroupsResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool is_on = 4;\n */\n isOn: boolean;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften?: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.Group.\n * Use `create(GetUserGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const GetUserGroupsResponse_GroupSchema: GenMessage<GetUserGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateUserGroupsRequest\n */\nexport type UpdateUserGroupsRequest = Message<\"dashboard.notifications.v1.UpdateUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: repeated string group_ids = 3;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateUserGroupsRequest.\n * Use `create(UpdateUserGroupsRequestSchema)` to create a new message.\n */\nexport const UpdateUserGroupsRequestSchema: GenMessage<UpdateUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 4);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsRequest\n */\nexport type GetNotificationUserSettingsRequest = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsRequest.\n * Use `create(GetNotificationUserSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsRequestSchema: GenMessage<GetNotificationUserSettingsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 5);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse\n */\nexport type GetNotificationUserSettingsResponse = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetNotificationUserSettingsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result success = 1;\n */\n value: GetNotificationUserSettingsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.\n * Use `create(GetNotificationUserSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponseSchema: GenMessage<GetNotificationUserSettingsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\n */\nexport type GetNotificationUserSettingsResponse_Result = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * it can be unavailable for certain of reasons.\n *\n * @generated from field: bool email_notification_available = 6;\n */\n emailNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool sms_notification_available = 7;\n */\n smsNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool mobile_notification_available = 8;\n */\n mobileNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool has_user_installed_app = 9;\n */\n hasUserInstalledApp: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result.\n * Use `create(GetNotificationUserSettingsResponse_ResultSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponse_ResultSchema: GenMessage<GetNotificationUserSettingsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationSettingRequest\n */\nexport type CreateNotificationSettingRequest = Message<\"dashboard.notifications.v1.CreateNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationSettingRequest.\n * Use `create(CreateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const CreateNotificationSettingRequestSchema: GenMessage<CreateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 7);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingRequest\n */\nexport type ReadNotificationSettingRequest = Message<\"dashboard.notifications.v1.ReadNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingRequest.\n * Use `create(ReadNotificationSettingRequestSchema)` to create a new message.\n */\nexport const ReadNotificationSettingRequestSchema: GenMessage<ReadNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 8);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationSettingRequest\n */\nexport type UpdateNotificationSettingRequest = Message<\"dashboard.notifications.v1.UpdateNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationSettingRequest.\n * Use `create(UpdateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingRequestSchema: GenMessage<UpdateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 9);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationSettingRequest\n */\nexport type DeleteNotificationSettingRequest = Message<\"dashboard.notifications.v1.DeleteNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationSettingRequest.\n * Use `create(DeleteNotificationSettingRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationSettingRequestSchema: GenMessage<DeleteNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 10);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse\n */\nexport type ReadNotificationSettingResponse = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationSettingResponse.Result success = 1;\n */\n value: ReadNotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.\n * Use `create(ReadNotificationSettingResponseSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponseSchema: GenMessage<ReadNotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse.Result\n */\nexport type ReadNotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.Result.\n * Use `create(ReadNotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponse_ResultSchema: GenMessage<ReadNotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse\n */\nexport type NotificationSettingResponse = Message<\"dashboard.notifications.v1.NotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationSettingResponse.Result success = 1;\n */\n value: NotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.\n * Use `create(NotificationSettingResponseSchema)` to create a new message.\n */\nexport const NotificationSettingResponseSchema: GenMessage<NotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse.Result\n */\nexport type NotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.NotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.Result.\n * Use `create(NotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationSettingResponse_ResultSchema: GenMessage<NotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupRequest\n */\nexport type CreateNotificationGroupRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 2;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 3;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 4;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupRequest.\n * Use `create(CreateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupRequestSchema: GenMessage<CreateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 13);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsRequest\n */\nexport type ReadNotificationGroupsRequest = Message<\"dashboard.notifications.v1.ReadNotificationGroupsRequest\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string group_name = 2;\n */\n groupName?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsRequest.\n * Use `create(ReadNotificationGroupsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsRequestSchema: GenMessage<ReadNotificationGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 14);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupRequest\n */\nexport type UpdateNotificationGroupRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 5;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupRequest.\n * Use `create(UpdateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupRequestSchema: GenMessage<UpdateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 15);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupRequest\n */\nexport type DeleteNotificationGroupRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupRequest.\n * Use `create(DeleteNotificationGroupRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupRequestSchema: GenMessage<DeleteNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 16);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse\n */\nexport type ReadNotificationGroupsResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupsResponse.Result success = 1;\n */\n value: ReadNotificationGroupsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.\n * Use `create(ReadNotificationGroupsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponseSchema: GenMessage<ReadNotificationGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\n */\nexport type ReadNotificationGroupsResponse_Group = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: int32 users = 5;\n */\n users: number;\n\n /**\n * @generated from field: bool is_public = 6;\n */\n isPublic: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group.\n * Use `create(ReadNotificationGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_GroupSchema: GenMessage<ReadNotificationGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\n */\nexport type ReadNotificationGroupsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationGroupsResponse.Group groups = 1;\n */\n groups: ReadNotificationGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result.\n * Use `create(ReadNotificationGroupsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_ResultSchema: GenMessage<ReadNotificationGroupsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse\n */\nexport type NotificationGroupResponse = Message<\"dashboard.notifications.v1.NotificationGroupResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupResponse.Result success = 1;\n */\n value: NotificationGroupResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.\n * Use `create(NotificationGroupResponseSchema)` to create a new message.\n */\nexport const NotificationGroupResponseSchema: GenMessage<NotificationGroupResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse.Result\n */\nexport type NotificationGroupResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.Result.\n * Use `create(NotificationGroupResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupResponse_ResultSchema: GenMessage<NotificationGroupResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationUserRequest\n */\nexport type CreateNotificationUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: repeated string groups = 3;\n */\n groups: string[];\n\n /**\n * @generated from field: optional string phone = 4;\n */\n phone?: string;\n\n /**\n * @generated from field: optional string first_name = 5;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 6;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 7;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 8;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 9;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationUserRequest.\n * Use `create(CreateNotificationUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationUserRequestSchema: GenMessage<CreateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 19);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersRequest\n */\nexport type ReadNotificationUsersRequest = Message<\"dashboard.notifications.v1.ReadNotificationUsersRequest\"> & {\n /**\n * @generated from field: repeated string user_ids = 1;\n */\n userIds: string[];\n\n /**\n * @generated from field: optional string user_email = 2;\n */\n userEmail?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersRequest.\n * Use `create(ReadNotificationUsersRequestSchema)` to create a new message.\n */\nexport const ReadNotificationUsersRequestSchema: GenMessage<ReadNotificationUsersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 20);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationUserRequest\n */\nexport type UpdateNotificationUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string access_token = 8;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationUserRequest.\n * Use `create(UpdateNotificationUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationUserRequestSchema: GenMessage<UpdateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 21);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationUserRequest\n */\nexport type DeleteNotificationUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationUserRequest\"> & {\n /**\n * @generated from field: string user_id = 1;\n */\n userId: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationUserRequest.\n * Use `create(DeleteNotificationUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationUserRequestSchema: GenMessage<DeleteNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 22);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse\n */\nexport type ReadNotificationUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationUsersResponse.Result success = 1;\n */\n value: ReadNotificationUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.\n * Use `create(ReadNotificationUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponseSchema: GenMessage<ReadNotificationUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse.Result\n */\nexport type ReadNotificationUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.Result.\n * Use `create(ReadNotificationUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponse_ResultSchema: GenMessage<ReadNotificationUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse\n */\nexport type NotificationUserResponse = Message<\"dashboard.notifications.v1.NotificationUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationUserResponse.Result success = 1;\n */\n value: NotificationUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.\n * Use `create(NotificationUserResponseSchema)` to create a new message.\n */\nexport const NotificationUserResponseSchema: GenMessage<NotificationUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse.Result\n */\nexport type NotificationUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.Result.\n * Use `create(NotificationUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationUserResponse_ResultSchema: GenMessage<NotificationUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupUserRequest\n */\nexport type CreateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupUserRequest.\n * Use `create(CreateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupUserRequestSchema: GenMessage<CreateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 25);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersRequests\n */\nexport type ReadNotificationGroupUsersRequests = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersRequests\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersRequests.\n * Use `create(ReadNotificationGroupUsersRequestsSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersRequestsSchema: GenMessage<ReadNotificationGroupUsersRequests> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 26);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupUserRequest\n */\nexport type UpdateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n\n /**\n * @generated from field: string notification_group_id = 2;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 3;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupUserRequest.\n * Use `create(UpdateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupUserRequestSchema: GenMessage<UpdateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 27);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupUserRequest\n */\nexport type DeleteNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupUserRequest.\n * Use `create(DeleteNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupUserRequestSchema: GenMessage<DeleteNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 28);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse\n */\nexport type ReadNotificationGroupUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result success = 1;\n */\n value: ReadNotificationGroupUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.\n * Use `create(ReadNotificationGroupUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponseSchema: GenMessage<ReadNotificationGroupUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\n */\nexport type ReadNotificationGroupUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result.\n * Use `create(ReadNotificationGroupUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponse_ResultSchema: GenMessage<ReadNotificationGroupUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse\n */\nexport type NotificationGroupUserResponse = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupUserResponse.Result success = 1;\n */\n value: NotificationGroupUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.\n * Use `create(NotificationGroupUserResponseSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponseSchema: GenMessage<NotificationGroupUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse.Result\n */\nexport type NotificationGroupUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.Result.\n * Use `create(NotificationGroupUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponse_ResultSchema: GenMessage<NotificationGroupUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessage\n */\nexport type NotificationMessage = Message<\"dashboard.notifications.v1.NotificationMessage\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessage.\n * Use `create(NotificationMessageSchema)` to create a new message.\n */\nexport const NotificationMessageSchema: GenMessage<NotificationMessage> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 31);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageRequest\n */\nexport type CreateNotificationMessageRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 1;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 2;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 3;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 4;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 5;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 6;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 7;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 8;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 9;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 10;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 11;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 12;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageRequest.\n * Use `create(CreateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageRequestSchema: GenMessage<CreateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 32);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesRequest\n */\nexport type GetSentNotificationMessagesRequest = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp start_time = 2;\n */\n startTime?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_time = 3;\n */\n endTime?: Timestamp;\n\n /**\n * @generated from field: optional bool include_export_data = 4;\n */\n includeExportData?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesRequest.\n * Use `create(GetSentNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesRequestSchema: GenMessage<GetSentNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 33);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse\n */\nexport type GetSentNotificationMessagesResponse = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetSentNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result success = 1;\n */\n value: GetSentNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.\n * Use `create(GetSentNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponseSchema: GenMessage<GetSentNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\n */\nexport type GetSentNotificationMessagesResponse_NotificationMessageStats = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\"> & {\n /**\n * @generated from field: int32 sent = 1;\n */\n sent: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats.\n * Use `create(GetSentNotificationMessagesResponse_NotificationMessageStatsSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_NotificationMessageStatsSchema: GenMessage<GetSentNotificationMessagesResponse_NotificationMessageStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\n */\nexport type GetSentNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats stats = 2;\n */\n stats?: GetSentNotificationMessagesResponse_NotificationMessageStats;\n\n /**\n * @generated from field: optional bytes export_data = 3;\n */\n exportData?: Uint8Array;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result.\n * Use `create(GetSentNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_ResultSchema: GenMessage<GetSentNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesRequest\n */\nexport type ReadNotificationMessagesRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesRequest.\n * Use `create(ReadNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesRequestSchema: GenMessage<ReadNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 35);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageRequest\n */\nexport type UpdateNotificationMessageRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageRequest.\n * Use `create(UpdateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageRequestSchema: GenMessage<UpdateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 36);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageRequest\n */\nexport type DeleteNotificationMessageRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageRequest.\n * Use `create(DeleteNotificationMessageRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageRequestSchema: GenMessage<DeleteNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 37);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse\n */\nexport type ReadNotificationMessagesResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessagesResponse.Result success = 1;\n */\n value: ReadNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.\n * Use `create(ReadNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponseSchema: GenMessage<ReadNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\n */\nexport type ReadNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result.\n * Use `create(ReadNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponse_ResultSchema: GenMessage<ReadNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse\n */\nexport type NotificationMessageResponse = Message<\"dashboard.notifications.v1.NotificationMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageResponse.Result success = 1;\n */\n value: NotificationMessageResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.\n * Use `create(NotificationMessageResponseSchema)` to create a new message.\n */\nexport const NotificationMessageResponseSchema: GenMessage<NotificationMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse.Result\n */\nexport type NotificationMessageResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.Result.\n * Use `create(NotificationMessageResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageResponse_ResultSchema: GenMessage<NotificationMessageResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageJobRequest\n */\nexport type CreateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 1;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 2;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 3;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 4;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 5;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 6;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageJobRequest.\n * Use `create(CreateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageJobRequestSchema: GenMessage<CreateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 40);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsRequest\n */\nexport type ReadNotificationMessageJobsRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsRequest\"> & {\n /**\n * @generated from field: optional string notification_message_job_id = 1;\n */\n notificationMessageJobId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsRequest.\n * Use `create(ReadNotificationMessageJobsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsRequestSchema: GenMessage<ReadNotificationMessageJobsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 41);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageJobRequest\n */\nexport type UpdateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: optional string error_message = 4;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageJobRequest.\n * Use `create(UpdateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageJobRequestSchema: GenMessage<UpdateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 42);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageJobRequest\n */\nexport type DeleteNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageJobRequest.\n * Use `create(DeleteNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageJobRequestSchema: GenMessage<DeleteNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 43);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse\n */\nexport type ReadNotificationMessageJobsResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessageJobsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result success = 1;\n */\n value: ReadNotificationMessageJobsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.\n * Use `create(ReadNotificationMessageJobsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponseSchema: GenMessage<ReadNotificationMessageJobsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\n */\nexport type ReadNotificationMessageJobsResponse_NotificationMessageJob = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 4;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 5;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 6;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 7;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob.\n * Use `create(ReadNotificationMessageJobsResponse_NotificationMessageJobSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_NotificationMessageJobSchema: GenMessage<ReadNotificationMessageJobsResponse_NotificationMessageJob> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\n */\nexport type ReadNotificationMessageJobsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob notification_message_jobs = 1;\n */\n notificationMessageJobs: ReadNotificationMessageJobsResponse_NotificationMessageJob[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result.\n * Use `create(ReadNotificationMessageJobsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_ResultSchema: GenMessage<ReadNotificationMessageJobsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse\n */\nexport type NotificationMessageJobResponse = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageJobResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobResponse.Result success = 1;\n */\n value: NotificationMessageJobResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.\n * Use `create(NotificationMessageJobResponseSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponseSchema: GenMessage<NotificationMessageJobResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse.Result\n */\nexport type NotificationMessageJobResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.Result.\n * Use `create(NotificationMessageJobResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponse_ResultSchema: GenMessage<NotificationMessageJobResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.User\n */\nexport type User = Message<\"dashboard.notifications.v1.User\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_app_installed = 9;\n */\n isAppInstalled?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.User.\n * Use `create(UserSchema)` to create a new message.\n */\nexport const UserSchema: GenMessage<User> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 46);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationProductsRequest\n */\nexport type ReadNotificationProductsRequest = Message<\"dashboard.notifications.v1.ReadNotificationProductsRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationProductsRequest.\n * Use `create(ReadNotificationProductsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationProductsRequestSchema: GenMessage<ReadNotificationProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 47);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountRequest\n */\nexport type GetProjectedRecipientCountRequest = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountRequest\"> & {\n /**\n * @generated from field: repeated string groups = 1;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 2;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 3;\n */\n users: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountRequest.\n * Use `create(GetProjectedRecipientCountRequestSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountRequestSchema: GenMessage<GetProjectedRecipientCountRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 48);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountResponse\n */\nexport type GetProjectedRecipientCountResponse = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountResponse\"> & {\n /**\n * @generated from field: int32 total = 1;\n */\n total: number;\n\n /**\n * @generated from field: int32 email_count = 2;\n */\n emailCount: number;\n\n /**\n * @generated from field: int32 sms_count = 3;\n */\n smsCount: number;\n\n /**\n * @generated from field: int32 mobile_count = 4;\n */\n mobileCount: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountResponse.\n * Use `create(GetProjectedRecipientCountResponseSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountResponseSchema: GenMessage<GetProjectedRecipientCountResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 49);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageStatus\n */\nexport enum NotificationMessageStatus {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: PLANNED = 1;\n */\n PLANNED = 1,\n\n /**\n * @generated from enum value: IN_PROGRESS = 2;\n */\n IN_PROGRESS = 2,\n\n /**\n * @generated from enum value: SENT = 3;\n */\n SENT = 3,\n\n /**\n * @generated from enum value: ERROR = 4;\n */\n ERROR = 4,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageStatus.\n */\nexport const NotificationMessageStatusSchema: GenEnum<NotificationMessageStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageJobStatus\n */\nexport enum NotificationMessageJobStatus {\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_TODO = 0;\n */\n TODO = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_IN_PROGRESS = 1;\n */\n IN_PROGRESS = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_SENT = 2;\n */\n SENT = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_ERROR = 3;\n */\n ERROR = 3,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageJobStatus.\n */\nexport const NotificationMessageJobStatusSchema: GenEnum<NotificationMessageJobStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from enum dashboard.notifications.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_NOT_FOUND = 2;\n */\n NOTIFICATION_SETTING_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_SETTING_FAILED = 3;\n */\n CREATE_NOTIFICATION_SETTING_FAILED = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_SETTING_FAILED = 4;\n */\n UPDATE_NOTIFICATION_SETTING_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_SETTING_FAILED = 5;\n */\n DELETE_NOTIFICATION_SETTING_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_NOT_FOUND = 6;\n */\n NOTIFICATION_GROUP_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUPS_NOT_FOUND = 7;\n */\n NOTIFICATION_GROUPS_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_FAILED = 8;\n */\n CREATE_NOTIFICATION_GROUP_FAILED = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_FAILED = 9;\n */\n UPDATE_NOTIFICATION_GROUP_FAILED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_FAILED = 10;\n */\n DELETE_NOTIFICATION_GROUP_FAILED = 10,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_NOT_FOUND = 11;\n */\n NOTIFICATION_USER_NOT_FOUND = 11,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USERS_NOT_FOUND = 12;\n */\n NOTIFICATION_USERS_NOT_FOUND = 12,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_USER_FAILED = 13;\n */\n CREATE_NOTIFICATION_USER_FAILED = 13,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_USER_FAILED = 14;\n */\n UPDATE_NOTIFICATION_USER_FAILED = 14,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_USER_FAILED = 15;\n */\n DELETE_NOTIFICATION_USER_FAILED = 15,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_USER_NOT_FOUND = 16;\n */\n NOTIFICATION_GROUP_USER_NOT_FOUND = 16,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_USER_FAILED = 17;\n */\n CREATE_NOTIFICATION_GROUP_USER_FAILED = 17,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18;\n */\n UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_USER_FAILED = 19;\n */\n DELETE_NOTIFICATION_GROUP_USER_FAILED = 19,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_NOT_FOUND = 20;\n */\n NOTIFICATION_MESSAGE_NOT_FOUND = 20,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGES_NOT_FOUND = 21;\n */\n NOTIFICATION_MESSAGES_NOT_FOUND = 21,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_FAILED = 22;\n */\n CREATE_NOTIFICATION_MESSAGE_FAILED = 22,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_FAILED = 23;\n */\n UPDATE_NOTIFICATION_MESSAGE_FAILED = 23,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_FAILED = 24;\n */\n DELETE_NOTIFICATION_MESSAGE_FAILED = 24,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25;\n */\n NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26;\n */\n NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27;\n */\n CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28;\n */\n UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29;\n */\n DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_ALREADY_EXIST = 30;\n */\n NOTIFICATION_SETTING_ALREADY_EXIST = 30,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31;\n */\n NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_ALREADY_EXIST = 32;\n */\n NOTIFICATION_USER_ALREADY_EXIST = 32,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_ALREADY_EXIST = 33;\n */\n NOTIFICATION_GROUP_ALREADY_EXIST = 33,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from service dashboard.notifications.v1.NotificationsService\n */\nexport const NotificationsService: GenService<{\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\n createNotificationSetting: {\n methodKind: \"unary\";\n input: typeof CreateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\n readNotificationSetting: {\n methodKind: \"unary\";\n input: typeof ReadNotificationSettingRequestSchema;\n output: typeof ReadNotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\n updateNotificationSetting: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\n deleteNotificationSetting: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\n createNotificationGroup: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\n readNotificationGroups: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupsRequestSchema;\n output: typeof ReadNotificationGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\n updateNotificationGroup: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\n deleteNotificationGroup: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\n createNotificationUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\n readNotificationUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationUsersRequestSchema;\n output: typeof ReadNotificationUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\n updateNotificationUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\n deleteNotificationUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\n createNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\n readNotificationGroupUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupUsersRequestsSchema;\n output: typeof ReadNotificationGroupUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\n updateNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\n deleteNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\n createNotificationMessage: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\n readNotificationMessages: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessagesRequestSchema;\n output: typeof ReadNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\n getSentNotificationMessages: {\n methodKind: \"unary\";\n input: typeof GetSentNotificationMessagesRequestSchema;\n output: typeof GetSentNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\n updateNotificationMessage: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\n deleteNotificationMessage: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\n createNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\n readNotificationMessageJobs: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessageJobsRequestSchema;\n output: typeof ReadNotificationMessageJobsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\n updateNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\n deleteNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\n readNotificationProducts: {\n methodKind: \"unary\";\n input: typeof ReadNotificationProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\n getNotificationUserSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationUserSettingsRequestSchema;\n output: typeof GetNotificationUserSettingsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\n verifyUserEmail: {\n methodKind: \"unary\";\n input: typeof VerifyUserEmailRequestSchema;\n output: typeof VerifyUserEmailResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\n getUserGroups: {\n methodKind: \"unary\";\n input: typeof GetUserGroupsRequestSchema;\n output: typeof GetUserGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\n updateUserGroups: {\n methodKind: \"unary\";\n input: typeof UpdateUserGroupsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\n getProjectedRecipientCount: {\n methodKind: \"unary\";\n input: typeof GetProjectedRecipientCountRequestSchema;\n output: typeof GetProjectedRecipientCountResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_notifications, 0);\n\n","// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/product.proto (package dashboard.product.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/product.proto.\n */\nexport const file_dashboard_v1_product: GenFile = /*@__PURE__*/\n fileDesc(\"ChpkYXNoYm9hcmQvdjEvcHJvZHVjdC5wcm90bxIUZGFzaGJvYXJkLnByb2R1Y3QudjEiKwoVQXJjaGl2ZVByb2R1Y3RSZXF1ZXN0EhIKCnByb2R1Y3RfaWQYASABKAkiLQoXRHVwbGljYXRlUHJvZHVjdFJlcXVlc3QSEgoKcHJvZHVjdF9pZBgBIAEoCSI5ChhEdXBsaWNhdGVQcm9kdWN0UmVzcG9uc2USHQoVZHVwbGljYXRlZF9wc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EuR2V0RmlsZUFjY2Vzc01lbWJlcnNSZXNwb25zZRJxChBHaXZlQWNjZXNzVG9GaWxlEi0uZGFzaGJvYXJkLnByb2R1Y3QudjEuR2l2ZUFjY2Vzc1RvRmlsZVJlcXVlc3QaLi5kYXNoYm9hcmQucHJvZHVjdC52MS5HaXZlQWNjZXNzVG9GaWxlUmVzcG9uc2USdwoSUmVtb3ZlQWNjZXNzVG9GaWxlEi8uZGFzaGJvYXJkLnByb2R1Y3QudjEuUmVtb3ZlQWNjZXNzVG9GaWxlUmVxdWVzdBowLmRhc2hib2FyZC5wcm9kdWN0LnYxLlJlbW92ZUFjY2Vzc1RvRmlsZVJlc3BvbnNlEmEKDkFyY2hpdmVQcm9kdWN0EisuZGFzaGJvYXJkLnByb2R1Y3QudjEuQXJjaGl2ZVByb2R1Y3RSZXF1ZXN0GiIuZGFzaGJvYXJkLnByb2R1Y3QudjEuQm9vbFJlc3BvbnNlEmMKEFVuYXJjaGl2ZVByb2R1Y3QSKy5kYXNoYm9hcmQucHJvZHVjdC52MS5BcmNoaXZlUHJvZHVjdFJlcXVlc3QaIi5kYXNoYm9hcmQucHJvZHVjdC52MS5Cb29sUmVzcG9uc2ViBnByb3RvMw\", [file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message dashboard.product.v1.ArchiveProductRequest\n */\nexport type ArchiveProductRequest = Message<\"dashboard.product.v1.ArchiveProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.ArchiveProductRequest.\n * Use `create(ArchiveProductRequestSchema)` to create a new message.\n */\nexport const ArchiveProductRequestSchema: GenMessage<ArchiveProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductRequest\n */\nexport type DuplicateProductRequest = Message<\"dashboard.product.v1.DuplicateProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductRequest.\n * Use `create(DuplicateProductRequestSchema)` to create a new message.\n */\nexport const DuplicateProductRequestSchema: GenMessage<DuplicateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductResponse\n */\nexport type DuplicateProductResponse = Message<\"dashboard.product.v1.DuplicateProductResponse\"> & {\n /**\n * @generated from field: string duplicated_product_id = 1;\n */\n duplicatedProductId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductResponse.\n * Use `create(DuplicateProductResponseSchema)` to create a new message.\n */\nexport const DuplicateProductResponseSchema: GenMessage<DuplicateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 2);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesRequest\n */\nexport type ExchangeProductIDsToNamesRequest = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesRequest.\n * Use `create(ExchangeProductIDsToNamesRequestSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesRequestSchema: GenMessage<ExchangeProductIDsToNamesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 3);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesResponse\n */\nexport type ExchangeProductIDsToNamesResponse = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesResponse\"> & {\n /**\n * @generated from field: map<string, string> product_names = 1;\n */\n productNames: { [key: string]: string };\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesResponse.\n * Use `create(ExchangeProductIDsToNamesResponseSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesResponseSchema: GenMessage<ExchangeProductIDsToNamesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 4);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersRequest\n */\nexport type GetFileAccessMembersRequest = Message<\"dashboard.product.v1.GetFileAccessMembersRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional string variant_id = 3;\n */\n variantId?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersRequest.\n * Use `create(GetFileAccessMembersRequestSchema)` to create a new message.\n */\nexport const GetFileAccessMembersRequestSchema: GenMessage<GetFileAccessMembersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 5);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse\n */\nexport type GetFileAccessMembersResponse = Message<\"dashboard.product.v1.GetFileAccessMembersResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetFileAccessMembersResponse.Value members = 1;\n */\n members: GetFileAccessMembersResponse_Value[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.\n * Use `create(GetFileAccessMembersResponseSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponseSchema: GenMessage<GetFileAccessMembersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 6);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse.Value\n */\nexport type GetFileAccessMembersResponse_Value = Message<\"dashboard.product.v1.GetFileAccessMembersResponse.Value\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.Value.\n * Use `create(GetFileAccessMembersResponse_ValueSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponse_ValueSchema: GenMessage<GetFileAccessMembersResponse_Value> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 6, 0);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileRequest\n */\nexport type GiveAccessToFileRequest = Message<\"dashboard.product.v1.GiveAccessToFileRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string variant_id = 2;\n */\n variantId?: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileRequest.\n * Use `create(GiveAccessToFileRequestSchema)` to create a new message.\n */\nexport const GiveAccessToFileRequestSchema: GenMessage<GiveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 7);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileResponse\n */\nexport type GiveAccessToFileResponse = Message<\"dashboard.product.v1.GiveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileResponse.\n * Use `create(GiveAccessToFileResponseSchema)` to create a new message.\n */\nexport const GiveAccessToFileResponseSchema: GenMessage<GiveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 8);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileRequest\n */\nexport type RemoveAccessToFileRequest = Message<\"dashboard.product.v1.RemoveAccessToFileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileRequest.\n * Use `create(RemoveAccessToFileRequestSchema)` to create a new message.\n */\nexport const RemoveAccessToFileRequestSchema: GenMessage<RemoveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 9);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileResponse\n */\nexport type RemoveAccessToFileResponse = Message<\"dashboard.product.v1.RemoveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileResponse.\n * Use `create(RemoveAccessToFileResponseSchema)` to create a new message.\n */\nexport const RemoveAccessToFileResponseSchema: GenMessage<RemoveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 10);\n\n/**\n * @generated from message dashboard.product.v1.SendTestEmailWithMessageRequest\n */\nexport type SendTestEmailWithMessageRequest = Message<\"dashboard.product.v1.SendTestEmailWithMessageRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: string html_message = 2;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SendTestEmailWithMessageRequest.\n * Use `create(SendTestEmailWithMessageRequestSchema)` to create a new message.\n */\nexport const SendTestEmailWithMessageRequestSchema: GenMessage<SendTestEmailWithMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 11);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsRequest\n */\nexport type GetProductVariantsRequest = Message<\"dashboard.product.v1.GetProductVariantsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsRequest.\n * Use `create(GetProductVariantsRequestSchema)` to create a new message.\n */\nexport const GetProductVariantsRequestSchema: GenMessage<GetProductVariantsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 12);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse\n */\nexport type GetProductVariantsResponse = Message<\"dashboard.product.v1.GetProductVariantsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductVariantsResponse.SingleVariant variants = 1;\n */\n variants: GetProductVariantsResponse_SingleVariant[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.\n * Use `create(GetProductVariantsResponseSchema)` to create a new message.\n */\nexport const GetProductVariantsResponseSchema: GenMessage<GetProductVariantsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 13);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse.SingleVariant\n */\nexport type GetProductVariantsResponse_SingleVariant = Message<\"dashboard.product.v1.GetProductVariantsResponse.SingleVariant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.SingleVariant.\n * Use `create(GetProductVariantsResponse_SingleVariantSchema)` to create a new message.\n */\nexport const GetProductVariantsResponse_SingleVariantSchema: GenMessage<GetProductVariantsResponse_SingleVariant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 13, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\n */\nexport type UpdateProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * @generated from field: string html_message = 3;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 4;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest.\n * Use `create(UpdateProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const UpdateProductAfterPurchaseMessageRequestSchema: GenMessage<UpdateProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 14);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageRequest\n */\nexport type GetProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageRequest.\n * Use `create(GetProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageRequestSchema: GenMessage<GetProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 15);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse\n */\nexport type GetProductAfterPurchaseMessageResponse = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAfterPurchaseMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success success = 1;\n */\n value: GetProductAfterPurchaseMessageResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.\n * Use `create(GetProductAfterPurchaseMessageResponseSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponseSchema: GenMessage<GetProductAfterPurchaseMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 16);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\n */\nexport type GetProductAfterPurchaseMessageResponse_Success = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\"> & {\n /**\n * @generated from field: optional string message = 1;\n */\n message?: string;\n\n /**\n * @generated from field: optional string html_message = 2;\n */\n htmlMessage?: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success.\n * Use `create(GetProductAfterPurchaseMessageResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponse_SuccessSchema: GenMessage<GetProductAfterPurchaseMessageResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 16, 0);\n\n/**\n * @generated from message dashboard.product.v1.PublishProductIfNeededRequest\n */\nexport type PublishProductIfNeededRequest = Message<\"dashboard.product.v1.PublishProductIfNeededRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.PublishProductIfNeededRequest.\n * Use `create(PublishProductIfNeededRequestSchema)` to create a new message.\n */\nexport const PublishProductIfNeededRequestSchema: GenMessage<PublishProductIfNeededRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 17);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\n */\nexport type UpdateProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: bool send_ticket_after_purchase = 2;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest.\n * Use `create(UpdateProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductSendTicketAfterPurchaseRequestSchema: GenMessage<UpdateProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 18);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\n */\nexport type UpdateProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string audiobook_id = 2;\n */\n audiobookId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest.\n * Use `create(UpdateProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductAudiobookAfterPurchaseRequestSchema: GenMessage<UpdateProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 19);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\n */\nexport type GetProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest.\n * Use `create(GetProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseRequestSchema: GenMessage<GetProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 20);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\n */\nexport type GetProductSendTicketAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductSendTicketAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.\n * Use `create(GetProductSendTicketAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponseSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\n */\nexport type GetProductSendTicketAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: bool send_ticket_after_purchase = 1;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success.\n * Use `create(GetProductSendTicketAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\n */\nexport type GetProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest.\n * Use `create(GetProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseRequestSchema: GenMessage<GetProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 22);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\n */\nexport type GetProductAudiobookAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductAudiobookAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.\n * Use `create(GetProductAudiobookAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponseSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 23);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\n */\nexport type GetProductAudiobookAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string audiobook_title = 2;\n */\n audiobookTitle: string;\n\n /**\n * @generated from field: string audiobook_image_url = 3;\n */\n audiobookImageUrl: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success.\n * Use `create(GetProductAudiobookAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 23, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsRequest\n */\nexport type SearchProductsRequest = Message<\"dashboard.product.v1.SearchProductsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsRequest.\n * Use `create(SearchProductsRequestSchema)` to create a new message.\n */\nexport const SearchProductsRequestSchema: GenMessage<SearchProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 24);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse\n */\nexport type SearchProductsResponse = Message<\"dashboard.product.v1.SearchProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.SearchProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.SearchProductsResponse.Result success = 1;\n */\n value: SearchProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.\n * Use `create(SearchProductsResponseSchema)` to create a new message.\n */\nexport const SearchProductsResponseSchema: GenMessage<SearchProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 25);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.SingleProduct\n */\nexport type SearchProductsResponse_SingleProduct = Message<\"dashboard.product.v1.SearchProductsResponse.SingleProduct\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string image_url = 3;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.SingleProduct.\n * Use `create(SearchProductsResponse_SingleProductSchema)` to create a new message.\n */\nexport const SearchProductsResponse_SingleProductSchema: GenMessage<SearchProductsResponse_SingleProduct> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 25, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.Result\n */\nexport type SearchProductsResponse_Result = Message<\"dashboard.product.v1.SearchProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.SearchProductsResponse.SingleProduct products = 1;\n */\n products: SearchProductsResponse_SingleProduct[];\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.Result.\n * Use `create(SearchProductsResponse_ResultSchema)` to create a new message.\n */\nexport const SearchProductsResponse_ResultSchema: GenMessage<SearchProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 25, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesRequest\n */\nexport type GetProductBoughtArticlesRequest = Message<\"dashboard.product.v1.GetProductBoughtArticlesRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesRequest.\n * Use `create(GetProductBoughtArticlesRequestSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesRequestSchema: GenMessage<GetProductBoughtArticlesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 26);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesResponse\n */\nexport type GetProductBoughtArticlesResponse = Message<\"dashboard.product.v1.GetProductBoughtArticlesResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.ProductBoughtArticle articles = 1;\n */\n articles: ProductBoughtArticle[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesResponse.\n * Use `create(GetProductBoughtArticlesResponseSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesResponseSchema: GenMessage<GetProductBoughtArticlesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 27);\n\n/**\n * @generated from message dashboard.product.v1.ProductBoughtArticle\n */\nexport type ProductBoughtArticle = Message<\"dashboard.product.v1.ProductBoughtArticle\"> & {\n /**\n * empty string if new.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: optional string content = 3;\n */\n content?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductBoughtArticle.\n * Use `create(ProductBoughtArticleSchema)` to create a new message.\n */\nexport const ProductBoughtArticleSchema: GenMessage<ProductBoughtArticle> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 28);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductBoughtArticleRequest\n */\nexport type UpdateProductBoughtArticleRequest = Message<\"dashboard.product.v1.UpdateProductBoughtArticleRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductBoughtArticle article = 1;\n */\n article?: ProductBoughtArticle;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductBoughtArticleRequest.\n * Use `create(UpdateProductBoughtArticleRequestSchema)` to create a new message.\n */\nexport const UpdateProductBoughtArticleRequestSchema: GenMessage<UpdateProductBoughtArticleRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 29);\n\n/**\n * @generated from message dashboard.product.v1.GetProductRequest\n */\nexport type GetProductRequest = Message<\"dashboard.product.v1.GetProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductRequest.\n * Use `create(GetProductRequestSchema)` to create a new message.\n */\nexport const GetProductRequestSchema: GenMessage<GetProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse\n */\nexport type GetProductResponse = Message<\"dashboard.product.v1.GetProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n value: ProductV2;\n case: \"product\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductResponse.SellStats sell_stats = 3;\n */\n sellStats: GetProductResponse_SellStats[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.\n * Use `create(GetProductResponseSchema)` to create a new message.\n */\nexport const GetProductResponseSchema: GenMessage<GetProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 31);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse.SellStats\n */\nexport type GetProductResponse_SellStats = Message<\"dashboard.product.v1.GetProductResponse.SellStats\"> & {\n /**\n * @generated from field: string productID = 1;\n */\n productID: string;\n\n /**\n * @generated from field: int32 sold = 2;\n */\n sold: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.SellStats.\n * Use `create(GetProductResponse_SellStatsSchema)` to create a new message.\n */\nexport const GetProductResponse_SellStatsSchema: GenMessage<GetProductResponse_SellStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 31, 0);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductRequest\n */\nexport type CreateOrUpdateProductRequest = Message<\"dashboard.product.v1.CreateOrUpdateProductRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n product?: ProductV2;\n\n /**\n * @generated from field: bool is_description_different = 2;\n */\n isDescriptionDifferent: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductRequest.\n * Use `create(CreateOrUpdateProductRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductRequestSchema: GenMessage<CreateOrUpdateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 32);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductUniqueSlugRequest\n */\nexport type UpdateProductUniqueSlugRequest = Message<\"dashboard.product.v1.UpdateProductUniqueSlugRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string new_unique_slug = 2;\n */\n newUniqueSlug: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductUniqueSlugRequest.\n * Use `create(UpdateProductUniqueSlugRequestSchema)` to create a new message.\n */\nexport const UpdateProductUniqueSlugRequestSchema: GenMessage<UpdateProductUniqueSlugRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 33);\n\n/**\n * @generated from message dashboard.product.v1.ProductV2\n */\nexport type ProductV2 = Message<\"dashboard.product.v1.ProductV2\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string unique_slug = 2;\n */\n uniqueSlug: string;\n\n /**\n * @generated from field: string project_id = 3;\n */\n projectId: string;\n\n /**\n * @generated from field: dashboard.product.v1.ProductV2.Status status = 4;\n */\n status: ProductV2_Status;\n\n /**\n * @generated from field: optional bool is_recurring = 5;\n */\n isRecurring?: boolean;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 6;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: string name = 7;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 8;\n */\n description?: string;\n\n /**\n * @generated from field: optional string html_description = 9;\n */\n htmlDescription?: string;\n\n /**\n * @generated from field: optional string short_description = 10;\n */\n shortDescription?: string;\n\n /**\n * @generated from field: optional int32 price_amount = 11;\n */\n priceAmount?: number;\n\n /**\n * @generated from field: optional string price_currency = 12;\n */\n priceCurrency?: string;\n\n /**\n * @generated from field: optional float tax = 13;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 14;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: map<string, string> features = 15;\n */\n features: { [key: string]: string };\n\n /**\n * @generated from field: repeated string images = 16;\n */\n images: string[];\n\n /**\n * @generated from field: optional string thumbnail_image = 17;\n */\n thumbnailImage?: string;\n\n /**\n * @generated from field: optional string main_image = 18;\n */\n mainImage?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.Variant variants = 19;\n */\n variants: Variant[];\n\n /**\n * @generated from field: optional bool send_ticket_after_purchase = 20;\n */\n sendTicketAfterPurchase?: boolean;\n\n /**\n * @generated from field: optional bool is_product_visible_on_list = 21;\n */\n isProductVisibleOnList?: boolean;\n\n /**\n * @generated from field: optional bool is_deliverable = 24;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional bool force_manual_payment = 29;\n */\n forceManualPayment?: boolean;\n\n /**\n * @generated from field: int64 created_at = 25;\n */\n createdAt: bigint;\n\n /**\n * @generated from field: int64 updated_at = 26;\n */\n updatedAt: bigint;\n\n /**\n * @generated from field: optional int64 deleted_at = 27;\n */\n deletedAt?: bigint;\n\n /**\n * @generated from field: optional bool archived = 28;\n */\n archived?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductV2.\n * Use `create(ProductV2Schema)` to create a new message.\n */\nexport const ProductV2Schema: GenMessage<ProductV2> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 34);\n\n/**\n * @generated from enum dashboard.product.v1.ProductV2.Status\n */\nexport enum ProductV2_Status {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: UNPUBLISHED = 1;\n */\n UNPUBLISHED = 1,\n\n /**\n * @generated from enum value: PUBLISHED = 2;\n */\n PUBLISHED = 2,\n}\n\n/**\n * Describes the enum dashboard.product.v1.ProductV2.Status.\n */\nexport const ProductV2_StatusSchema: GenEnum<ProductV2_Status> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 34, 0);\n\n/**\n * @generated from message dashboard.product.v1.Recurring\n */\nexport type Recurring = Message<\"dashboard.product.v1.Recurring\"> & {\n /**\n * @generated from field: dashboard.product.v1.BillingPeriod billingPeriod = 1;\n */\n billingPeriod: BillingPeriod;\n\n /**\n * @generated from field: optional int32 trial_days = 2;\n */\n trialDays?: number;\n\n /**\n * @generated from field: optional int32 number_of_payments = 3;\n */\n numberOfPayments?: number;\n\n /**\n * @generated from field: optional bool change_amount_for_currentSubscribers = 4;\n */\n changeAmountForCurrentSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool remove_access_for_cancelled_subscribers = 5;\n */\n removeAccessForCancelledSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool should_send_trial_period_reminder = 6;\n */\n shouldSendTrialPeriodReminder?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.Recurring.\n * Use `create(RecurringSchema)` to create a new message.\n */\nexport const RecurringSchema: GenMessage<Recurring> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 35);\n\n/**\n * @generated from message dashboard.product.v1.VariantDiscount\n */\nexport type VariantDiscount = Message<\"dashboard.product.v1.VariantDiscount\"> & {\n /**\n * @generated from field: dashboard.product.v1.VariantDiscount.Type type = 1;\n */\n type: VariantDiscount_Type;\n\n /**\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_date = 3;\n */\n endDate?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.VariantDiscount.\n * Use `create(VariantDiscountSchema)` to create a new message.\n */\nexport const VariantDiscountSchema: GenMessage<VariantDiscount> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 36);\n\n/**\n * @generated from enum dashboard.product.v1.VariantDiscount.Type\n */\nexport enum VariantDiscount_Type {\n /**\n * @generated from enum value: FIXED = 0;\n */\n FIXED = 0,\n\n /**\n * @generated from enum value: PERCENTAGE = 1;\n */\n PERCENTAGE = 1,\n}\n\n/**\n * Describes the enum dashboard.product.v1.VariantDiscount.Type.\n */\nexport const VariantDiscount_TypeSchema: GenEnum<VariantDiscount_Type> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 36, 0);\n\n/**\n * @generated from message dashboard.product.v1.Variant\n */\nexport type Variant = Message<\"dashboard.product.v1.Variant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string image_url = 4;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: int32 price_amount = 5;\n */\n priceAmount: number;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n\n /**\n * @generated from field: optional int32 tax = 7;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 8;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 9;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: optional bool is_deliverable = 10;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional int32 lowest_price_30_days = 11;\n */\n lowestPrice30Days?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.VariantDiscount discount = 12;\n */\n discount?: VariantDiscount;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp estimated_delivery_at = 13;\n */\n estimatedDeliveryAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.Variant.\n * Use `create(VariantSchema)` to create a new message.\n */\nexport const VariantSchema: GenMessage<Variant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 37);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductResponse\n */\nexport type CreateOrUpdateProductResponse = Message<\"dashboard.product.v1.CreateOrUpdateProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.CreateOrUpdateProductResponse.result\n */\n result: {\n /**\n * @generated from field: string product_id = 1;\n */\n value: string;\n case: \"productId\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductResponse.\n * Use `create(CreateOrUpdateProductResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductResponseSchema: GenMessage<CreateOrUpdateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 38);\n\n/**\n * @generated from message dashboard.product.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.product.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 39);\n\n/**\n * @generated from enum dashboard.product.v1.BillingPeriod\n */\nexport enum BillingPeriod {\n /**\n * @generated from enum value: BILLING_PERIOD_DAILY = 0;\n */\n DAILY = 0,\n\n /**\n * @generated from enum value: BILLING_PERIOD_WEEKLY = 1;\n */\n WEEKLY = 1,\n\n /**\n * @generated from enum value: BILLING_PERIOD_MONTHLY = 2;\n */\n MONTHLY = 2,\n\n /**\n * @generated from enum value: BILLING_PERIOD_QUARTERLY = 3;\n */\n QUARTERLY = 3,\n\n /**\n * @generated from enum value: BILLING_PERIOD_SEMI_ANNUALLY = 4;\n */\n SEMI_ANNUALLY = 4,\n\n /**\n * @generated from enum value: BILLING_PERIOD_ANNUALLY = 5;\n */\n ANNUALLY = 5,\n}\n\n/**\n * Describes the enum dashboard.product.v1.BillingPeriod.\n */\nexport const BillingPeriodSchema: GenEnum<BillingPeriod> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from enum dashboard.product.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRODUCT_NOT_FOUND = 2;\n */\n PRODUCT_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INVALID_PRODUCT_ID = 3;\n */\n INVALID_PRODUCT_ID = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_SLUG_ALREADY_TAKEN = 4;\n */\n SLUG_ALREADY_TAKEN = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CANNOT_CREATE_PRODUCT = 5;\n */\n CANNOT_CREATE_PRODUCT = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NO_ACCESS = 6;\n */\n NO_ACCESS = 6,\n}\n\n/**\n * Describes the enum dashboard.product.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from service dashboard.product.v1.ProductRouter\n */\nexport const ProductRouter: GenService<{\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.CreateOrUpdateProduct\n */\n createOrUpdateProduct: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateProductRequestSchema;\n output: typeof CreateOrUpdateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.DuplicateProduct\n */\n duplicateProduct: {\n methodKind: \"unary\";\n input: typeof DuplicateProductRequestSchema;\n output: typeof DuplicateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductUniqueSlug\n */\n updateProductUniqueSlug: {\n methodKind: \"unary\";\n input: typeof UpdateProductUniqueSlugRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProduct\n */\n getProduct: {\n methodKind: \"unary\";\n input: typeof GetProductRequestSchema;\n output: typeof GetProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductSendTicketAfterPurchase\n */\n getProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductSendTicketAfterPurchaseRequestSchema;\n output: typeof GetProductSendTicketAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAudiobookAfterPurchase\n */\n getProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductAudiobookAfterPurchaseRequestSchema;\n output: typeof GetProductAudiobookAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductSendTicketAfterPurchase\n */\n updateProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductSendTicketAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAudiobookAfterPurchase\n */\n updateProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductAudiobookAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.PublishProductIfNeeded\n */\n publishProductIfNeeded: {\n methodKind: \"unary\";\n input: typeof PublishProductIfNeededRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAfterPurchaseMessage\n */\n getProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof GetProductAfterPurchaseMessageRequestSchema;\n output: typeof GetProductAfterPurchaseMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAfterPurchaseMessage\n */\n updateProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof UpdateProductAfterPurchaseMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductVariants\n */\n getProductVariants: {\n methodKind: \"unary\";\n input: typeof GetProductVariantsRequestSchema;\n output: typeof GetProductVariantsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SendTestEmailWithMessage\n */\n sendTestEmailWithMessage: {\n methodKind: \"unary\";\n input: typeof SendTestEmailWithMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SearchProducts\n */\n searchProducts: {\n methodKind: \"unary\";\n input: typeof SearchProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ExchangeProductIDsToNames\n */\n exchangeProductIDsToNames: {\n methodKind: \"unary\";\n input: typeof ExchangeProductIDsToNamesRequestSchema;\n output: typeof ExchangeProductIDsToNamesResponseSchema;\n },\n /**\n * After product buy methods\n *\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductBoughtArticles\n */\n getProductBoughtArticles: {\n methodKind: \"unary\";\n input: typeof GetProductBoughtArticlesRequestSchema;\n output: typeof GetProductBoughtArticlesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductBoughtArticle\n */\n updateProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof UpdateProductBoughtArticleRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.AddProductBoughtArticle\n */\n addProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof ProductBoughtArticleSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetFileAccessMembers\n */\n getFileAccessMembers: {\n methodKind: \"unary\";\n input: typeof GetFileAccessMembersRequestSchema;\n output: typeof GetFileAccessMembersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GiveAccessToFile\n */\n giveAccessToFile: {\n methodKind: \"unary\";\n input: typeof GiveAccessToFileRequestSchema;\n output: typeof GiveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.RemoveAccessToFile\n */\n removeAccessToFile: {\n methodKind: \"unary\";\n input: typeof RemoveAccessToFileRequestSchema;\n output: typeof RemoveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ArchiveProduct\n */\n archiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UnarchiveProduct\n */\n unarchiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_product, 0);\n\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { PublicApiService } from \"./public_api_pb\";\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\nexport const getOrder = PublicApiService.method.getOrder;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\nexport const getOrders = PublicApiService.method.getOrders;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\nexport const getOrderRetryUrl = PublicApiService.method.getOrderRetryUrl;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\nexport const userPanelLogin = PublicApiService.method.userPanelLogin;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\nexport const userPanelLoginWithCode = PublicApiService.method.userPanelLoginWithCode;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\nexport const userPanelLogout = PublicApiService.method.userPanelLogout;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\nexport const userPanelDeleteAccount = PublicApiService.method.userPanelDeleteAccount;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\nexport const userPanelGetProducts = PublicApiService.method.userPanelGetProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\nexport const userPanelGetAudiobookDetails = PublicApiService.method.userPanelGetAudiobookDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\nexport const userPanelGetAudiobookDetailsDownloadURLs = PublicApiService.method.userPanelGetAudiobookDetailsDownloadURLs;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\nexport const userPanelGetFileDetails = PublicApiService.method.userPanelGetFileDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\nexport const userPanelGetTicketDetails = PublicApiService.method.userPanelGetTicketDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\nexport const userPanelGetCourseDetails = PublicApiService.method.userPanelGetCourseDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\nexport const pushSendDeviceToken = PublicApiService.method.pushSendDeviceToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\nexport const pushEvent = PublicApiService.method.pushEvent;\n\n/**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\nexport const shouldShopProducts = PublicApiService.method.shouldShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\nexport const getShopProducts = PublicApiService.method.getShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\nexport const didBuyProduct = PublicApiService.method.didBuyProduct;\n\n/**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\nexport const getNotificationSettings = PublicApiService.method.getNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\nexport const getNotificationSettingsDetails = PublicApiService.method.getNotificationSettingsDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\nexport const updateGlobalNotificationSettings = PublicApiService.method.updateGlobalNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\nexport const updateNotificationSettings = PublicApiService.method.updateNotificationSettings;\n\n/**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\nexport const getAvailableCountForProduct = PublicApiService.method.getAvailableCountForProduct;\n\n/**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\nexport const isOneClickPaymentAvailable = PublicApiService.method.isOneClickPaymentAvailable;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\nexport const getPreOrderDetails = PublicApiService.method.getPreOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\nexport const applePayValidateMerchant = PublicApiService.method.applePayValidateMerchant;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\nexport const authorizeOneClickPayment = PublicApiService.method.authorizeOneClickPayment;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\nexport const notifyUserAboutProductAvailability = PublicApiService.method.notifyUserAboutProductAvailability;\n\n/**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\nexport const getPublicOrderDetails = PublicApiService.method.getPublicOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\nexport const addPublicOrderComment = PublicApiService.method.addPublicOrderComment;\n\n/**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\nexport const getOrderForTestimonial = PublicApiService.method.getOrderForTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\nexport const submitTestimonial = PublicApiService.method.submitTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\nexport const getTestimonialUploadUrl = PublicApiService.method.getTestimonialUploadUrl;\n","import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-xs\": \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot.Root : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","import * as React from \"react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardContent,\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n","import * as React from \"react\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport { MinusIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction InputOTP({\n className,\n containerClassName,\n ...props\n}: React.ComponentProps<typeof OTPInput> & {\n containerClassName?: string\n}) {\n return (\n <OTPInput\n data-slot=\"input-otp\"\n containerClassName={cn(\n \"flex items-center gap-2 has-disabled:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n )\n}\n\nfunction InputOTPGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"input-otp-group\"\n className={cn(\"flex items-center\", className)}\n {...props}\n />\n )\n}\n\nfunction InputOTPSlot({\n index,\n className,\n ...props\n}: React.ComponentProps<\"div\"> & {\n index: number\n}) {\n const inputOTPContext = React.useContext(OTPInputContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {}\n\n return (\n <div\n data-slot=\"input-otp-slot\"\n data-active={isActive}\n className={cn(\n \"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\" />\n </div>\n )}\n </div>\n )\n}\n\nfunction InputOTPSeparator({ ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"input-otp-separator\" role=\"separator\" {...props}>\n <MinusIcon />\n </div>\n )\n}\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n","export function LoadingIndicator() {\n return (\n <div className=\"flex items-center gap-2\">\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current [animation-delay:-0.3s]\" />\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current [animation-delay:-0.15s]\" />\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current\" />\n </div>\n );\n}\n\nexport default LoadingIndicator;\n","import type { GetThemeOutput } from \"./types\";\n\nlet config: PanelConfig = {\n projectID: undefined,\n loginURL: \"/panel/login\",\n theme: undefined,\n host: undefined,\n allowedReturnOrigins: [],\n};\n\nlet allowedReturnOrigins: string[] = [];\n\nexport interface PanelConfig {\n projectID?: string;\n loginURL?: string;\n theme?: GetThemeOutput;\n host?: string;\n allowedReturnOrigins: string[];\n}\n\nexport function setPanelConfig(newConfig: Partial<PanelConfig>): void {\n config = { ...config, ...newConfig };\n}\n\nexport function getPanelConfig(): PanelConfig {\n return config;\n}\n\nexport function setProjectID(projectID: string): void {\n config.projectID = projectID;\n}\n\nexport function setTheme(theme: GetThemeOutput): void {\n config.theme = theme;\n}\n\nexport function setLoginURL(loginURL: string): void {\n config.loginURL = loginURL;\n}\n\nexport function setHost(host: string): void {\n config.host = host;\n}\n\nexport function setAllowedReturnOrigins(origins: string[]): void {\n allowedReturnOrigins = origins;\n config = { ...config, allowedReturnOrigins: origins };\n}\n\nexport function getAllowedReturnOrigins(): string[] {\n return allowedReturnOrigins;\n}\n","import { createContext, useContext } from \"react\";\nimport { RpcProvider } from \"../rpc-provider\";\nimport { getPanelConfig, type PanelConfig } from \"./config\";\n\nconst PanelContext = createContext<PanelConfig>(getPanelConfig());\n\nexport const PanelProvider: React.FC<{\n children: React.ReactNode;\n}> = ({ children }) => {\n return (\n <RpcProvider>\n <PanelContext.Provider value={{ ...getPanelConfig() }}>\n <div className=\"bitsnap-react\">{children}</div>\n </PanelContext.Provider>\n </RpcProvider>\n );\n};\n\nexport const usePanelConfig = () => useContext(PanelContext);\n","import { getAllowedReturnOrigins } from \"./config\";\n\nconst RETURN_URL_PARAM = \"return_url\";\nconst RETURN_URL_STORAGE_KEY = \"__return_url\";\nconst ACCESS_TOKEN_PARAM = \"accessToken\";\n\nexport function getReturnURLFromSearch(search: string): string | null {\n const raw = new URLSearchParams(search).get(RETURN_URL_PARAM);\n if (!raw) return null;\n return validateReturnURL(raw);\n}\n\nexport function persistReturnURL(returnURL: string | null): void {\n if (typeof window === \"undefined\") return;\n if (returnURL) {\n window.sessionStorage.setItem(RETURN_URL_STORAGE_KEY, returnURL);\n } else {\n window.sessionStorage.removeItem(RETURN_URL_STORAGE_KEY);\n }\n}\n\nexport function readPersistedReturnURL(): string | null {\n if (typeof window === \"undefined\") return null;\n const stored = window.sessionStorage.getItem(RETURN_URL_STORAGE_KEY);\n if (!stored) return null;\n return validateReturnURL(stored);\n}\n\nfunction isOriginAllowed(origin: string, allowedOrigins: string[]): boolean {\n return allowedOrigins.some((allowed) => {\n if (origin === allowed) return true;\n const allowedHost = new URL(allowed).hostname;\n const originHost = new URL(origin).hostname;\n return originHost.endsWith(`.${allowedHost}`) || originHost === allowedHost;\n });\n}\n\nfunction validateReturnURL(raw: string): string | null {\n try {\n const u = new URL(raw);\n if (u.protocol !== \"https:\" && u.protocol !== \"http:\") return null;\n if (!isOriginAllowed(u.origin, getAllowedReturnOrigins())) return null;\n return u.toString();\n } catch {\n return null;\n }\n}\n\nexport function buildAccessTokenRedirect(\n returnURL: string,\n accessToken: string,\n): string {\n const u = new URL(returnURL);\n u.searchParams.set(ACCESS_TOKEN_PARAM, accessToken);\n return u.toString();\n}\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { useEffect, useState, type CSSProperties } from \"react\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { useUrlSearchParams } from \"../hooks/useUrlSearchParams\";\nimport { usePanelConfig } from \"../PanelProvider\";\nimport {\n buildAccessTokenRedirect,\n getReturnURLFromSearch,\n persistReturnURL,\n readPersistedReturnURL,\n} from \"../return-url\";\n\nimport PanelNotificationsComponent from \"./PanelNotifications\";\nimport PanelOrderHistoryComponent from \"./PanelOrderHistory\";\nimport PanelPlansComponent from \"./PanelPlans\";\nimport PanelProductGridComponent from \"./PanelProductGrid\";\nimport PanelProductHeaderComponent from \"./PanelProductHeader\";\nimport PanelProfileComponent from \"./PanelProfile\";\nimport PublicOrderPage from \"./PublicOrderPage\";\n\nexport type PanelScreen =\n | \"products\"\n | \"notifications\"\n | \"profile\"\n | \"plans\"\n | \"orders\"\n | \"order-details\";\n\nexport type PanelSearchParamsType = {\n product?: string;\n state: PanelScreen;\n orderId?: string;\n};\n\nconst PanelPage = () => {\n const { projectID, theme, loginURL } = usePanelConfig();\n\n let accessToken: string | null = null;\n if (typeof window !== \"undefined\") {\n accessToken = localStorage.getItem(\"__access_token\");\n }\n const email =\n typeof window !== \"undefined\" ? localStorage.getItem(\"__user-email\") : null;\n\n const { mutateAsync: logoutUserAsync } = useMutation(\n rpcProvider.publicApi.userPanelLogout,\n );\n\n async function logout() {\n if (accessToken) {\n await logoutUserAsync({\n accessToken: accessToken as string,\n });\n }\n if (typeof window !== \"undefined\") {\n localStorage.removeItem(\"__access_token\");\n localStorage.removeItem(\"__user-email\");\n window.location.reload();\n }\n }\n\n const [panelParentRef] = useAutoAnimate();\n const isScreen = (value: unknown): value is PanelScreen =>\n [\n \"products\",\n \"notifications\",\n \"profile\",\n \"plans\",\n \"orders\",\n \"order-details\",\n ].includes(value as string);\n\n const [params, setParams] = useUrlSearchParams<PanelSearchParamsType>({\n product: undefined,\n state: \"products\",\n orderId: undefined,\n });\n\n const [activeScreen, setActiveScreen] = useState<PanelScreen>(\n isScreen(params.state) ? params.state : \"products\",\n );\n\n const handleOpenOrderDetails = (orderID: string) => {\n setParams({\n state: \"order-details\",\n orderId: orderID,\n });\n setActiveScreen(\"order-details\");\n };\n\n const handleBackToOrders = () => {\n setParams({\n state: \"orders\",\n orderId: undefined,\n });\n setActiveScreen(\"orders\");\n };\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#000000\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#ffffff\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#000000\",\n } as CSSProperties;\n\n useEffect(() => {\n if (accessToken == null || accessToken.length === 0) {\n window.location.href = loginURL ?? \"/panel/login\";\n return;\n }\n }, []);\n\n useEffect(() => {\n if (accessToken == null || accessToken.length === 0) {\n window.location.href = loginURL ?? \"/panel/login\";\n return;\n }\n }, [activeScreen]);\n\nuseEffect(() => {\n if (typeof window === \"undefined\") return;\n if (window.parent !== window) return;\n if (!accessToken) return;\n\n const queryReturnURL = getReturnURLFromSearch(window.location.search);\n if (queryReturnURL) {\n persistReturnURL(queryReturnURL);\n }\n\n const returnURL = queryReturnURL ?? readPersistedReturnURL();\n if (!returnURL) return;\n\n window.location.href = buildAccessTokenRedirect(returnURL, accessToken);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [accessToken]);\n\n return (\n <div\n ref={panelParentRef}\n className=\"font-inter relative min-h-screen w-screen bg-beige-100 text-black dark:bg-black dark:text-white md:flex\"\n >\n <PanelProductHeaderComponent\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n styles={styles}\n theme={theme}\n logout={logout}\n />\n\n <main className=\"flex h-[calc(100vh-80px)] flex-col overflow-y-auto w-full p-5 md:h-screen\">\n {activeScreen === \"products\" && (\n <PanelProductGridComponent\n accessToken={accessToken!}\n loginURL={loginURL ?? \"/panel/login\"}\n styles={styles}\n activeScreen={activeScreen}\n params={params as PanelSearchParamsType}\n setParams={setParams}\n />\n )}\n\n {activeScreen === \"notifications\" && <PanelNotificationsComponent />}\n\n {activeScreen === \"plans\" && (\n <PanelPlansComponent projectID={projectID ?? \"\"} />\n )}\n\n {activeScreen === \"orders\" && (\n <PanelOrderHistoryComponent\n projectID={projectID ?? \"\"}\n openOrderDetails={handleOpenOrderDetails}\n />\n )}\n\n {activeScreen === \"order-details\" && params.orderId && (\n <PublicOrderPage\n orderID={params.orderId}\n onBack={handleBackToOrders}\n />\n )}\n\n {activeScreen === \"profile\" && (\n <PanelProfileComponent email={email} logout={logout} />\n )}\n </main>\n </div>\n );\n};\n\nexport default PanelPage;\n","import { useState, useCallback, useEffect } from \"react\";\n\nexport function useUrlSearchParams<T extends Record<string, unknown>>(\n initialValue: T,\n): [T, (params: Partial<T>) => void] {\n const [params, setParams] = useState<T>(() => {\n if (typeof window === \"undefined\") {\n return initialValue;\n }\n const urlParams = new URLSearchParams(window.location.search);\n const parsed: Partial<T> = {};\n \n (Object.keys(initialValue) as Array<keyof T>).forEach((key) => {\n const value = urlParams.get(key as string);\n if (value !== null) {\n try {\n (parsed as Record<string, unknown>)[key as string] = JSON.parse(value);\n } catch {\n (parsed as Record<string, unknown>)[key as string] = value as T[keyof T];\n }\n }\n });\n \n return { ...initialValue, ...parsed };\n });\n\n const updateParams = useCallback((newParams: Partial<T>) => {\n setParams((prev) => {\n const updated = { ...prev, ...newParams };\n \n if (typeof window !== \"undefined\") {\n const urlParams = new URLSearchParams();\n (Object.keys(updated) as Array<keyof T>).forEach((key) => {\n const value = updated[key];\n if (value !== undefined && value !== null) {\n urlParams.set(key as string, JSON.stringify(value));\n }\n });\n \n const newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n window.history.pushState({}, \"\", newUrl);\n }\n \n return updated;\n });\n }, []);\n\n useEffect(() => {\n const handlePopState = () => {\n const urlParams = new URLSearchParams(window.location.search);\n const parsed: Partial<T> = {};\n \n (Object.keys(initialValue) as Array<keyof T>).forEach((key) => {\n const value = urlParams.get(key as string);\n if (value !== null) {\n try {\n (parsed as Record<string, unknown>)[key as string] = JSON.parse(value);\n } catch {\n (parsed as Record<string, unknown>)[key as string] = value as T[keyof T];\n }\n }\n });\n \n setParams({ ...initialValue, ...parsed });\n };\n\n window.addEventListener(\"popstate\", handlePopState);\n return () => window.removeEventListener(\"popstate\", handlePopState);\n }, [initialValue]);\n\n return [params, updateParams];\n}\n","import * as React from \"react\"\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n \"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0\"\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n","import { Label } from \"../../ui/label\";\nimport { Switch } from \"../../ui/switch\";\nimport { useState } from \"react\";\n\ninterface PanelNotificationsComponentProps {}\n\nfunction PanelNotificationsComponent({}: PanelNotificationsComponentProps) {\n const [notifications, setNotifications] = useState<Record<string, boolean>>({\n disableAll: false,\n });\n\n return (\n <>\n <h3 className=\"text-2xl\">Powiadomienia</h3>\n <p className=\"text-sm text-neutral-500\">\n Zarządzaj swoimi powiadomieniami\n </p>\n <div className=\"mt-6\">\n <div className=\"flex items-center space-x-2\">\n <Switch\n id=\"disable-all-notifications\"\n checked={notifications.disableAll}\n onCheckedChange={(checked) =>\n setNotifications((prevState) => ({\n ...prevState,\n disableAll: checked,\n }))\n }\n />\n <Label\n htmlFor=\"disable-all-notifications\"\n className=\"flex flex-col gap-1 text-base\"\n >\n Wszystkie powiadomienia\n <span className=\"text-xs font-normal text-neutral-500 md:text-sm\">\n Ten przycisk może wyłączyć wszystkie powiadomienia\n </span>\n </Label>\n </div>\n </div>\n </>\n );\n}\n\nexport default PanelNotificationsComponent;\n","import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\nimport { buttonVariants, type Button } from \"@/src/ui/button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof Button>, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={isActive}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 px-2.5 sm:pl-2.5\", className)}\n {...props}\n >\n <ChevronLeftIcon />\n <span className=\"hidden sm:block\">Previous</span>\n </PaginationLink>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 px-2.5 sm:pr-2.5\", className)}\n {...props}\n >\n <span className=\"hidden sm:block\">Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import { cn } from \"@/src/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n","import { rpcProvider, useQuery } from \"../../rpc-provider\";\nimport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n} from \"../../ui/pagination\";\nimport { Skeleton } from \"../../ui/skeleton\";\nimport { useState } from \"react\";\n\ninterface PanelOrderHistoryComponentProps {\n projectID: string;\n openOrderDetails: (orderId: string) => void;\n}\n\nconst formatDate = (ts: number): string =>\n new Date(ts * 1000).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\",\n });\n\nconst formatAmount = (amount: number, currency: string): string =>\n new Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: currency.toUpperCase(),\n }).format(amount / 100);\n\nconst statusLabel: Record<string, string> = {\n draft: \"Szkic\",\n unpaid: \"Nieopłacona\",\n paid: \"Opłacona\",\n overdue: \"Zaległa\",\n cancelled: \"Anulowana\",\n completed: \"Zakończone\",\n processing: \"Przetwarzane\",\n refunded: \"Zwrócone\",\n};\n\nconst statusColor: Record<string, string> = {\n draft: \"text-neutral-400\",\n unpaid: \"text-yellow-500\",\n paid: \"text-green-600\",\n overdue: \"text-red-500\",\n cancelled: \"text-neutral-400 line-through\",\n completed: \"text-green-600\",\n processing: \"text-blue-500\",\n refunded: \"text-purple-500\",\n};\n\nfunction PanelOrderHistory({\n openOrderDetails,\n projectID,\n}: PanelOrderHistoryComponentProps) {\n const accessToken = localStorage.getItem(\"__access_token\");\n const [offset, setOffset] = useState(0);\n const limit = 20;\n\n console.log(\"projectID\", projectID, accessToken);\n const { data, isFetching } = useQuery(rpcProvider.publicApi.getOrders, {\n projectId: projectID,\n accessToken: accessToken ?? \"\",\n offset,\n limit,\n });\n\n const orders = data?.orders ?? [];\n const totalCount = data?.totalCount ?? 0;\n const currentPage = Math.floor(offset / limit) + 1;\n const totalPages = Math.ceil(totalCount / limit);\n\n const handlePageChange = (newOffset: number) => {\n setOffset(newOffset);\n };\n\n return (\n <>\n <h3 className=\"text-2xl\">Historia zamówień</h3>\n <p className=\"text-sm text-neutral-500 dark:text-neutral-400\">\n Twoje zamówienia\n </p>\n\n {isFetching ? (\n <div className=\"mt-6 flex w-full flex-col gap-3\">\n {[...Array(5)].map((_, i) => (\n <div\n key={i}\n className=\"rounded-xl bg-white p-4 shadow-sm dark:bg-neutral-800\"\n >\n <div className=\"flex items-center justify-between\">\n <div className=\"space-y-2\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-3 w-32\" />\n </div>\n <div className=\"space-y-2 text-right\">\n <Skeleton className=\"ml-auto h-4 w-16\" />\n <Skeleton className=\"ml-auto h-3 w-12\" />\n </div>\n </div>\n <div className=\"mt-3\">\n <Skeleton className=\"h-3 w-40\" />\n </div>\n </div>\n ))}\n </div>\n ) : orders.length === 0 ? (\n <div className=\"mt-6 text-sm text-neutral-400\">Brak zamówień.</div>\n ) : (\n <div>\n <div className=\"mt-6 flex w-full flex-col gap-3\">\n {orders.map((order) => (\n <button\n key={order.id}\n onClick={() => openOrderDetails(order.id)}\n className=\"block rounded-xl bg-white p-4 text-left shadow-sm transition-colors hover:bg-neutral-50 dark:bg-neutral-800 dark:hover:bg-neutral-700\"\n >\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"font-medium\">Zamówienie #{order.id}</p>\n <p className=\"text-xs text-neutral-500 dark:text-neutral-400\">\n {order.customerName || \"Klient\"}\n </p>\n </div>\n <div className=\"text-right\">\n <p className=\"font-semibold\">\n {formatAmount(order.totalAmount, order.currency)}\n </p>\n <p\n className={`text-xs font-medium ${statusColor[order.status] ?? \"text-neutral-400\"}`}\n >\n {statusLabel[order.status] ?? order.status}\n </p>\n </div>\n </div>\n\n <div className=\"mt-2 flex items-center justify-between text-xs text-neutral-500 dark:text-neutral-400\">\n <span>\n Data:{\" \"}\n {order.createdAt\n ? formatDate(Number(order.createdAt.seconds))\n : \"-\"}\n </span>\n </div>\n </button>\n ))}\n </div>\n\n {totalPages > 1 && !isFetching && (\n <div className=\"mt-4 flex justify-center\">\n <Pagination>\n <PaginationContent>\n {currentPage > 1 && (\n <PaginationItem>\n <PaginationPrevious\n onClick={() => handlePageChange(offset - limit)}\n />\n </PaginationItem>\n )}\n\n {currentPage > 2 && (\n <PaginationItem>\n <PaginationLink onClick={() => handlePageChange(0)}>\n 1\n </PaginationLink>\n </PaginationItem>\n )}\n\n {currentPage > 3 && (\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n )}\n\n {[currentPage - 1, currentPage, currentPage + 1]\n .filter((page) => page > 0 && page <= totalPages)\n .map((page) => (\n <PaginationItem key={page}>\n <PaginationLink\n onClick={() => handlePageChange((page - 1) * limit)}\n isActive={currentPage === page}\n >\n {page}\n </PaginationLink>\n </PaginationItem>\n ))}\n\n {currentPage < totalPages - 2 && (\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n )}\n\n {currentPage < totalPages && (\n <PaginationItem>\n <PaginationLink\n onClick={() =>\n handlePageChange((totalPages - 1) * limit)\n }\n >\n {totalPages}\n </PaginationLink>\n </PaginationItem>\n )}\n\n {currentPage < totalPages && (\n <PaginationItem>\n <PaginationNext\n onClick={() => handlePageChange(offset + limit)}\n />\n </PaginationItem>\n )}\n </PaginationContent>\n </Pagination>\n </div>\n )}\n </div>\n )}\n </>\n );\n}\n\nexport default PanelOrderHistory;\n","import { useState } from \"react\";\n\ninterface Plan {\n id: number;\n tierKey: string;\n tierName: string;\n configName: string;\n status: string;\n billingDay: number;\n startDate: number;\n endDate: number | null;\n}\n\ninterface PanelPlansComponentProps {\n projectID: string;\n}\n\nconst formatDate = (ts: number): string =>\n new Date(ts * 1000).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\",\n });\n\nconst statusLabel: Record<string, string> = {\n active: \"Aktywny\",\n cancelled: \"Anulowany\",\n paused: \"Wstrzymany\",\n};\n\nconst statusColor: Record<string, string> = {\n active: \"text-green-600\",\n cancelled: \"text-red-500\",\n paused: \"text-yellow-500\",\n};\n\nfunction PanelPlansComponent({ projectID }: PanelPlansComponentProps) {\n const [plans, setPlans] = useState<Plan[]>([]);\n const [isLoading, setIsLoading] = useState(true);\n\n return (\n <>\n <h3 className=\"text-2xl\">Plany</h3>\n <p className=\"text-sm text-neutral-500\">Twoje aktywne subskrypcje</p>\n\n {isLoading ? (\n <div className=\"mt-6 text-sm text-neutral-400\">Ładowanie...</div>\n ) : plans.length === 0 ? (\n <div className=\"mt-6 text-sm text-neutral-400\">\n Brak aktywnych planów.\n </div>\n ) : (\n <div className=\"mt-6 flex flex-col gap-4\">\n {plans.map((plan) => (\n <div\n key={plan.id}\n className=\"rounded-xl bg-white p-5 shadow-sm dark:bg-neutral-800\"\n >\n <div className=\"flex items-start justify-between\">\n <div>\n <p className=\"font-semibold\">{plan.tierName}</p>\n {plan.configName && (\n <p className=\"text-sm text-neutral-500\">{plan.configName}</p>\n )}\n </div>\n <span\n className={`text-sm font-medium ${statusColor[plan.status] ?? \"text-neutral-500\"}`}\n >\n {statusLabel[plan.status] ?? plan.status}\n </span>\n </div>\n <div className=\"mt-3 grid grid-cols-2 gap-2 text-sm text-neutral-600 dark:text-neutral-400\">\n <div>\n <span className=\"font-medium\">Dzień rozliczenia:</span>{\" \"}\n {plan.billingDay}\n </div>\n <div>\n <span className=\"font-medium\">Data startu:</span>{\" \"}\n {formatDate(plan.startDate)}\n </div>\n {plan.endDate && (\n <div>\n <span className=\"font-medium\">Data zakończenia:</span>{\" \"}\n {formatDate(plan.endDate)}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n )}\n </>\n );\n}\n\nexport default PanelPlansComponent;\n","import { useState, type CSSProperties } from \"react\";\nimport {\n UserProductSchema,\n UserProductType,\n type UserProduct,\n} from \"../../gen/proto/public/v1/public_api_pb\";\nimport { rpcProvider, useQuery } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport LoadingIndicator from \"../LoadingIndicator\";\n\nimport { renderText } from \"@/src/lib/render.text\";\nimport { fromJsonString, toJsonString } from \"@bufbuild/protobuf\";\nimport type { PanelScreen, PanelSearchParamsType } from \"../types\";\nimport PanelProductDetails from \"./PanelProductDetails\";\n\ninterface PanelProductGridComponentProps {\n accessToken: string;\n loginURL: string;\n styles: CSSProperties;\n activeScreen: PanelScreen;\n params: PanelSearchParamsType;\n setParams: (params: PanelSearchParamsType) => void;\n}\n\nconst PanelProductGridComponent = ({\n accessToken,\n loginURL,\n styles,\n activeScreen,\n params,\n setParams,\n}: PanelProductGridComponentProps) => {\n const { data: products, isLoading: isProductsLoading } = useQuery(\n rpcProvider.publicApi.userPanelGetProducts,\n {\n accessToken: accessToken,\n },\n );\n\n if (isProductsLoading) {\n return (\n <div className=\"flex items-center gap-2 bg-white p-2 dark:bg-black\">\n <p className=\"text-dark font-inter font-medium dark:text-white\">\n Ładowanie...\n </p>\n <LoadingIndicator />\n </div>\n );\n }\n\n if (products && products.result.case === \"failure\") {\n console.warn(\"error:\", `Kod błędu: ${products.result.value}`);\n localStorage.removeItem(\"__access_token\");\n window.location.href = loginURL;\n return null;\n }\n\n const productsList =\n products && products.result.case === \"success\"\n ? products.result.value.products\n : [];\n\n return (\n <ProductsComponent\n accessToken={accessToken}\n products={productsList}\n styles={styles}\n loginURL={loginURL}\n activeScreen={activeScreen}\n params={params}\n setParams={setParams}\n />\n );\n};\n\nexport default PanelProductGridComponent;\n\ninterface ProductsComponentProps {\n accessToken: string;\n products: UserProduct[];\n styles: CSSProperties;\n loginURL: string;\n activeScreen: PanelScreen;\n params: PanelSearchParamsType;\n setParams: (params: PanelSearchParamsType) => void;\n}\n\nconst ProductsComponent = ({\n accessToken,\n products,\n styles,\n loginURL,\n activeScreen,\n params,\n setParams,\n}: ProductsComponentProps) => {\n if (products.length === 0) {\n window.location.href = loginURL;\n return null;\n }\n\n const [selectedProduct, setSelectedProduct] = useState<\n UserProduct | undefined\n >(\n params.product\n ? fromJsonString(UserProductSchema, params.product)\n : undefined,\n );\n\n const reveal = (product?: UserProduct) => {\n if (product == null) {\n setSelectedProduct(undefined);\n setParams({\n product: undefined,\n state: \"products\",\n });\n } else {\n setParams({\n product: toJsonString(UserProductSchema, product),\n state: \"products\",\n });\n }\n };\n\n function getProductTypeName(type: UserProductType) {\n switch (type) {\n case UserProductType.AUDIO:\n return \"Audio\";\n case UserProductType.FILE:\n return \"Plik\";\n case UserProductType.TICKET:\n return \"Bilet\";\n case UserProductType.COURSE:\n return \"Kurs\";\n default:\n return undefined;\n }\n }\n\n function handleSelectedProduct(product: UserProduct) {\n setSelectedProduct(product);\n reveal(product);\n }\n\n if (activeScreen === \"products\" && selectedProduct != undefined) {\n return (\n <PanelProductDetails\n accessToken={accessToken}\n product={selectedProduct}\n styles={styles}\n reveal={reveal}\n />\n );\n }\n\n return (\n <>\n <h3 className=\"text-2xl\">Hej 👋</h3>\n <p className=\"text-sm text-neutral-500\">\n Poniżej znajdziesz swoje produkty\n </p>\n <div className=\"mt-6 flex flex-wrap items-center justify-center gap-9 sm:justify-start\">\n {products?.map((product, index) => (\n <section\n onClick={() => handleSelectedProduct(product)}\n key={index}\n className=\"w-full max-w-xs cursor-pointer rounded drop-shadow-xl dark:border dark:border-slate-600 dark:drop-shadow-none\"\n >\n <section className=\"flex flex-col items-center space-y-2 rounded bg-slate-100 p-4 dark:bg-neutral-900\">\n {product.productType && (\n <div className=\"w-fit self-end rounded bg-red-900 px-4 py-1\">\n <span className=\"text-sm font-medium text-white dark:text-slate-100\">\n {getProductTypeName(product.productType)}\n </span>\n </div>\n )}\n <div className=\"jusitfy-center flex max-h-40 items-center\">\n <img\n src={product.productImageUrl}\n alt={`Product ${index} Photo`}\n draggable={false}\n className=\"aspect-auto max-h-40\"\n />\n </div>\n </section>\n <div className=\"space-y-4 rounded bg-white p-4 dark:bg-black\">\n <h2 className=\"text-xl font-semibold\">{product.productName}</h2>\n <p\n title={product.productDescription}\n className=\"line-clamp-3 text-sm font-normal text-neutral-600 dark:text-neutral-300\"\n >\n {renderText(product.productDescription)}\n </p>\n <Button\n onClick={(e) => {\n e.stopPropagation();\n handleSelectedProduct(product);\n }}\n className=\"w-full text-sm font-medium transition-opacity duration-300 ease-in-out hover:opacity-80 active:opacity-80\"\n style={styles}\n >\n Zobacz\n </Button>\n </div>\n </section>\n ))}\n </div>\n </>\n );\n};\n","const URL_REGEX =\n /https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)/g;\n\ntype Replacements = {\n url: string;\n startIndex: number;\n endIndex: number;\n replacementText?: string;\n};\n\nconst findURLIndices = (text: string) => {\n const matches = [...text.matchAll(URL_REGEX)];\n return matches.map(\n (match) =>\n ({\n url: match[0],\n startIndex: match.index,\n endIndex: match.index + match[0].length - 1,\n }) as Replacements,\n );\n};\n\nconst replaceTextByIndices = (\n originalText: string,\n replacements: Replacements[],\n) => {\n let result = \"\";\n let lastIndex = 0;\n\n // Sort replacements by startIndex to handle them in order\n replacements.sort((a, b) => a.startIndex - b.startIndex);\n\n for (const { startIndex, endIndex, replacementText } of replacements) {\n // Append text before the current replacement\n result += originalText.slice(lastIndex, startIndex);\n // Append the replacement text\n result += replacementText;\n // Update lastIndex to after the replaced segment\n lastIndex = endIndex + 1;\n }\n\n // Append any remaining text after the last replacement\n result += originalText.slice(lastIndex);\n\n return result;\n};\n\nexport const renderText = (txt: string) => {\n const urlIndices = findURLIndices(txt);\n\n return (\n <p\n dangerouslySetInnerHTML={{\n __html: replaceTextByIndices(\n txt,\n urlIndices.map((el) => {\n el[\"replacementText\"] =\n `<a key=${el.url} href=${el.url} style=\"text-decoration: underline;\" target=\"_blank\">\n ${el.url}\n </a>`;\n return el;\n }),\n ),\n }}\n ></p>\n );\n};\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { ChevronLeft, Download } from \"lucide-react\";\nimport { useEffect, useRef, useState, type CSSProperties } from \"react\";\nimport {\n UserProductType,\n type UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails,\n type UserProduct,\n} from \"../../gen/proto/public/v1/public_api_pb\";\nimport { cn } from \"../../lib/utils\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport AudioPlayer, {\n type AudioPlayerMethods,\n} from \"../audio-player/AudioPlayer\";\nimport LoadingIndicator from \"../LoadingIndicator\";\n\nimport { ProgressBar } from \"./ProgressBar\";\n\ninterface PanelProductDetailsProps {\n accessToken: string;\n product: UserProduct;\n styles: CSSProperties;\n reveal: (product?: UserProduct) => void;\n}\n\nfunction warn(message: string, ...args: unknown[]) {\n console.warn(message, ...args);\n}\n\nfunction error(message: string) {\n console.error(message);\n}\n\nconst PanelProductDetails = ({\n accessToken,\n product,\n styles,\n reveal,\n}: PanelProductDetailsProps) => {\n const productType: UserProductType = product.productType;\n\n const audioPlayerRef = useRef<AudioPlayerMethods>(null!);\n const [filesRefAnimation] = useAutoAnimate();\n const [filesResponse, setFilesResponse] = useState<string[] | null>(null);\n const { mutateAsync: fileDetailsAsync, isPending: isFileLoading } =\n useMutation(rpcProvider.publicApi.userPanelGetFileDetails);\n\n const audioPlayerSeekToHandler = useRef<\n ((second: number) => void) | undefined\n >(undefined);\n const [audioResponse, setAudioResponse] = useState<Record<\n string,\n unknown\n > | null>(null);\n const [audioDownloadURLs, setAudioDownloadURLs] = useState<\n | UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails[]\n | null\n >(null);\n const [\n isAvailableToDownloadInMobileApp,\n setIsAvailableToDownloadInMobileApp,\n ] = useState(false);\n const [isCourseLoading, setIsCourseLoading] = useState(false);\n const [courseError, setCourseError] = useState<string | null>(null);\n const { mutateAsync: audioDetailsAsync, isPending: isAudioLoading } =\n useMutation(rpcProvider.publicApi.userPanelGetAudiobookDetails);\n const {\n mutateAsync: audioDetailsDownloadURLsAsync,\n isPending: isAudioDownloadURLsLoading,\n } = useMutation(\n rpcProvider.publicApi.userPanelGetAudiobookDetailsDownloadURLs,\n );\n const { mutateAsync: courseDetailsAsync } = useMutation(\n rpcProvider.publicApi.userPanelGetCourseDetails,\n );\n\n type ChapterWithPublicUrl = {\n id: string;\n multimediaId?: string;\n name: string;\n description?: string;\n publicUrl: string;\n downloadableUrl?: string;\n duration?: number;\n };\n\n const [selectedChapter, setSelectedChapter] =\n useState<ChapterWithPublicUrl | null>(null);\n const [chapters, setChapters] = useState<ChapterWithPublicUrl[] | null>(null);\n\n async function handleFileDownload() {\n try {\n const filesResult = await fileDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (filesResult.result.case === \"success\") {\n setFilesResponse(filesResult.result.value.files);\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", filesResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n async function handleAudioDownload() {\n try {\n const audioResult = await audioDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (audioResult.result.case === \"audiobook\") {\n setAudioResponse(\n audioResult.result.value as unknown as Record<string, unknown>,\n );\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", audioResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n async function handleAudioURLsDownload() {\n try {\n const audioURLsResult = await audioDetailsDownloadURLsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n isBrowser: true,\n });\n\n if (audioURLsResult.result.case === \"success\") {\n setAudioDownloadURLs(\n audioURLsResult.result.value.audiobookDownloadDetails,\n );\n setIsAvailableToDownloadInMobileApp(\n audioURLsResult.result.value.isAvailableToDownloadInMobileApp ===\n true,\n );\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", audioURLsResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n useEffect(() => {\n if (productType === UserProductType.AUDIO) {\n handleAudioDownload().then().catch();\n handleAudioURLsDownload().then().catch();\n }\n }, []);\n\n useEffect(() => {\n if (productType !== UserProductType.COURSE) return;\n\n async function handleCourseRedirect() {\n setIsCourseLoading(true);\n setCourseError(null);\n try {\n const courseResult = await courseDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (courseResult.result.case === \"redirectUrl\") {\n window.location.href = courseResult.result.value;\n } else {\n setCourseError(\n \"Wystąpił błąd, proszę skontaktować się z pomocą techniczną.\",\n );\n }\n } catch {\n setCourseError(\n \"Wystąpił błąd, proszę skontaktować się z pomocą techniczną.\",\n );\n } finally {\n setIsCourseLoading(false);\n }\n }\n\n handleCourseRedirect();\n }, []);\n\n useEffect(() => {\n if (audioResponse != null && audioDownloadURLs != null) {\n const audioChapters = (\n audioResponse as { chapters?: ChapterWithPublicUrl[] }\n ).chapters;\n if (!audioChapters) return;\n\n const mappedChapters = audioChapters\n .map((chapter) => {\n const details = audioDownloadURLs?.find(\n (el) => el.chapterId === chapter.id,\n );\n if (details == null) {\n return undefined;\n }\n return {\n ...chapter,\n publicUrl: details.publicUrl,\n downloadableUrl: details.downloadableUrl,\n duration: details.duration,\n } as ChapterWithPublicUrl;\n })\n .filter((el) => el != null);\n\n if (mappedChapters != undefined && mappedChapters.length > 0) {\n setChapters(mappedChapters);\n }\n }\n }, [audioResponse, audioDownloadURLs]);\n\n return (\n <div>\n <div className=\"mb-3 space-y-4 rounded bg-white p-4 dark:bg-black\">\n <Button onClick={() => reveal()} variant=\"ghost\" className=\"w-fit\">\n <ChevronLeft className=\"h-6 w-6\" />\n <span className=\"font-inter text-sm font-medium\">Wróć</span>\n </Button>\n </div>\n\n <main className=\"grid grid-cols-1 justify-center gap-6 sm:justify-start lg:grid-cols-2\">\n <div className=\"flex w-full max-w-xl flex-col gap-6\">\n {productType === UserProductType.FILE && (\n <div\n ref={filesRefAnimation}\n className=\"flex flex-col space-y-4 rounded bg-white p-6 drop-shadow-xl dark:border dark:border-neutral-700 dark:bg-neutral-800 dark:drop-shadow-none\"\n >\n <div className=\"flex items-center justify-between gap-x-4\">\n <h4 className=\"text-xl font-semibold\">Twoje pliki</h4>\n {(filesResponse == null || filesResponse.length == 0) && (\n <Button\n onClick={handleFileDownload}\n aria-label=\"Download Product\"\n className=\"text-sm font-medium transition-opacity duration-300 ease-in-out hover:opacity-80 active:opacity-80\"\n style={styles}\n >\n {isFileLoading ? <LoadingIndicator /> : \"Wyświetl\"}\n </Button>\n )}\n </div>\n\n {isFileLoading && (\n <div className=\"flex flex-col items-start gap-2\">\n <ProgressBar />\n <p className=\"font-bold transition hover:text-blue-600\">\n Trwa przygotowanie plików...\n </p>\n </div>\n )}\n\n {filesResponse != null && filesResponse.length > 0 && (\n <div className=\"flex flex-col items-start justify-start gap-2\">\n {filesResponse.map((el, index) => (\n <a\n key={index}\n target=\"_blank\"\n className=\"flex w-fit items-center gap-2 rounded-md bg-neutral-800 px-3 py-2 text-neutral-200 dark:bg-neutral-200 dark:text-neutral-800\"\n href={el}\n download\n >\n {`Plik numer ${index + 1}`}\n <Download width={14} height={14} />\n </a>\n ))}\n </div>\n )}\n </div>\n )}\n\n {productType === UserProductType.COURSE && (\n <div className=\"flex flex-col items-center justify-center rounded-xl bg-white p-6 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n {isCourseLoading && (\n <div className=\"flex flex-col items-center gap-3\">\n <LoadingIndicator />\n <p className=\"text-lg font-semibold\">\n Trwa przekierowanie do kursu...\n </p>\n </div>\n )}\n {courseError && (\n <p className=\"text-center text-sm font-medium text-red-600 dark:text-red-400\">\n {courseError}\n </p>\n )}\n </div>\n )}\n\n {productType === UserProductType.AUDIO && (\n <>\n <div className=\"flex flex-col space-y-6 rounded-xl bg-white p-3 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n <h4 className=\"text-xl font-semibold\">\n {selectedChapter?.name ?? \"Odtwarzacz\"}\n </h4>\n {selectedChapter?.description && (\n <p className=\"text-sm\">{selectedChapter?.description}</p>\n )}\n <>\n {isAudioLoading ? (\n <div className=\"flex gap-2\">\n <LoadingIndicator />\n <p className=\"text-xl font-semibold\">\n Trwa pobierania audiobooka...\n </p>\n </div>\n ) : (\n <>\n {chapters != null ? (\n <>\n <AudioPlayer\n ref={audioPlayerRef}\n chapters={chapters}\n title={\n (audioResponse as { name?: string })?.name ??\n product.productName ??\n undefined\n }\n imageURL={\n (audioResponse as { coverImage?: string })\n ?.coverImage ??\n product.productImageUrl ??\n undefined\n }\n styles={styles}\n setCurrentTimeHandler={(handler) => {\n audioPlayerSeekToHandler.current = handler;\n }}\n uniqueProductID={product.productId}\n onChapterChange={(chapter) => {\n setSelectedChapter(chapter);\n }}\n />\n </>\n ) : (\n <p className=\"mt-2\">\n Wybierz rozdział, który cię interesuje.\n </p>\n )}\n </>\n )}\n </>\n <div className=\"rounded-xl bg-neutral-100 p-3 dark:bg-neutral-800\">\n <p className=\"mt-3 mb-3 text-xs\">\n {isAvailableToDownloadInMobileApp\n ? \"Możesz słuchać tego audiobooka w aplikacji również bez dostępu do internetu.\"\n : \"Możesz słuchać tego audiobooka w aplikacji.\"}\n </p>\n <div className=\"flex gap-3\">\n <a href=\"https://apps.apple.com/us/app/bitsnap/id6741902807\">\n <img\n width=\"100\"\n src=\"https://bitsnap.pl/appstore.svg\"\n alt=\"Pobierz aplikacje z AppStore\"\n />\n </a>\n\n <a href=\"https://docs.bitsnap.pl/guides/audiobook\">\n <img\n width=\"100\"\n src=\"https://bitsnap.pl/playstore.svg\"\n alt=\"Pobierz aplikację z GooglePlay\"\n />\n </a>\n </div>\n </div>\n </div>\n </>\n )}\n\n <div className=\"flex items-center justify-center rounded-xl bg-white p-3 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n {productType === UserProductType.AUDIO && (\n <div className=\"max-h-96 w-full overflow-y-auto\">\n {isAudioLoading ? (\n <div className=\"jusitfy-center flex flex-col items-center gap-2\">\n <LoadingIndicator />\n <p>Ładowanie rozdziałów...</p>\n </div>\n ) : (\n <div>\n <h2 className=\"mb-3 text-xl font-semibold\">Rozdziały</h2>\n {chapters == null ? (\n <p>Brak rozdziałów do wyświetlenia.</p>\n ) : (\n <ul className=\"flex w-full flex-col gap-2\">\n {chapters.map((chapter, index) => (\n <li\n key={index}\n className=\"flex items-center justify-between\"\n >\n <button\n className={cn(\n \"w-full rounded-lg p-2 text-left transition hover:bg-neutral-200 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-700\",\n selectedChapter?.id == chapter.id\n ? \"bg-neutral-200 dark:bg-neutral-700\"\n : \"bg-neutral-100 dark:bg-neutral-800 dark:text-neutral-300\",\n )}\n onClick={() => {\n audioPlayerRef.current.selectChapter(chapter);\n }}\n >\n <div className=\"flex items-center justify-between\">\n <p className=\"text-sm font-medium\">\n {chapter.name}\n </p>\n {chapter.duration && (\n <span className=\"text-xs text-neutral-500\">\n {Math.floor(chapter.duration / 60)}:\n {String(\n Math.floor(chapter.duration % 60),\n ).padStart(2, \"0\")}\n </span>\n )}\n </div>\n {chapter.description && (\n <p className=\"mt-3 text-xs\">\n {chapter.description}\n </p>\n )}\n </button>\n\n {audioResponse &&\n (audioResponse as { isDownloadable?: boolean })\n .isDownloadable &&\n chapter.downloadableUrl && (\n <a href={chapter.downloadableUrl}>\n <Download width={14} height={14} />\n </a>\n )}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n </div>\n )}\n </div>\n </div>\n\n <div className=\"w-full max-w-3xl space-y-6 rounded-xl bg-white p-6 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n <h2 className=\"text-3xl font-semibold\">{product.productName}</h2>\n <p className=\"text-sm font-normal text-neutral-600 dark:text-neutral-300\">\n {product.productDescription}\n </p>\n\n <img\n src={product.productImageUrl}\n alt=\"Product Photo\"\n width={384}\n height={384}\n className=\"max-h-sm max-w-sm\"\n draggable={false}\n />\n </div>\n </main>\n </div>\n );\n};\n\nexport default PanelProductDetails;\n","import Hls from \"hls.js\";\nimport { Pause, Play } from \"lucide-react\";\nimport {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n type CSSProperties,\n} from \"react\";\nimport { Button } from \"../../ui/button\";\nimport LoadingIndicator from \"../LoadingIndicator\";\nimport {\n mediaSessionPause,\n mediaSessionPlay,\n mediaSessionUpdateDurationAndPosition,\n startMediaSessionCoordinator,\n stopMediaSessionCoordinator,\n} from \"./media.session.coordinator\";\n\nimport \"./audio-player.css\";\n\ntype ChapterWithPublicUrl = {\n id: string;\n multimediaId?: string;\n name: string;\n description?: string;\n publicUrl: string;\n downloadableUrl?: string;\n duration?: number;\n};\n\nexport type AudioPlayerMethods = {\n selectChapter: (chapter: ChapterWithPublicUrl) => void;\n};\n\ntype AudioPlayerProps = {\n chapters: ChapterWithPublicUrl[];\n styles: CSSProperties;\n updateCurrentTime?: (currentTime: number) => void;\n\n title?: string;\n imageURL?: string;\n\n setCurrentTimeHandler?: (seekTo: (second: number) => void) => void;\n uniqueProductID: string;\n\n onChapterChange?: (chapter: ChapterWithPublicUrl) => void;\n};\n\nconst AudioPlayer = forwardRef<AudioPlayerMethods, AudioPlayerProps>(\n (\n {\n chapters,\n styles,\n updateCurrentTime,\n setCurrentTimeHandler,\n title,\n imageURL,\n uniqueProductID,\n onChapterChange,\n },\n ref,\n ) => {\n enum PlayState {\n Playing,\n Paused,\n }\n\n const [playState, setPlayState] = useState<PlayState>(PlayState.Paused);\n\n useEffect(() => {\n switch (playState) {\n case PlayState.Playing:\n mediaSessionPlay();\n break;\n case PlayState.Paused:\n mediaSessionPause();\n break;\n }\n }, [playState]);\n\n useImperativeHandle(ref, () => {\n return {\n selectChapter: (chapter: ChapterWithPublicUrl) => {\n playChapter(chapter);\n },\n };\n });\n\n const [currentTime, setCurrentTime] = useState<number | undefined>(\n undefined,\n );\n const [duration, setDuration] = useState<number | undefined>(undefined);\n\n const videoRef = useRef<HTMLVideoElement | null>(null);\n const hlsRef = useRef<Hls | undefined>(undefined);\n const timerRef = useRef<number | undefined>(undefined);\n\n const audioPlayerContainerRef = useRef<HTMLDivElement>(null!);\n\n const currentChapterRef = useRef<ChapterWithPublicUrl | null>(null);\n\n const [playWhenReady, setPlayWhenReady] = useState(true);\n const [isStarted, setIsStarted] = useState(false);\n const [isLoading, setIsLoading] = useState(!isSafari());\n\n function saveLastPlayedTime(timeInSeconds: number) {\n if (timeInSeconds < 10) {\n return;\n }\n localStorage.setItem(\n `__player__${uniqueProductID}_${currentChapterRef.current?.id}`,\n `${timeInSeconds}`,\n );\n }\n\n function getLastPlayedTime(): number | undefined {\n const time = localStorage.getItem(\n `__player__${uniqueProductID}_${currentChapterRef.current?.id}`,\n );\n\n if (time == null) {\n return undefined;\n }\n try {\n const result = parseInt(time);\n\n if (isNaN(result) || result < 0) {\n return undefined;\n }\n\n return result;\n } catch (e) {\n return undefined;\n }\n }\n\n function getLastSelectedChapterID(): string | undefined {\n const lastSelectedChapterID = localStorage.getItem(\n `__player__${uniqueProductID}_last_chapter`,\n );\n if (lastSelectedChapterID == null) {\n return undefined;\n }\n return lastSelectedChapterID;\n }\n\n function setLastSelectedChapterID(chapterID: string) {\n localStorage.setItem(\n `__player__${uniqueProductID}_last_chapter`,\n chapterID,\n );\n }\n\n function deleteMemoryChapter(chapterID: string) {\n localStorage.removeItem(`__player__${uniqueProductID}_${chapterID}`);\n }\n\n function setupObservers() {\n if (videoRef.current == null) {\n return;\n }\n videoRef.current.onloadeddata = () => {\n if (videoRef.current == null) {\n return;\n }\n if (videoRef.current.readyState < 2) {\n setIsLoading(true);\n }\n if (videoRef.current.readyState >= 2) {\n setIsLoading(false);\n }\n\n if (!isStarted) {\n const lastPlayedTime = getLastPlayedTime();\n if (lastPlayedTime != undefined) {\n seekTo(lastPlayedTime);\n }\n setIsStarted(true);\n }\n if (playWhenReady) {\n setPlayWhenReady(false);\n try {\n play();\n } catch (e) {\n console.log(\"play error\", e);\n }\n }\n };\n videoRef.current.onplay = () => {};\n\n videoRef.current.onseeked = () => {};\n videoRef.current.onseeking = () => {};\n\n videoRef.current.onpause = () => {};\n\n videoRef.current.onended = () => {\n playNextChapter();\n };\n\n startMediaSessionCoordinator({\n title: title ?? \"\",\n artwork: imageURL,\n action: (details) => {\n switch (details.action) {\n case \"play\":\n play();\n break;\n case \"pause\":\n pause();\n break;\n case \"seekbackward\":\n seekBy(-15);\n break;\n case \"seekforward\":\n seekBy(15);\n break;\n case \"seekto\":\n if (details.seekTime) {\n seekTo(details.seekTime);\n }\n break;\n case \"stop\":\n pause();\n break;\n default:\n break;\n }\n },\n });\n\n startTimer();\n }\n\n function playNextChapter() {\n if (chapters == null || chapters.length == 0) {\n return;\n }\n const currentChapterIndex = chapters.findIndex(\n (chapter) => chapter.id == currentChapterRef.current?.id,\n );\n if (currentChapterIndex == -1) {\n return;\n }\n deleteMemoryChapter(chapters[currentChapterIndex].id);\n const nextChapterIndex = currentChapterIndex + 1;\n if (nextChapterIndex >= chapters.length) {\n return;\n }\n playChapter(chapters[currentChapterIndex + 1]);\n }\n\n function startTimer() {\n updatePlayerDetails();\n if (timerRef.current != null) return;\n\n timerRef.current = setTimeout(() => {\n updatePlayerDetails();\n timerRef.current = undefined;\n startTimer();\n }, 500) as unknown as number;\n }\n\n function stopTimer() {\n if (timerRef.current == null) return;\n clearTimeout(timerRef.current as unknown as number);\n }\n\n function updatePlayerDetails() {\n if (videoRef.current == null) {\n return;\n }\n setPlayState(\n videoRef.current.paused ? PlayState.Paused : PlayState.Playing,\n );\n setDuration(videoRef.current.duration);\n setCurrentTime(videoRef.current.currentTime);\n saveLastPlayedTime(videoRef.current.currentTime);\n mediaSessionUpdateDurationAndPosition(\n videoRef.current.duration,\n videoRef.current.currentTime,\n );\n if (\n videoRef.current.networkState === videoRef.current.NETWORK_LOADING &&\n videoRef.current.readyState <= videoRef.current.HAVE_FUTURE_DATA\n ) {\n setIsLoading(true);\n } else {\n setIsLoading(false);\n }\n if (updateCurrentTime) {\n updateCurrentTime(videoRef.current.currentTime);\n }\n }\n\n function play() {\n videoRef.current?.play().then().catch();\n updatePlayerDetails();\n }\n\n function pause() {\n videoRef.current?.pause();\n updatePlayerDetails();\n }\n\n function togglePlayState() {\n if (playState === PlayState.Playing) {\n pause();\n return;\n }\n play();\n }\n\n function seekBy(seconds: number) {\n if (videoRef.current == null) {\n return;\n }\n const newTime = videoRef.current.currentTime + seconds;\n if (newTime < 0) {\n videoRef.current.currentTime = 0;\n return;\n }\n if (newTime > videoRef.current.duration) {\n videoRef.current.currentTime = videoRef.current.duration;\n return;\n }\n videoRef.current.currentTime += seconds;\n }\n\n function seekTo(toSecond: number) {\n if (videoRef.current == null) {\n return;\n }\n setCurrentTime(toSecond);\n if (toSecond < 0) {\n videoRef.current.currentTime = 0;\n return;\n }\n if (toSecond > videoRef.current.duration) {\n videoRef.current.currentTime = videoRef.current.duration;\n return;\n }\n videoRef.current.currentTime = toSecond;\n }\n\n function destroyPlayer() {\n if (videoRef.current == null) {\n return;\n }\n videoRef.current.onplay = null;\n videoRef.current.onseeked = null;\n videoRef.current.onseeking = null;\n videoRef.current.onpause = null;\n videoRef.current.onended = null;\n videoRef.current.src = \"\";\n hlsRef.current?.destroy();\n }\n\n function loadChapters(chapters: ChapterWithPublicUrl[]) {\n if (chapters.length == 0) {\n return;\n }\n\n const chapterID = getLastSelectedChapterID();\n if (chapterID == null) {\n playChapter(chapters[0]);\n return;\n }\n\n const chapter = chapters.find((chapter) => chapter.id == chapterID);\n if (chapter == null) {\n playChapter(chapters[0]);\n return;\n }\n\n playChapter(chapter);\n }\n\n function playChapter(chapter: ChapterWithPublicUrl) {\n setIsStarted(false);\n setPlayWhenReady(true);\n currentChapterRef.current = chapter;\n playURL(chapter.publicUrl);\n onChapterChange?.(chapter);\n setLastSelectedChapterID(chapter.id);\n }\n\n function playURL(src: string) {\n if (videoRef.current == null) {\n return;\n }\n if (videoRef.current.canPlayType(\"application/vnd.apple.mpegurl\")) {\n videoRef.current.src = src;\n } else if (Hls.isSupported()) {\n if (hlsRef.current == null) {\n hlsRef.current = new Hls();\n hlsRef.current?.attachMedia(videoRef.current);\n }\n hlsRef.current?.loadSource(src);\n }\n }\n\n useEffect(() => {\n if (videoRef.current == null) {\n return;\n }\n setupObservers();\n loadChapters(chapters);\n }, [videoRef.current]);\n\n useEffect(() => {\n loadChapters(chapters);\n }, [chapters]);\n\n useEffect(() => {\n if (setCurrentTimeHandler != null) {\n setCurrentTimeHandler(seekTo);\n }\n\n return () => {\n setCurrentTime(undefined);\n videoRef.current?.pause();\n destroyPlayer();\n stopMediaSessionCoordinator();\n };\n }, []);\n\n const calculateTime = (secs: number) => {\n const hours = Math.floor(secs / 3600);\n const minutes = Math.floor(secs / 60) % 60;\n const seconds = Math.floor(secs % 60);\n const returnedHours =\n hours > 0 ? (hours < 10 ? `0${hours}:` : `${hours}:`) : \"\";\n const returnedSeconds = seconds < 10 ? `0${seconds}` : `${seconds}`;\n if (isNaN(seconds) || isNaN(minutes) || isNaN(hours)) {\n return \"\";\n }\n return `${returnedHours}${minutes}:${returnedSeconds}`;\n };\n\n const showRangeProgress = (rangeInput: HTMLInputElement) => {\n const barProgress =\n (parseFloat(rangeInput.value) / parseFloat(rangeInput.max)) * 100;\n audioPlayerContainerRef.current.style.setProperty(\n \"--seek-before-width\",\n barProgress + \"%\",\n );\n\n const selectedTime = (duration! * barProgress) / 100;\n seekTo(selectedTime);\n };\n\n return (\n <div\n id=\"audio-player-container\"\n className=\"flex flex-col\"\n style={styles}\n ref={audioPlayerContainerRef}\n >\n <video\n ref={videoRef}\n className=\"hidden\"\n poster={imageURL}\n title={title}\n ></video>\n\n <input\n type=\"range\"\n min=\"0\"\n max={duration != undefined ? Math.floor(duration).toString() : 100}\n value={currentTime ?? 0}\n onChange={(e) => showRangeProgress(e.target as HTMLInputElement)}\n className=\"w-full\"\n />\n\n <section className=\"flex w-full items-center justify-between text-sm font-medium\">\n <span id=\"current-time\">{calculateTime(currentTime!)}</span>\n <span id=\"duration\">{calculateTime(duration!)}</span>\n </section>\n <div className=\"mt-6 flex items-center justify-center gap-x-12\">\n <Button\n variant=\"outline\"\n onClick={() => seekBy(-10)}\n aria-label=\"Rewind 10 Seconds\"\n >\n -10\n </Button>\n <Button\n variant=\"outline\"\n onClick={togglePlayState}\n aria-label=\"Play Or Pause\"\n >\n {playState === PlayState.Paused && <Play className=\"h-5 w-5\" />}\n {playState === PlayState.Playing && <Pause className=\"h-5 w-5\" />}\n </Button>\n <Button\n variant=\"outline\"\n onClick={() => seekBy(10)}\n aria-label=\"Fast Forward 10 Seconds\"\n >\n +10\n </Button>\n </div>\n {isLoading && (\n <div className=\"mt-2 flex w-full justify-center\">\n <LoadingIndicator />\n </div>\n )}\n </div>\n );\n },\n);\n\nfunction isSafari() {\n return navigator.userAgent.toLowerCase().indexOf(\"safari/\") > -1;\n}\n\nexport default AudioPlayer;\n","export function mediaSessionPlay() {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.playbackState = \"playing\";\n}\n\nexport function mediaSessionPause() {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.playbackState = \"paused\";\n}\n\nexport function mediaSessionUpdateDurationAndPosition(\n duration: number | undefined,\n currentTime: number | undefined,\n) {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n if (duration != null && isNaN(duration)) {\n return;\n }\n if (currentTime != null && isNaN(currentTime)) {\n return;\n }\n navigator.mediaSession.setPositionState({\n playbackRate: 1,\n duration: duration,\n position: currentTime,\n });\n}\n\nexport function startMediaSessionCoordinator(args: {\n title: string;\n artwork?: string;\n\n action: (details: MediaSessionActionDetails) => void;\n}) {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.metadata = new MediaMetadata({\n title: args.title,\n artwork: args.artwork\n ? [\n {\n type: \"image/png\",\n src: args.artwork,\n },\n ]\n : undefined,\n });\n\n navigator.mediaSession.setActionHandler(\"play\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"pause\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"stop\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekbackward\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekforward\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekto\", (e) => {\n args.action(e);\n });\n}\n\nexport function stopMediaSessionCoordinator() {\n navigator.mediaSession.metadata = null;\n}\n","export function ProgressBar() {\n const [progress, setProgress] = React.useState(13);\n\n React.useEffect(() => {\n const timer = setTimeout(() => setProgress(66), 500);\n return () => clearTimeout(timer);\n }, []);\n\n return (\n <div className=\"w-[60%] h-2 bg-gray-200 rounded-full overflow-hidden\">\n <div \n className=\"h-full bg-blue-600 transition-all duration-300\"\n style={{ width: `${progress}%` }}\n />\n </div>\n );\n}\n\nimport * as React from \"react\";\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { LogOut } from \"lucide-react\";\nimport { useState, type CSSProperties } from \"react\";\nimport { cn } from \"../../lib/utils\";\nimport { Button } from \"../../ui/button\";\nimport type { GetThemeOutput } from \"../types\";\n\nimport type { PanelScreen } from \"../types\";\n\ninterface PanelProductHeaderComponentProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n styles: CSSProperties;\n theme?: GetThemeOutput;\n logout: () => void;\n}\n\nfunction PanelProductHeaderComponent({\n activeScreen,\n setActiveScreen,\n setParams,\n styles,\n theme,\n logout,\n}: PanelProductHeaderComponentProps) {\n return (\n <header className=\"md:border-r-neutral-150 md:bg-beige-50 fixed right-0 bottom-0 left-0 z-10 flex h-12 w-full items-center bg-neutral-800 md:static md:z-0 md:min-h-screen md:w-auto md:border-r dark:md:border-r-neutral-900\">\n <MobileMenu\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <SidebarMenu\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n theme={theme}\n logout={logout}\n />\n </header>\n );\n}\n\nexport default PanelProductHeaderComponent;\n\ninterface MobileMenuProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n}\n\nfunction MobileMenu({\n activeScreen,\n setActiveScreen,\n setParams,\n}: MobileMenuProps) {\n return (\n <nav className=\"flex w-full items-center justify-evenly gap-4 md:hidden\">\n <MobileButton\n panelScreen=\"products\"\n label=\"Produkty\"\n imageURL=\"/icons/bitsnap-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <MobileButton\n panelScreen=\"orders\"\n label=\"Faktury\"\n imageURL=\"/icons/category-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <MobileButton\n panelScreen=\"profile\"\n label=\"Profil\"\n imageURL=\"/icons/profile-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n </nav>\n );\n}\n\ninterface MobileButtonProps {\n panelScreen: PanelScreen;\n label: string;\n imageURL: string;\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n}\n\nfunction MobileButton({\n panelScreen,\n label,\n imageURL,\n activeScreen,\n setActiveScreen,\n setParams,\n}: MobileButtonProps) {\n return (\n <Button\n onClick={() => {\n setActiveScreen(panelScreen);\n setParams({\n product: undefined,\n state: panelScreen,\n });\n }}\n aria-label={label}\n variant={null}\n className={cn(\n \"flex flex-col gap-0\",\n activeScreen === panelScreen ? \"opacity-100\" : \"opacity-50\",\n )}\n >\n <img src={imageURL} alt={label} className=\"scale-75\" />\n <span className=\"text-xs font-normal text-white\">{label}</span>\n </Button>\n );\n}\n\ninterface SidebarButtonProps {\n panelScreen: PanelScreen;\n label: string;\n imageURL: string;\n darkImageURL: string;\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n isExpanded: boolean;\n}\n\nfunction SidebarButton({\n panelScreen,\n label,\n imageURL,\n darkImageURL,\n activeScreen,\n setActiveScreen,\n setParams,\n isExpanded,\n}: SidebarButtonProps) {\n return (\n <Button\n onClick={() => {\n setActiveScreen(panelScreen);\n setParams({\n product: undefined,\n state: panelScreen,\n });\n }}\n variant={activeScreen === panelScreen ? \"secondary\" : \"ghost\"}\n className=\"justify-start\"\n >\n <img\n src={imageURL}\n alt={label}\n className={cn(\n \"aspect-auto h-5 w-5 dark:hidden\",\n isExpanded ? \"mr-4\" : \"mr-2\",\n )}\n />\n <img\n src={darkImageURL}\n alt={label}\n className={cn(\n \"hidden aspect-auto h-5 w-5 dark:inline\",\n isExpanded ? \"mr-4\" : \"mr-2\",\n )}\n />\n {isExpanded && (\n <span className=\"md:text-medium hidden md:inline\">{label}</span>\n )}\n </Button>\n );\n}\n\ninterface SidebarMenuProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n theme?: GetThemeOutput;\n logout: () => void;\n}\n\nfunction SidebarMenu({\n activeScreen,\n setActiveScreen,\n setParams,\n theme,\n logout,\n}: SidebarMenuProps) {\n const [sidebarExpandRef] = useAutoAnimate();\n const [isExpanded, setIsExpanded] = useState(true);\n\n return (\n <div\n ref={sidebarExpandRef}\n className={cn(\n \"hidden px-4 pt-4 pb-12 md:flex md:h-full md:flex-col dark:bg-neutral-900\",\n isExpanded ? \"md:w-52\" : \"md:w-16\",\n )}\n >\n <div className=\"flex items-center justify-between\">\n <CompanyLogo theme={theme} isExpanded={isExpanded} />\n </div>\n\n <SidebarSeparator className=\"my-6\" />\n\n <div className=\"flex flex-1 flex-col gap-2\">\n <SidebarButton\n panelScreen=\"products\"\n label=\"Produkty\"\n imageURL=\"/icons/bitsnap-dark-24x24.svg\"\n darkImageURL=\"/icons/bitsnap-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n\n <SidebarButton\n panelScreen=\"orders\"\n label=\"Zamówienia\"\n imageURL=\"/icons/category-dark-24x24.svg\"\n darkImageURL=\"/icons/category-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n\n <SidebarButton\n panelScreen=\"profile\"\n label=\"Profil\"\n imageURL=\"/icons/profile-dark-24x24.svg\"\n darkImageURL=\"/icons/profile-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n </div>\n\n <SidebarSeparator className=\"mb-6\" />\n\n <Button onClick={logout}>\n <LogOut className=\"mr-2\" width={16} height={16} />\n {isExpanded && (\n <p className=\"md:text-medium hidden md:inline md:text-center\">\n Wyloguj się\n </p>\n )}\n </Button>\n </div>\n );\n}\n\ninterface SidebarSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {}\n\nfunction SidebarSeparator({ className }: SidebarSeparatorProps) {\n return (\n <div className={cn(\"relative h-px w-full bg-neutral-300\", className)}>\n <div className=\"absolute -top-px left-0 h-1 w-1 rounded-full bg-neutral-500\"></div>\n <div className=\"absolute -top-px right-0 h-1 w-1 rounded-full bg-neutral-500\"></div>\n </div>\n );\n}\n\ninterface CompanyLogoProps {\n theme?: GetThemeOutput;\n isExpanded: boolean;\n}\n\nfunction CompanyLogo({ theme, isExpanded }: CompanyLogoProps) {\n return (\n <>\n {theme == null && (\n <p className=\"text-xl tracking-wider md:inline dark:text-neutral-200\">\n bitsnap.\n </p>\n )}\n {(theme?.logoDarkURL || theme?.logoURL) && (\n <img\n src={theme.logoDarkURL ?? theme.logoURL}\n alt=\"Company Logo\"\n className=\"hidden h-6 w-6 dark:inline\"\n draggable={false}\n />\n )}\n\n {theme?.logoURL && (\n <img\n src={theme.logoURL}\n alt=\"Company Logo\"\n className=\"h-6 w-6 dark:hidden\"\n draggable={false}\n />\n )}\n </>\n );\n}\n","import { Button } from \"../../ui/button\";\nimport { LogOut } from \"lucide-react\";\n\ninterface PanelProfileComponentProps {\n email: string | null;\n logout: () => void;\n}\n\nfunction PanelProfileComponent({ email, logout }: PanelProfileComponentProps) {\n return (\n <>\n <h3 className=\"text-2xl\">Profil</h3>\n <div className=\"mt-6 flex-1 md:flex-none\">\n <span className=\"text-sm text-neutral-500\">Email</span>\n <p className=\"mt-2 text-base\">{email ? email : \"Brak danych\"}</p>\n </div>\n <div className=\"flex w-full flex-col items-center space-y-2\">\n <Button onClick={logout} className=\"max-w-64 md:hidden\">\n <LogOut className=\"mr-2\" width={16} height={16} />\n <p className=\"text-medium inline text-center\">Wyloguj się</p>\n </Button>\n </div>\n </>\n );\n}\n\nexport default PanelProfileComponent;\n","import {\n AlertCircle,\n CheckCircle2,\n ChevronLeft,\n Loader2,\n Lock,\n Package,\n Truck,\n} from \"lucide-react\";\nimport { useState, type CSSProperties } from \"react\";\nimport { rpcProvider, useMutation, useQuery } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"../../ui/card\";\nimport { Input } from \"../../ui/input\";\nimport { Label } from \"../../ui/label\";\nimport { Textarea } from \"../../ui/textarea\";\n\nimport { usePanelConfig } from \"../PanelProvider\";\n\ninterface Props {\n orderID: string;\n initialEmail?: string;\n accessToken?: string;\n onBack?: () => void;\n}\n\nfunction StatusBadge({ status }: { status: string }) {\n const statusConfig: Record<\n string,\n { color: string; icon: typeof AlertCircle | null }\n > = {\n created: { color: \"bg-neutral-100 text-neutral-700\", icon: null },\n paid: { color: \"bg-green-100 text-green-700\", icon: CheckCircle2 },\n completed: { color: \"bg-blue-100 text-blue-700\", icon: CheckCircle2 },\n canceled: { color: \"bg-red-100 text-red-700\", icon: AlertCircle },\n sent: { color: \"bg-purple-100 text-purple-700\", icon: Truck },\n processing: { color: \"bg-yellow-100 text-yellow-700\", icon: Loader2 },\n };\n\n const config = statusConfig[status] || statusConfig.created;\n const Icon = config.icon;\n\n const statusLabels: Record<string, string> = {\n created: \"Utworzone\",\n paid: \"Opłacone\",\n completed: \"Zakończone\",\n canceled: \"Anulowane\",\n sent: \"Wysłane\",\n processing: \"Przetwarzane\",\n };\n\n return (\n <span\n className={`inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-medium ${config.color}`}\n >\n {Icon && <Icon className=\"h-4 w-4\" />}\n {statusLabels[status] || status}\n </span>\n );\n}\n\nfunction AddCommentForm({\n orderID,\n email,\n}: {\n orderID: string;\n email: string;\n}) {\n const [message, setMessage] = useState(\"\");\n const addCommentMutation = useMutation(\n rpcProvider.publicApi.addPublicOrderComment,\n );\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!message.trim()) return;\n\n try {\n await addCommentMutation.mutateAsync({\n projectId: \"\",\n orderId: orderID,\n message: message.trim(),\n accessToken: email,\n });\n setMessage(\"\");\n } catch (error) {\n console.error(\"Failed to add comment:\", error);\n }\n };\n\n return (\n <form onSubmit={handleSubmit} className=\"mt-4 space-y-2\">\n <Label htmlFor=\"comment\">Dodaj komentarz</Label>\n <Textarea\n id=\"comment\"\n value={message}\n onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>\n setMessage(e.target.value)\n }\n placeholder=\"Wpisz komentarz...\"\n rows={3}\n disabled={addCommentMutation.isPending}\n />\n <Button\n type=\"submit\"\n disabled={!message.trim() || addCommentMutation.isPending}\n >\n {addCommentMutation.isPending ? (\n <>\n <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />\n Wysyłanie...\n </>\n ) : (\n \"Dodaj komentarz\"\n )}\n </Button>\n </form>\n );\n}\n\nfunction formatDate(timestamp: { seconds: bigint } | undefined): string {\n if (!timestamp) return \"N/A\";\n const date = new Date(Number(timestamp.seconds) * 1000);\n return date.toLocaleDateString(\"pl-PL\", {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n });\n}\n\nfunction formatCurrency(amount: number, currency: string): string {\n return new Intl.NumberFormat(\"pl-PL\", {\n style: \"currency\",\n currency: currency.toUpperCase(),\n }).format(amount / 100);\n}\n\nfunction PublicOrderPageContent({\n orderID,\n initialEmail,\n onBack,\n accessToken,\n}: Props) {\n const { theme, projectID } = usePanelConfig();\n\n const [verifyEmail, setVerifyEmail] = useState(initialEmail || \"\");\n const [isVerifyDialogOpen, setIsVerifyDialogOpen] = useState(false);\n\n console.log(\"accessTOKEN\", accessToken, projectID, orderID);\n const {\n data: orderData,\n isLoading,\n error,\n refetch,\n } = useQuery(\n rpcProvider.publicApi.getPublicOrderDetails,\n {\n projectId: projectID ?? \"\",\n orderId: orderID,\n email: verifyEmail || undefined,\n accessToken: accessToken,\n },\n { enabled: !!orderID },\n );\n\n const order =\n orderData?.result.case === \"order\" ? orderData.result.value : null;\n const isVerified = order?.isVerified ?? false;\n\n const handleVerifyEmail = () => {\n refetch();\n setIsVerifyDialogOpen(false);\n };\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#000000\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#ffffff\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#000000\",\n } as CSSProperties;\n\n if (isLoading) {\n return (\n <div className=\"flex min-h-screen items-center justify-center\">\n <div className=\"text-center\">\n <Loader2 className=\"mx-auto h-8 w-8 animate-spin text-neutral-400\" />\n <p className=\"mt-2 text-neutral-600 dark:text-neutral-400\">\n Ładowanie zamówienia...\n </p>\n </div>\n </div>\n );\n }\n\n if (error || !order) {\n return (\n <div className=\"flex min-h-screen items-center justify-center\">\n <Card className=\"w-full max-w-md\">\n <CardContent className=\"pt-6\">\n <div className=\"text-center\">\n <AlertCircle className=\"mx-auto h-12 w-12 text-red-500\" />\n <h2 className=\"mt-4 text-xl font-semibold\">\n Zamówienie nie znalezione\n </h2>\n <p className=\"mt-2 text-neutral-600 dark:text-neutral-400\">\n Nie znaleziono zamówienia o podanym numerze.\n </p>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n }\n\n return (\n <div className=\"w-full bg-white py-8 dark:bg-black\" style={styles}>\n <div className=\"w-full px-4\">\n {onBack && (\n <Button onClick={onBack} variant=\"ghost\" className=\"mb-4 w-fit\">\n <ChevronLeft className=\"h-4 w-4\" />\n Wróć do historii zamówień\n </Button>\n )}\n <div className=\"mb-6 flex items-center gap-4\">\n {theme?.logoURL && (\n <>\n <img\n src={theme.logoURL}\n alt=\"Project logo\"\n className={`h-12 w-auto ${theme.logoDarkURL ? \"dark:hidden\" : \"\"}`}\n />\n {theme.logoDarkURL && (\n <img\n src={theme.logoDarkURL}\n alt=\"Project logo\"\n className=\"hidden h-12 w-auto dark:block\"\n />\n )}\n </>\n )}\n <div>\n <h1 className=\"text-3xl font-bold\">Zamówienie</h1>\n <p className=\"text-neutral-600 dark:text-neutral-400\">\n Numer zamówienia: #{order.orderId}\n </p>\n </div>\n </div>\n\n <Card className=\"mb-6\">\n <CardHeader>\n <CardTitle className=\"flex items-center\">\n <Package className=\"mr-2 h-5 w-5\" />\n Status zamówienia\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-6\">\n <div>\n <div className=\"flex items-center gap-2\">\n <StatusBadge status={order.status} />\n {order.processingStatus && (\n <span className=\"text-sm text-neutral-600\">\n · {order.processingStatus}\n </span>\n )}\n </div>\n <p className=\"mt-2 text-sm text-neutral-600\">\n Zamówienie złożone {formatDate(order.createdAt)}\n </p>\n </div>\n\n <div className=\"border-t pt-4\">\n <h3 className=\"mb-3 font-semibold\">Dane klienta</h3>\n <div className=\"space-y-2\">\n <div>\n <span className=\"font-medium\">Imię i nazwisko:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerName}\n </span>\n </div>\n <div>\n <span className=\"font-medium\">Email:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerEmail}\n </span>\n </div>\n {order.customerPhone && (\n <div>\n <span className=\"font-medium\">Telefon:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerPhone}\n </span>\n </div>\n )}\n </div>\n </div>\n\n {!isVerified && (\n <div className=\"border-t pt-4\">\n <Button\n onClick={() => setIsVerifyDialogOpen(true)}\n variant=\"outline\"\n className=\"w-full\"\n >\n <Lock className=\"mr-2 h-4 w-4\" />\n Zweryfikuj swój email\n </Button>\n </div>\n )}\n </CardContent>\n </Card>\n\n <Card className=\"mb-6\">\n <CardHeader>\n <CardTitle>Produkty</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-6\">\n <div className=\"space-y-4\">\n {order.items.map((item, index) => (\n <div key={index} className=\"flex items-center gap-4\">\n {item.imageUrl && (\n <img\n src={item.imageUrl}\n alt={item.name}\n className=\"h-16 w-16 rounded object-cover\"\n />\n )}\n <div className=\"flex-1\">\n <p className=\"font-medium\">{item.name}</p>\n <p className=\"text-sm text-neutral-600\">\n Ilość: {item.quantity}\n </p>\n </div>\n <div className=\"text-right\">\n <p className=\"font-medium\">\n {formatCurrency(Number(item.price), item.currency)}\n </p>\n </div>\n </div>\n ))}\n </div>\n\n {(order.deliveryAddress || order.deliveryMethod) && (\n <div className=\"border-t pt-4\">\n <h3 className=\"mb-3 flex items-center font-semibold\">\n <Truck className=\"mr-2 h-5 w-5\" />\n Informacje o dostawie\n </h3>\n <div className=\"space-y-2\">\n {order.deliveryAddress && (\n <div>\n <span className=\"font-medium\">Adres:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.deliveryAddress}\n </span>\n </div>\n )}\n {order.deliveryMethod && (\n <div>\n <span className=\"font-medium\">Metoda:</span>{\" \"}\n {order.deliveryMethod}\n </div>\n )}\n {order.trackingNumber && isVerified && (\n <div>\n <span className=\"font-medium\">Tracking:</span>{\" \"}\n {order.trackingNumber}\n </div>\n )}\n </div>\n </div>\n )}\n\n <div className=\"border-t pt-4\">\n <div className=\"flex justify-between text-lg font-bold\">\n <span>Suma:</span>\n <span>\n {formatCurrency(Number(order.totalAmount), order.currency)}\n </span>\n </div>\n </div>\n </CardContent>\n </Card>\n\n <Card>\n <CardHeader>\n <CardTitle>\n Komentarze {order.commentCount > 0 && `(${order.commentCount})`}\n </CardTitle>\n </CardHeader>\n <CardContent>\n {order.comments.length > 0 ? (\n <div className=\"space-y-4\">\n {order.comments.map((comment) => (\n <div\n key={comment.id}\n className=\"border-b pb-4 last:border-b-0\"\n >\n <div className=\"mb-1 flex items-center gap-2\">\n <span className=\"font-medium\">\n {comment.authorName || \"System\"}\n </span>\n <span className=\"text-xs text-neutral-500\">\n {formatDate(comment.createdAt)}\n </span>\n {comment.authorType === \"admin\" && (\n <span className=\"rounded bg-blue-100 px-2 py-0.5 text-xs text-blue-700\">\n Admin\n </span>\n )}\n </div>\n <p className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {comment.message}\n </p>\n </div>\n ))}\n </div>\n ) : (\n <p className=\"text-neutral-600\">Brak komentarzy.</p>\n )}\n\n {isVerified ? (\n <AddCommentForm orderID={order.orderId} email={verifyEmail} />\n ) : (\n <div className=\"mt-4\">\n <Button\n onClick={() => setIsVerifyDialogOpen(true)}\n variant=\"outline\"\n className=\"w-full\"\n >\n <Lock className=\"mr-2 h-4 w-4\" />\n Zweryfikuj swój email\n </Button>\n </div>\n )}\n </CardContent>\n </Card>\n\n {isVerifyDialogOpen && (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/50\">\n <Card className=\"w-full max-w-md\">\n <CardHeader>\n <CardTitle>Zweryfikuj swój email</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm text-neutral-700\">\n Podaj adres email użyty przy składaniu zamówienia.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"verify-email\">Adres email</Label>\n <Input\n id=\"verify-email\"\n type=\"email\"\n placeholder=\"twoj@email.com\"\n value={verifyEmail}\n onChange={(e) => setVerifyEmail(e.target.value)}\n />\n </div>\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n onClick={() => setIsVerifyDialogOpen(false)}\n className=\"flex-1\"\n >\n Anuluj\n </Button>\n <Button onClick={handleVerifyEmail} className=\"flex-1\">\n Zweryfikuj\n </Button>\n </div>\n </CardContent>\n </Card>\n </div>\n )}\n </div>\n </div>\n );\n}\n\nfunction PublicOrderPage(props: Props) {\n return <PublicOrderPageContent {...props} />;\n}\nexport default PublicOrderPage;\n","import * as React from \"react\";\n\nimport { cn } from \"../lib/utils\";\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n","import { setAllowedReturnOrigins, setPanelConfig } from \"@/src/panel\";\nimport { create } from \"@bufbuild/protobuf\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport { createContext, useContext, useEffect } from \"react\";\nimport {\n AddressSchema,\n BillingAddressSchema,\n} from \"src/gen/proto/common/v1/address_pb\";\nimport {\n GetPreOrderDetailsRequestSchema,\n OneClickAuthorizePaymentRequest_Gateway,\n PreOrderItemSchema,\n} from \"src/gen/proto/public/v1/public_api_pb\";\nimport { PublicApiClient } from \"src/public.api.client\";\nimport zod from \"zod\";\nimport { HOST, setCustomHost } from \"./constants\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { mapGooglePayConfiguration } from \"./google.pay.mapper\";\nimport { buildURL } from \"./helper.methods\";\nimport { Err, isErr } from \"./lib/err\";\nimport { round } from \"./lib/round.number\";\nimport { LinkRequest } from \"./link.request.schema\";\nimport {\n createPaymentURL,\n getReferenceIfPossible,\n injectReferenceToRequestIfNeeded,\n} from \"./methods\";\nimport { SingleProduct } from \"./product.details.model\";\nimport { useCheckoutStore } from \"./state\";\nimport { getLocale } from \"./locale\";\n\nexport const MARKETING_AGREEMENT_ID = \"__m_a\";\n\ntype CartProduct = {\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n\n // Those fields are used to send the price and currency to the analytics\n name?: string;\n price?: number;\n currency?: string;\n};\n\nexport interface CartMethods {\n checkIfApplePayIsAvailable(): Promise<boolean>;\n getGooglePayConfiguration(args: { items: CartProduct[] }): Promise<\n | {\n isAvailable: true;\n config: google.payments.api.PaymentDataRequest;\n }\n | {\n isAvailable: false;\n }\n >;\n\n addProduct(args: CartProduct): Promise<Err | void>;\n\n getProducts: () => Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details?: SingleProduct;\n }[]\n >;\n\n updateQuantity(args: { id: string; quantity: number }): Promise<Err | void>;\n\n removeProductFromCart: (args: { id: string }) => Promise<Err | void>;\n\n clearCart: () => Promise<Err | void>;\n\n getNumberOfElementsInCart: () => Promise<number>;\n\n setCouponCodeIfPossible: (couponCode?: string) => Promise<Err | void>;\n setDeliveryMethod: (deliveryMethod?: string) => Promise<Err | void>;\n setPostalCode: (postalCode?: string) => Promise<Err | void>;\n setEmail: (email?: string) => Promise<Err | void>;\n setCountry: (country: string) => Promise<Err | void>;\n getCountry: () => Promise<Err | string>;\n getAvailableCountries: () => Promise<Err | { name: string; code: string }[]>;\n\n redirectToNextStep: () => Promise<Err | { url: string }>;\n\n getApplePayPaymentRequest: (args?: {\n expectedItems?: CartProduct[];\n }) => Promise<Err | ApplePayJS.ApplePayPaymentRequest>;\n completeApplePayPayment: (args: {\n token: ApplePayJS.ApplePayPaymentToken;\n shippingContact?: ApplePayJS.ApplePayPaymentContact;\n billingContact?: ApplePayJS.ApplePayPaymentContact;\n }) => Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n >;\n completeGooglePayPayment: (args: {\n paymentData: google.payments.api.PaymentData;\n }) => Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n >;\n\n justRedirectToPayment: (args: {\n email?: string;\n productID: string;\n name?: string;\n country?: string;\n marketingAgreement?: boolean;\n }) => Promise<\n | Err\n | {\n url: string;\n }\n >;\n}\n\nconst CartProviderContext = createContext<CartMethods | undefined>(undefined);\n\nexport var bitsnapProjectID: string | undefined = undefined;\nexport function setProjectID(projectID: string) {\n setPanelConfig({\n projectID,\n });\n bitsnapProjectID = projectID;\n if (typeof window !== \"undefined\") {\n setAllowedReturnOrigins([window.location.origin]);\n }\n}\n\nexport function getProjectID(): string | undefined {\n if (bitsnapProjectID != null) {\n return bitsnapProjectID;\n }\n const me = document.querySelector(\n 'script[data-id][data-name=\"internal-cart\"]',\n );\n const projectID = me?.getAttribute(\"data-id\");\n return projectID ?? undefined;\n}\n\nexport { getLocale, setLocale } from \"./locale\";\n\nfunction getNewHostIfExist(): string | undefined {\n const me = document.querySelector(\n 'script[data-id][data-name=\"internal-cart\"]',\n );\n const customHost = me?.getAttribute(\"data-custom-host\");\n return customHost ?? undefined;\n}\n\nconst CartProvider = ({\n children,\n locale,\n}: {\n children: React.ReactNode;\n locale?: string;\n}) => {\n const queryClient = new QueryClient();\n\n useEffect(() => {\n updateNumberOfProductsInCart();\n }, []);\n\n const projectID = getProjectID();\n if (projectID == null) {\n return <></>;\n }\n\n const checkoutMethods = getCheckoutMethods(projectID, locale);\n\n return (\n <QueryClientProvider client={queryClient}>\n <CartProviderContext.Provider value={checkoutMethods}>\n {children}\n </CartProviderContext.Provider>\n </QueryClientProvider>\n );\n};\n\n// @ts-ignore\nconst getProducts: (\n projectID: string,\n args?: { items?: CheckoutProduct[]; locale?: string },\n) => Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details?: SingleProduct;\n }[]\n> = async (\n projectID: string,\n args?: { items?: CheckoutProduct[]; locale?: string },\n) => {\n let products: CheckoutProduct[] = [];\n\n if (args?.items != null && args.items.length > 0) {\n products = args.items;\n } else {\n products = getCheckout()?.products ?? [];\n }\n\n const productIds = Array.from(\n new Set(products.map((product) => product.productID)),\n );\n\n const params = new URLSearchParams();\n params.set(\"ids\", productIds.join(\",\"));\n params.set(\"locale\", args?.locale ?? getLocale());\n\n const result = await fetch(\n buildURL(projectID, `/products?${params.toString()}`),\n {\n method: \"GET\",\n },\n );\n\n if (result.status != 200) {\n return [];\n }\n\n const payload: {\n success: boolean;\n message?: string | undefined;\n result?: SingleProduct[] | undefined;\n } = await result.json();\n\n products.forEach((product) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n product[\"details\"] = payload.result?.find((el) => {\n if (el.id === product.productID) {\n return true;\n }\n if (el.variants != null && el.variants.length > 0) {\n const index = el.variants.findIndex(\n (variant) => variant.id === product.productID,\n );\n return index !== -1;\n }\n return false;\n });\n });\n\n // @ts-ignore\n return products\n .filter((el) => \"details\" in el)\n .map((el) => {\n el.details = resolveProductDetailsFromSingleProduct(\n el.productID,\n el.details as SingleProduct,\n );\n return el;\n });\n};\n\nexport const useCartProvider = () => {\n const context = useContext(CartProviderContext);\n\n if (context === undefined) {\n throw new Error(\"useCartProvider must be used within a CartProvider\");\n }\n\n return context;\n};\n\nexport default CartProvider;\n\nconst googlePayConfigSchema = zod.object({\n isAvailable: zod.boolean(),\n merchantId: zod.string(),\n merchantName: zod.string(),\n gateway: zod.string(),\n gatewayId: zod.string(),\n});\nconst checkoutProduct = zod.object({\n id: zod.string(),\n productID: zod.string(),\n quantity: zod.number(),\n metadata: zod.record(zod.string(), zod.string().optional()).optional(),\n});\ntype CheckoutProduct = zod.infer<typeof checkoutProduct>;\nconst checkoutSchema = zod.object({\n country: zod.string().optional(),\n couponCode: zod.string().optional(),\n selectedDeliveryMethod: zod.string().optional(),\n postalCode: zod.string().optional(),\n email: zod.string().optional(),\n products: zod.array(checkoutProduct).optional(),\n googlePayConfig: googlePayConfigSchema.optional(),\n});\nexport type GooglePayConfig = zod.infer<typeof googlePayConfigSchema>;\nconst emptyCheckout: Checkout = {\n country: undefined,\n couponCode: undefined,\n email: undefined,\n selectedDeliveryMethod: undefined,\n postalCode: undefined,\n products: [],\n googlePayConfig: undefined,\n};\nexport type Checkout = zod.infer<typeof checkoutSchema>;\n\nconst checkoutKey = \"checkout\";\n\nfunction getCheckout(): Checkout {\n try {\n const value = localStorage.getItem(checkoutKey);\n if (value == null) {\n return emptyCheckout;\n }\n return checkoutSchema.parse(JSON.parse(value));\n } catch (e) {\n return emptyCheckout;\n }\n}\n\nfunction addProducts(products: CartProduct[]) {\n const checkout = getCheckout();\n if (checkout.products == null) {\n checkout.products = [];\n }\n checkout.products.push(\n ...products.map((el) => ({\n id: Math.random().toString(36).substring(7),\n productID: el.productID,\n quantity: el.quantity,\n metadata: el.metadata,\n })),\n );\n sendAnalyticEvent({\n event: \"addToCart\",\n currency: \"PLN\",\n items: products.map((el) => ({\n id: el.productID,\n name: el.name ?? \"\",\n price: el.price ?? 0,\n quantity: el.quantity,\n currency: el.currency ?? \"PLN\",\n })),\n });\n saveCheckout(checkout);\n updateNumberOfProductsInCart();\n}\n\nfunction removeProductFromCheckout(ids: string[]) {\n const checkout = getCheckout();\n const newCheckout = {\n ...checkout,\n products: checkout?.products?.filter(\n (product) =>\n !ids.includes(product.productID) && !ids.includes(product.id),\n ),\n };\n sendAnalyticEvent({\n event: \"removeFromCart\",\n items: ids.map((id) => ({\n id: id,\n name: \"\",\n price: 0,\n quantity: 1,\n currency: \"PLN\",\n })),\n });\n saveCheckout(newCheckout);\n updateNumberOfProductsInCart();\n}\n\nfunction saveCheckout(model: Checkout) {\n localStorage.setItem(checkoutKey, JSON.stringify(model));\n}\n\nexport const getCheckoutMethods: (\n projectID: string,\n locale?: string,\n) => CartMethods = (projectID, locale = getLocale()) => {\n const newHost = getNewHostIfExist();\n if (newHost != null) {\n setCustomHost(newHost);\n }\n return {\n async checkIfApplePayIsAvailable(): Promise<boolean> {\n if (typeof window == \"undefined\" || typeof document == \"undefined\") {\n return false;\n }\n if (\"ApplePaySession\" in window === false) {\n return false;\n }\n\n try {\n const result = await PublicApiClient.get(\n HOST,\n ).isOneClickPaymentAvailable({\n projectId: projectID,\n });\n\n return result.applePay;\n } catch (e) {\n console.error(\"Error checking if Apple Pay is available\", e);\n return false;\n }\n },\n async getGooglePayConfiguration(args: { items: CartProduct[] }): Promise<\n | {\n isAvailable: true;\n config: google.payments.api.PaymentDataRequest;\n }\n | {\n isAvailable: false;\n }\n > {\n if (typeof window == \"undefined\" || typeof document == \"undefined\") {\n return {\n isAvailable: false,\n };\n }\n\n try {\n const googlePayConfig = await resolveGooglePayConfiguration(projectID);\n if (googlePayConfig?.isAvailable != true) {\n return {\n isAvailable: false,\n };\n }\n\n const checkout = getCheckout();\n if (checkout == null) {\n console.log(\"checkout is null\");\n return {\n isAvailable: false,\n };\n }\n\n const products = await getProducts(projectID, {\n locale,\n items: args.items.map((el) => {\n return {\n id: Math.random().toString(36).substring(7),\n quantity: el.quantity,\n metadata: el.metadata,\n productID: el.productID,\n };\n }),\n });\n\n if (isErr(products)) {\n return {\n isAvailable: false,\n };\n }\n const result = await PublicApiClient.get(HOST).getPreOrderDetails({\n items: products.map((el) =>\n create(PreOrderItemSchema, {\n id: el.productID,\n quantity: el.quantity,\n }),\n ),\n projectId: projectID,\n // we can detect 5 the closest inpost pickup point based on shipping address.\n postCode: checkout.postalCode,\n couponCode: checkout.couponCode,\n countryCode: checkout.country,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n });\n if (result.totalAmount == null) {\n return {\n isAvailable: false,\n };\n }\n const cartRequiresShipping =\n products.find((el) => el.details?.isDeliverable == true) != null;\n\n const mappedPaymentRequest = await mapGooglePayConfiguration({\n items: products,\n googlePayConfig: googlePayConfig,\n checkout: checkout,\n cartRequiresShipping: cartRequiresShipping,\n result: result,\n });\n if (mappedPaymentRequest == null) {\n return {\n isAvailable: false,\n };\n }\n\n return {\n isAvailable: true,\n config: mappedPaymentRequest,\n };\n } catch (e) {\n console.error(\"Error resolving Google Pay configuration\", e);\n return {\n isAvailable: false,\n };\n }\n },\n async clearCart(): Promise<Err | void> {\n const empty = structuredClone(emptyCheckout);\n empty.country = getCheckout()?.country;\n saveCheckout(empty);\n updateNumberOfProductsInCart();\n },\n\n async getAvailableCountries(): Promise<\n Err | { name: string; code: string }[]\n > {\n const result = await fetch(buildURL(projectID, \"/countries\"), {\n method: \"GET\",\n });\n\n if (result.status != 200) {\n return [];\n }\n\n try {\n return zod\n .array(\n zod.object({\n name: zod.string(),\n code: zod.string(),\n }),\n )\n .parse(await result.json());\n } catch (e) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n return Err(e.toString(), \"internal\");\n }\n },\n\n async getCountry(): Promise<Err | string> {\n let country = getCheckout()?.country;\n if (country == null) {\n country = \"PL\";\n const checkout = getCheckout();\n checkout.country = country;\n saveCheckout(checkout);\n }\n\n return country;\n },\n\n async getNumberOfElementsInCart(): Promise<number> {\n return (\n getCheckout()?.products?.reduce(\n (acc, product) => acc + product.quantity,\n 0,\n ) ?? 0\n );\n },\n\n async getProducts(): Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [p: string]: string | undefined;\n };\n details?: SingleProduct;\n }[]\n > {\n return await getProducts(projectID, { locale });\n },\n\n async removeProductFromCart(args: { id: string }): Promise<Err | void> {\n return removeProductFromCheckout([args.id]);\n },\n\n async setCountry(country: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.country = country;\n saveCheckout(checkout);\n },\n\n async setCouponCodeIfPossible(couponCode?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.couponCode = couponCode;\n saveCheckout(checkout);\n },\n\n async setPostalCode(postalCode?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.postalCode = postalCode;\n saveCheckout(checkout);\n },\n\n async setDeliveryMethod(deliveryMethod?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.selectedDeliveryMethod = deliveryMethod;\n saveCheckout(checkout);\n },\n\n async setEmail(email?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.email = email;\n saveCheckout(checkout);\n },\n\n async addProduct(args: CartProduct): Promise<Err | void> {\n return addProducts([args]);\n },\n\n async updateQuantity(args: {\n id: string;\n quantity: number;\n }): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.products = checkout.products?.map((product) => {\n if (product.id === args.id) {\n product.quantity = args.quantity;\n }\n return product;\n });\n saveCheckout(checkout);\n updateNumberOfProductsInCart();\n },\n\n async redirectToNextStep(): Promise<Err | { url: string }> {\n const checkout = getCheckout();\n\n if (checkout.products == null || checkout.products.length == 0) {\n return Err(\"cart-is-empty\", \"badInput\");\n }\n const mergedMetadata = checkout.products.reduce(\n (acc, product) => {\n if (product.metadata != null) {\n Object.keys(product.metadata).forEach((key) => {\n const value = product.metadata?.[key];\n if (value != null) {\n acc[key] = value;\n }\n });\n }\n return acc;\n },\n {} as Record<string, string>,\n );\n\n const payload: LinkRequest = {\n items: checkout.products.map((el) => {\n return {\n id: el.productID,\n quantity: el.quantity,\n };\n }),\n askForNote: true,\n countries: checkout.country ? [checkout.country] : undefined,\n metadata: mergedMetadata,\n };\n\n const paymentResponse = await createPaymentURL(payload);\n\n if (isErr(paymentResponse)) {\n console.warn(\"cannot create payment URL\", paymentResponse.error);\n return paymentResponse;\n }\n\n return {\n url: paymentResponse.url,\n };\n },\n\n async justRedirectToPayment(args: {\n email?: string;\n productID: string;\n name?: string;\n country?: string;\n marketingAgreement?: boolean;\n }): Promise<Err | { url: string }> {\n let payload: LinkRequest = {\n items: [\n {\n id: args.productID,\n quantity: 1,\n },\n ],\n askForNote: false,\n details:\n args.email || args.name\n ? {\n name: args.name,\n email: args.email,\n }\n : undefined,\n };\n\n payload = injectReferenceToRequestIfNeeded(payload);\n\n if (args.country == null) {\n args.country = \"pl\";\n }\n\n if (payload.details == null) {\n payload.details = {};\n }\n if (payload.details.address == null) {\n payload.details.address = {};\n }\n payload.details.address.country = args.country;\n\n if (args.marketingAgreement === true) {\n payload.additionalAgreements = [\n {\n id: MARKETING_AGREEMENT_ID,\n name: \"\",\n required: true,\n answer: true,\n },\n ];\n }\n\n const result = await createPaymentURL(payload);\n\n if (isErr(result)) {\n return result;\n } else {\n return {\n url: result.url,\n };\n }\n },\n\n async completeApplePayPayment(args: {\n token: ApplePayJS.ApplePayPaymentToken;\n shippingContact?: ApplePayJS.ApplePayPaymentContact;\n billingContact?: ApplePayJS.ApplePayPaymentContact;\n }): Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n > {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n try {\n let shippingName = args.shippingContact?.givenName;\n if (args.shippingContact?.familyName != null) {\n shippingName += \" \" + args.shippingContact?.familyName;\n } else if (args.billingContact?.familyName != null) {\n shippingName += \" \" + args.billingContact?.familyName;\n }\n\n let metadata: Record<string, string> = {};\n\n const ref = getReferenceIfPossible();\n if (ref != null) {\n metadata[\"ref\"] = ref;\n }\n\n const result = await PublicApiClient.get(HOST).authorizeOneClickPayment(\n {\n gateway: OneClickAuthorizePaymentRequest_Gateway.APPLE_PAY,\n paymentData: JSON.stringify(args.token.paymentData),\n paymentMethod: JSON.stringify(args.token.paymentMethod),\n transactionIdentifier: args.token.transactionIdentifier,\n order: create(GetPreOrderDetailsRequestSchema, {\n items: products.map((el) => ({\n id: el.productID,\n quantity: el.quantity,\n })),\n couponCode: checkout.couponCode,\n email:\n args.shippingContact?.emailAddress ??\n args.billingContact?.emailAddress ??\n checkout.email ??\n undefined,\n phone:\n args.shippingContact?.phoneNumber ??\n args.billingContact?.phoneNumber ??\n undefined,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n postCode: checkout.postalCode,\n projectId: projectID,\n }),\n shippingAddress: create(AddressSchema, {\n line1: args.shippingContact?.addressLines?.[0] ?? \"\",\n city: args.shippingContact?.locality ?? \"\",\n country: args.shippingContact?.countryCode ?? \"\",\n zipCode: args.shippingContact?.postalCode ?? \"\",\n name: shippingName,\n }),\n billingAddress: create(BillingAddressSchema, {\n name:\n args.billingContact?.givenName ??\n \"\" + \" \" + (args.billingContact?.familyName ?? \"\"),\n line1: args.billingContact?.addressLines?.[0] ?? \"\",\n city: args.billingContact?.locality ?? \"\",\n country: args.billingContact?.countryCode ?? \"\",\n zipCode: args.billingContact?.postalCode ?? \"\",\n }),\n metadata:\n Object.keys(metadata).length > 0\n ? JSON.stringify(metadata)\n : undefined,\n },\n );\n\n return {\n isSuccess: result.isSuccess,\n redirectURL: result.redirectUrl,\n };\n } catch (error) {\n console.error(error);\n return Err(\"Failed to authorize payment\");\n }\n },\n\n async completeGooglePayPayment(args: {\n paymentData: google.payments.api.PaymentData;\n }): Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n > {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n try {\n let shippingName = args.paymentData.shippingAddress?.name;\n\n let metadata: Record<string, string> = {};\n\n const ref = getReferenceIfPossible();\n if (ref != null) {\n metadata[\"ref\"] = ref;\n }\n\n const result = await PublicApiClient.get(HOST).authorizeOneClickPayment(\n {\n gateway: OneClickAuthorizePaymentRequest_Gateway.GOOGLE_PAY,\n paymentData:\n args.paymentData.paymentMethodData.tokenizationData.token,\n paymentMethod: args.paymentData.paymentMethodData.type,\n transactionIdentifier: \"\",\n order: create(GetPreOrderDetailsRequestSchema, {\n items: products.map((el) => ({\n id: el.productID,\n quantity: el.quantity,\n })),\n couponCode: checkout.couponCode,\n email: args.paymentData.email ?? undefined,\n phone: args.paymentData.shippingAddress?.phoneNumber ?? undefined,\n selectedDeliveryMethod:\n args.paymentData.shippingOptionData?.id ??\n checkout.selectedDeliveryMethod,\n postCode: args.paymentData.shippingAddress?.postalCode,\n projectId: projectID,\n }),\n shippingAddress: create(AddressSchema, {\n line1: args.paymentData.shippingAddress?.address1 ?? \"\",\n city: args.paymentData.shippingAddress?.locality ?? \"\",\n country: args.paymentData.shippingAddress?.countryCode ?? \"\",\n zipCode: args.paymentData.shippingAddress?.postalCode ?? \"\",\n name: shippingName,\n }),\n billingAddress: create(BillingAddressSchema, {\n name: args.paymentData.paymentMethodData.info?.billingAddress\n ?.name,\n line1:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.address1 ?? \"\",\n city:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.locality ?? \"\",\n country:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.countryCode ?? \"\",\n zipCode:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.postalCode ?? \"\",\n }),\n metadata:\n Object.keys(metadata).length > 0\n ? JSON.stringify(metadata)\n : undefined,\n },\n );\n\n return {\n isSuccess: result.isSuccess,\n redirectURL: result.redirectUrl,\n };\n } catch (error) {\n console.error(error);\n return Err(\"Failed to authorize payment\");\n }\n\n return {\n isSuccess: true,\n };\n },\n\n async getApplePayPaymentRequest(args?: {\n expectedItems?: CartProduct[];\n }): Promise<Err | ApplePayJS.ApplePayPaymentRequest> {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n if (args && args.expectedItems != null && args.expectedItems.length > 0) {\n if (checkout.products) {\n removeProductFromCheckout(\n checkout.products.map((el) => el.productID),\n );\n }\n addProducts(args.expectedItems);\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n const result = await PublicApiClient.get(HOST).getPreOrderDetails({\n items: products.map((el) =>\n create(PreOrderItemSchema, {\n id: el.productID,\n quantity: el.quantity,\n }),\n ),\n projectId: projectID,\n // we can detect 5 the closest inpost pickup point based on shipping address.\n postCode: checkout.postalCode,\n couponCode: checkout.couponCode,\n countryCode: checkout.country,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n });\n\n const items = products.map((el) => {\n return {\n amount: `${round((el.quantity * (el.details?.price ?? 0)) / 100, 2)}`,\n label: el.details?.name + \" - \" + el.quantity,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n };\n });\n\n if (result.selectedDeliveryMethod != null) {\n const deliveryMethod = result.methods.find(\n (el) => el.id == result.selectedDeliveryMethod,\n );\n if (deliveryMethod != null) {\n items.push({\n amount: `${round(deliveryMethod.amount / 100, 2)}`,\n label: deliveryMethod.name,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n });\n }\n }\n\n if (result.couponCode != null && result.couponValue != null) {\n items.push({\n amount: `-${round(result.couponValue / 100, 2)}`,\n label: result.couponCode,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n });\n }\n\n return {\n countryCode: checkout.country ?? \"PL\",\n merchantCapabilities: [\n \"supports3DS\",\n \"supportsCredit\",\n \"supportsDebit\",\n ],\n supportedNetworks: [\"visa\", \"masterCard\"],\n total: {\n amount: `${round((result.totalAmount ?? 0) / 100, 2)}`,\n label: \"Płatność za koszyk\",\n type: \"final\",\n },\n shippingMethods: result.methods.map((el) => ({\n amount: `${round(el.amount / 100, 2)}`,\n detail: el.description ?? \"\",\n identifier: el.id,\n label: el.name,\n dateComponentsRange: {\n startDateComponents: {\n days: el.minDays ?? 1,\n hours: 0,\n months: 0,\n years: 0,\n } satisfies ApplePayJS.ApplePayDateComponents,\n endDateComponents: {\n days: el.maxDays ?? 14,\n hours: 0,\n months: 0,\n years: 0,\n } satisfies ApplePayJS.ApplePayDateComponents,\n },\n })),\n lineItems: items,\n currencyCode: \"PLN\",\n };\n },\n };\n};\n\nasync function resolveGooglePayConfiguration(projectID: string) {\n const checkout = getCheckout();\n if (checkout.googlePayConfig?.isAvailable != true) {\n const result = await PublicApiClient.get(HOST).isOneClickPaymentAvailable({\n projectId: projectID,\n });\n if (result.googlePay == true && result.googlePayConfig != null) {\n checkout.googlePayConfig = {\n isAvailable: true,\n gateway: result.googlePayConfig.gateway,\n gatewayId: result.googlePayConfig.gatewayMerchantId,\n merchantName: result.googlePayConfig.merchantName,\n merchantId: result.googlePayConfig.merchantId,\n };\n } else {\n checkout.googlePayConfig = {\n isAvailable: false,\n gateway: \"\",\n gatewayId: \"\",\n merchantName: \"\",\n merchantId: \"\",\n };\n }\n }\n saveCheckout(checkout);\n return checkout.googlePayConfig;\n}\n\nfunction resolveProductDetailsFromSingleProduct(\n id: string,\n product: SingleProduct,\n) {\n if (id == product.id) {\n const variantIndex = product.variants?.findIndex((v) => v.id === id);\n if (variantIndex != null && variantIndex != -1) {\n const variant = product.variants![variantIndex];\n return {\n ...product,\n availableQuantity: variant.availableQuantity,\n isDeliverable: variant.isDeliverable,\n images: variant.images ?? product.images,\n name: product.name + \" \" + variant.name,\n price: variant.price,\n currency: variant.currency,\n };\n }\n return product;\n }\n\n const variant = product.variants?.find((v) => v.id === id);\n if (variant == null) {\n return product;\n }\n\n return {\n ...product,\n id: variant.id,\n name: product.name + \" \" + variant.name,\n price: variant.price,\n currency: variant.currency,\n metadata: product.metadata,\n availableQuantity: variant.availableQuantity,\n isDeliverable: variant.isDeliverable,\n images: variant.images ?? product.images,\n };\n}\n\ntype ApplePaySessionArgs = {\n postCode?: string;\n email?: string;\n couponCode?: string;\n};\n\nfunction updateNumberOfProductsInCart() {\n const checkout = getCheckout();\n let numberOfProductsInCart = 0;\n if (checkout == null) {\n useCheckoutStore.setState((state) => ({\n ...state,\n numberOfProductsInCart,\n }));\n return;\n }\n numberOfProductsInCart =\n checkout.products?.reduce((acc, product) => acc + product.quantity, 0) ?? 0;\n useCheckoutStore.setState((state) => ({ ...state, numberOfProductsInCart }));\n}\n","import zod from \"zod\";\nimport { round } from \"./lib/round.number\";\n\nconst eventPayload = zod.object({\n event: zod.enum([\n \"purchase\",\n \"addToCart\",\n \"customizeProduct\",\n \"viewCart\",\n \"removeFromCart\",\n \"initiateCheckout\",\n \"lead\",\n ]),\n step: zod.string().optional(),\n value: zod.number().optional(),\n currency: zod.string().optional(),\n content_name: zod.string().optional(),\n items: zod\n .array(\n zod.object({\n id: zod.string(),\n name: zod.string(),\n price: zod.number().default(0),\n currency: zod.string().default(\"PLN\"),\n quantity: zod.number().default(1),\n })\n )\n .optional(),\n});\ntype EventPayload = zod.infer<typeof eventPayload>;\n\nexport function sendAnalyticEvent(payload: EventPayload) {\n if (typeof window == \"undefined\") {\n return;\n }\n\n sendGoogleAnalyticsEvent(payload);\n sendPixelAnalyticsEvent(payload);\n sendTikTokAnalyticsEvent(payload);\n}\n\nfunction sendGoogleAnalyticsEvent(payload: EventPayload) {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.dataLayer == \"undefined\") {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.dataLayer = [];\n }\n\n const ga4Event = mapToGA4EcommerceEvent(payload);\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.dataLayer.push(ga4Event);\n } catch (e) {\n console.warn(\"cannot send google analytics event\", e);\n }\n}\n\nfunction mapToGA4EcommerceEvent(payload: EventPayload) {\n // Calculate total value from items if not provided\n const totalValue =\n payload.value ??\n payload.items?.reduce(\n (sum, item) => sum + (item.price || 0) * (item.quantity || 1),\n 0\n ) ??\n 0;\n\n // Map items to GA4 format\n const items = payload.items?.map((item) => ({\n item_id: item.id,\n item_name: item.name || item.id,\n price: round((item.price || 0) / 100, 2),\n quantity: item.quantity || 1,\n }));\n\n // Build base ecommerce object\n const ecommerce: Record<string, unknown> = {\n currency: payload.currency || \"PLN\",\n value: round(totalValue / 100, 2),\n };\n\n if (items && items.length > 0) {\n ecommerce.items = items;\n }\n\n // Map event names to GA4 ecommerce events\n let eventName: string;\n switch (payload.event) {\n case \"purchase\":\n eventName = \"purchase\";\n // Purchase events require transaction_id, but we'll use a timestamp-based one if not provided\n ecommerce.transaction_id = payload.step || `txn_${Date.now()}`;\n break;\n case \"addToCart\":\n eventName = \"add_to_cart\";\n break;\n case \"viewCart\":\n eventName = \"view_cart\";\n break;\n case \"removeFromCart\":\n eventName = \"remove_from_cart\";\n break;\n case \"initiateCheckout\":\n eventName = \"begin_checkout\";\n break;\n case \"customizeProduct\":\n // Customize product is not a standard GA4 ecommerce event\n // We'll send it as a custom event with ecommerce data\n eventName = \"customize_product\";\n break;\n default:\n eventName = payload.event;\n }\n\n return {\n event: eventName,\n ecommerce,\n // Include step if provided for additional context\n ...(payload.step && { step: payload.step }),\n // Include content_name if provided\n ...(payload.content_name && { content_name: payload.content_name }),\n };\n}\n\nfunction sendPixelAnalyticsEvent(payload: EventPayload) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.fbq == \"undefined\") {\n return;\n }\n\n let eventType = \"\";\n let eventName = \"\";\n let eventPayload: unknown = {};\n\n switch (payload.event) {\n case \"purchase\":\n eventType = \"track\";\n eventName = \"Purchase\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"lead\":\n eventType = \"track\";\n eventName = \"Lead\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"addToCart\":\n eventType = \"track\";\n eventName = \"Add to Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"customizeProduct\":\n eventType = \"track\";\n eventName = \"Customize Product\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"viewCart\":\n eventType = \"track\";\n eventName = \"View Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"removeFromCart\":\n eventType = \"track\";\n eventName = \"Remove from Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"initiateCheckout\":\n eventType = \"track\";\n eventName = \"Initiate Checkout\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n default:\n break;\n }\n\n if (window.location.search.includes(\"analytics\")) {\n console.log(\"Pushing FB event\", eventType, eventName, eventPayload);\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.fbq(eventType, eventName, eventPayload);\n}\n\nfunction sendTikTokAnalyticsEvent(payload: EventPayload) {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.ttq == \"undefined\") {\n return;\n }\n\n const tiktokEvent = mapToTikTokEvent(payload);\n\n if (!tiktokEvent) {\n return;\n }\n\n if (window.location.search.includes(\"analytics\")) {\n console.log(\n \"Pushing TikTok event\",\n tiktokEvent.eventName,\n tiktokEvent.eventPayload\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.ttq.track(tiktokEvent.eventName, tiktokEvent.eventPayload);\n } catch (e) {\n console.warn(\"cannot send tiktok analytics event\", e);\n }\n}\n\nfunction mapToTikTokEvent(payload: EventPayload) {\n // Calculate total value from items if not provided\n const totalValue =\n payload.value ??\n payload.items?.reduce(\n (sum, item) => sum + (item.price || 0) * (item.quantity || 1),\n 0\n ) ??\n 0;\n\n // Map items to TikTok contents format\n const contents =\n payload.items?.map((item) => ({\n content_id: item.id,\n content_type: \"product\",\n content_name: item.name || item.id,\n quantity: item.quantity || 1,\n price: round((item.price || 0) / 100, 2),\n })) || [];\n\n // If no items but we have content_name, create a single content entry\n if (contents.length === 0 && payload.content_name) {\n contents.push({\n content_id: payload.step || \"unknown\",\n content_type: \"product\",\n content_name: payload.content_name,\n quantity: 1,\n price: round(totalValue / 100, 2),\n });\n }\n\n // Build base event payload\n const eventPayload: Record<string, unknown> = {\n currency: payload.currency || \"PLN\",\n value: round(totalValue / 100, 2),\n };\n\n if (contents.length > 0) {\n eventPayload.contents = contents;\n }\n\n // Map event names to TikTok events\n let eventName: string | null = null;\n switch (payload.event) {\n case \"purchase\":\n eventName = \"Purchase\";\n break;\n case \"addToCart\":\n eventName = \"AddToCart\";\n break;\n case \"initiateCheckout\":\n eventName = \"InitiateCheckout\";\n break;\n case \"customizeProduct\":\n eventName = \"CustomizeProduct\";\n break;\n case \"viewCart\":\n return undefined;\n // // TikTok doesn't have a ViewCart event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n case \"removeFromCart\":\n return undefined;\n // // TikTok doesn't have a RemoveFromCart event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n case \"lead\":\n return undefined;\n // // TikTok doesn't have a standard Lead event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n default:\n return null;\n }\n\n return {\n eventName,\n eventPayload,\n };\n}\n","export function round(num: number, numberOfDecimals: number = 2): number {\n return Number(\n +(\n Math.round(Number(num + \"e+\" + numberOfDecimals)) +\n \"e-\" +\n numberOfDecimals\n )\n );\n}\n\nexport function formatCurrency(amount: number, currency: string): string {\n const formatter = Intl.NumberFormat(navigator.language, {\n style: \"currency\",\n currency: currency,\n currencyDisplay: \"symbol\",\n });\n\n return formatter.format(amount / 100);\n}\n\nexport function formatPriceWithoutCurrency(amount: number, currency: string) {\n let language = \"pl\";\n if (typeof navigator != \"undefined\") {\n language = navigator.language;\n }\n const result = new Intl.NumberFormat(language, {\n style: \"currency\",\n currency,\n currencyDisplay: \"code\",\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })\n .formatToParts(amount / 100)\n .filter((x) => x.type !== \"currency\")\n .filter((x) => x.type !== \"literal\" || x.value.trim().length !== 0)\n .map((x) => x.value)\n .join(\"\");\n\n const regex = new RegExp(`(\\\\.00)(?=\\\\D*$)`);\n return result.replace(regex, \"\");\n}\n","import { GetPreOrderDetailsResponse } from \"src/gen/proto/public/v1/public_api_pb\";\nimport { Checkout, GooglePayConfig } from \"./CartProvider\";\nimport { formatCurrency, round } from \"./lib/round.number\";\nimport { SingleProduct } from \"./product.details.model\";\n\nexport function mapGooglePayConfiguration(args: {\n items: {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [key: string]: string | undefined;\n };\n details?: SingleProduct;\n }[];\n googlePayConfig: GooglePayConfig;\n checkout: Checkout;\n result: GetPreOrderDetailsResponse;\n cartRequiresShipping: boolean;\n}): google.payments.api.PaymentDataRequest | undefined {\n const { items, googlePayConfig, checkout, result, cartRequiresShipping } =\n args;\n if (result.totalAmount == null) {\n return undefined;\n }\n let intents: google.payments.api.CallbackIntent[] = [];\n if (cartRequiresShipping) {\n intents.push(\"SHIPPING_ADDRESS\");\n intents.push(\"SHIPPING_OPTION\");\n }\n\n const returnValue: google.payments.api.PaymentDataRequest = {\n apiVersion: 2,\n apiVersionMinor: 0,\n callbackIntents: intents,\n allowedPaymentMethods: [\n {\n type: \"CARD\",\n parameters: {\n allowedAuthMethods: [\"PAN_ONLY\", \"CRYPTOGRAM_3DS\"],\n allowedCardNetworks: [\"MASTERCARD\", \"VISA\"],\n },\n tokenizationSpecification: {\n type: \"PAYMENT_GATEWAY\",\n parameters: {\n gateway: googlePayConfig.gateway,\n gatewayMerchantId: googlePayConfig.gatewayId,\n },\n },\n },\n ],\n emailRequired: true,\n shippingAddressParameters: {\n phoneNumberRequired: cartRequiresShipping,\n },\n shippingAddressRequired: cartRequiresShipping,\n shippingOptionRequired: cartRequiresShipping,\n shippingOptionParameters: cartRequiresShipping\n ? {\n shippingOptions: result.methods.slice(0, 5).map((method) => ({\n id: method.id,\n label:\n method.name +\n \" - \" +\n `${formatCurrency(method.amount, result.currency)}`,\n description: method.description ?? \"\",\n })),\n defaultSelectedOptionId: result.selectedDeliveryMethod,\n }\n : undefined,\n merchantInfo: {\n merchantId: googlePayConfig.merchantId + \"\",\n merchantName: googlePayConfig.merchantName,\n },\n transactionInfo: {\n totalPriceStatus: \"FINAL\",\n totalPriceLabel: \"Płatność za koszyk\",\n totalPrice: `${round(result.totalAmount / 100, 2)}`,\n currencyCode: result.currency,\n countryCode: result.country,\n checkoutOption: \"COMPLETE_IMMEDIATE_PURCHASE\",\n displayItems: mapGooglePayDisplayItems(\n items,\n result.methods,\n result.selectedDeliveryMethod ??\n (result.methods.length > 0 ? result.methods[0].id : undefined),\n checkout.couponCode,\n result.couponValue\n ),\n },\n };\n return returnValue;\n}\n\nfunction mapGooglePayDisplayItems(\n items: {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [key: string]: string | undefined;\n };\n details?: SingleProduct;\n }[],\n methods: GetPreOrderDetailsResponse[\"methods\"],\n deliveryMethod?: string,\n couponCode?: string,\n couponValue?: number\n): google.payments.api.DisplayItem[] {\n const displayItems: google.payments.api.DisplayItem[] = [];\n\n let subtotalAmount = 0;\n for (const item of items) {\n if (item.details == null) {\n continue;\n }\n subtotalAmount += item.details.price * item.quantity;\n displayItems.push({\n label: item.details.name + \" x \" + item.quantity,\n price: `${round(item.details.price / 100, 2)}`,\n type: \"LINE_ITEM\",\n status: \"FINAL\",\n });\n }\n\n const selectedDeliveryMethod = methods.find(\n (method) => method.id === deliveryMethod\n );\n if (selectedDeliveryMethod != null) {\n displayItems.push({\n label: selectedDeliveryMethod.name,\n price: `${round(selectedDeliveryMethod.amount / 100, 2)}`,\n type: \"SHIPPING_OPTION\",\n status: \"FINAL\",\n });\n }\n\n if (couponCode != null && couponValue != null) {\n displayItems.push({\n label: `Kupon ${couponCode}`,\n price: `${round(couponValue / 100, 2)}`,\n type: \"DISCOUNT\",\n status: \"FINAL\",\n });\n }\n if (subtotalAmount > 0) {\n displayItems.push({\n label: \"Subtotal\",\n price: `${round(subtotalAmount / 100, 2)}`,\n type: \"SUBTOTAL\",\n status: \"FINAL\",\n });\n }\n\n return displayItems;\n}\n","import { HOST } from \"./constants\";\n\nexport function buildURL(projectID: string, path: string): string {\n return `${HOST}/api/integrations/${projectID}/public-commerce${path}`;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport type Err = {\n ERR: true;\n error: unknown;\n type?: ErrTypes;\n data?: unknown;\n};\n\ntype ErrTypes = \"internal\" | \"badInput\" | \"notFound\";\n\nexport function isErr(x: unknown): x is Err {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return typeof x === \"object\" && x != null && \"ERR\" in x;\n}\n\nexport function Err(message: string, type?: ErrTypes, data?: unknown): Err {\n return { ERR: true, error: message, type: type, data: data };\n}\n\nexport async function tryFail<T>(\n f: (() => Promise<T>) | (() => T)\n): Promise<T | Err> {\n try {\n return await f();\n } catch (e) {\n return { ERR: true, error: e };\n }\n}\n\nexport function assertOk<T>(x: T | Err) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isErr(x)) throw Error((x.error as any).toString());\n}\n","import { create } from 'zustand';\n\ninterface CheckoutStore {\n isCartVisible: boolean;\n numberOfProductsInCart: number;\n showCart: () => void;\n hideCart: () => void;\n setNumberOfProductsInCart: (numberOfProductsInCart: number) => void;\n}\n\nexport const useCheckoutStore = create<CheckoutStore>((set) => ({\n isCartVisible: false,\n numberOfProductsInCart: 0,\n showCart: () => set((state) => ({ ...state, isCartVisible: true })),\n hideCart: () => set((state) => ({ ...state, isCartVisible: false })),\n setNumberOfProductsInCart: (numberOfProductsInCart: number) => set((state) => ({ ...state, numberOfProductsInCart: numberOfProductsInCart })),\n}))\n","import { getCheckoutMethods, getLocale, getProjectID } from \"./CartProvider\";\nimport { HOST } from \"./constants\";\nimport { buildURL } from \"./helper.methods\";\nimport { Err } from \"./lib/err\";\nimport { LinkRequest } from \"./link.request.schema\";\nimport { useCheckoutStore } from \"./state\";\n\nexport namespace Bitsnap {\n export async function addProductToCart(\n id: string,\n quantity: number = 1,\n metadata?: Record<string, string | undefined>,\n // Those fields are used to send the price and currency to the analytics\n args?: {\n name?: string;\n price?: number;\n currency?: string;\n },\n ) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n const methods = getCheckoutMethods(projectID);\n\n const err = await methods.addProduct({\n productID: id,\n quantity: quantity,\n metadata: metadata,\n ...args,\n });\n if (err != null) {\n return err;\n }\n\n return undefined;\n }\n\n export function showCart() {\n useCheckoutStore.setState({ isCartVisible: true });\n }\n\n export function hideCart() {\n useCheckoutStore.setState({ isCartVisible: false });\n }\n}\n\nexport async function createPaymentURL(request: LinkRequest) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n request = injectReferenceToRequestIfNeeded(request);\n request.locale ??= getLocale();\n\n const result = await fetch(buildURL(projectID, \"/buy\"), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(request),\n });\n\n if (result.status != 200) {\n if (result.headers.get(\"Content-Type\")?.includes(\"application/json\")) {\n try {\n const payload = await result.json();\n if (\"itemIds\" in payload && Array.isArray(payload.itemIds)) {\n const itemIds: string[] = payload.itemIds;\n return Err(\"item-ids-not-found\", \"badInput\", itemIds);\n }\n } catch (error) {}\n return Err(\"internal-error\", \"internal\");\n } else {\n console.warn(\n \"result\",\n await result.text(),\n result.status,\n result.statusText,\n );\n }\n return Err(\"internal-error\", \"internal\");\n }\n\n const response: { url: string; sessionID: string } = await result.json();\n\n return {\n url: response.url,\n };\n}\n\nexport async function createCheckout(\n request: LinkRequest & { apiKey?: string; testMode?: boolean },\n) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n const headers = {\n \"Content-Type\": \"application/json\",\n ...(request.apiKey != null\n ? { Authorization: `Bearer ${request.apiKey}` }\n : {}),\n };\n\n const path = request.testMode\n ? `/api/payment/link/auto/${projectID}/test`\n : `/api/payment/link/auto/${projectID}`;\n\n delete request.apiKey;\n delete request.testMode;\n request.locale ??= getLocale();\n\n const response = await fetch(HOST + path, {\n method: \"POST\",\n headers,\n body: JSON.stringify(request),\n });\n\n const payload: {\n url: string;\n } = await response.json();\n\n return {\n status: \"ok\",\n redirectURL: payload.url,\n };\n}\n\nexport function getReferenceIfPossible(): string | undefined {\n if (typeof localStorage == \"undefined\") {\n return undefined;\n }\n const refLink = localStorage.getItem(\"bitsnap-ref\");\n if (refLink == null) {\n return undefined;\n }\n return refLink;\n}\n\nexport function injectReferenceToRequestIfNeeded(\n request: LinkRequest,\n): LinkRequest {\n const ref = getReferenceIfPossible();\n if (ref == null) {\n return request;\n }\n\n if (request.metadata == null) {\n request.metadata = {};\n }\n request.metadata[\"ref\"] = ref;\n return request;\n}\n","export const DEFAULT_LOCALE = \"pl-PL\" as const;\nconst localeStorageKey = \"bitsnap-locale\";\n\nlet activeLocale: string | undefined;\n\nexport function setLocale(locale?: string): void {\n const value = locale?.trim();\n activeLocale = value\n ? value.toLowerCase() === \"en\"\n ? \"en-US\"\n : value.toLowerCase() === \"pl\"\n ? DEFAULT_LOCALE\n : value\n : undefined;\n if (typeof localStorage !== \"undefined\") {\n if (activeLocale == null) {\n localStorage.removeItem(localeStorageKey);\n } else {\n localStorage.setItem(localeStorageKey, activeLocale);\n }\n }\n}\n\nexport function getLocale(): string {\n if (activeLocale != null) {\n return activeLocale;\n }\n if (typeof localStorage !== \"undefined\") {\n return localStorage.getItem(localeStorageKey) ?? DEFAULT_LOCALE;\n }\n return DEFAULT_LOCALE;\n}\n\nexport function translate(key: string, locale: string = getLocale()): string {\n const english: Record<string, string> = {\n cart: \"Cart\",\n emptyCart: \"Your cart is empty.\",\n total: \"Total:\",\n delivery: \"+ delivery\",\n chooseCountry: \"Choose a country\",\n nextStep: \"Next step\",\n unavailableProducts: \"Not all products are available.\",\n };\n const polish: Record<string, string> = {\n cart: \"Koszyk\",\n emptyCart: \"Brak produktów w koszyku.\",\n total: \"Suma:\",\n delivery: \"+ dostawa\",\n chooseCountry: \"Wybierz kraj\",\n nextStep: \"Następny krok\",\n unavailableProducts: \"Nie wszystkie produkty są dostępne w magazynie.\",\n };\n return (locale.toLowerCase().startsWith(\"en\") ? english : polish)[key] ?? key;\n}\n","import { useEffect } from \"react\";\nimport zod from \"zod\";\nimport CartComponent from \"./CartComponent\";\nimport { getCheckoutMethods, getProjectID, setProjectID } from \"./CartProvider\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { isErr } from \"./lib/err\";\nimport { useCheckoutStore } from \"./state\";\nimport { setLocale } from \"./locale\";\n\nenum CartEvent {\n ADD_TO_CART = \"ADD_TO_CART\",\n}\n\nconst cartAddToCartSchema = zod.object({\n id: zod.string(),\n isSubscription: zod.boolean().default(false),\n quantity: zod.number(),\n metadata: zod.record(zod.string(), zod.string().optional()).optional(),\n});\n\ntype CartAddToCartEvent = zod.infer<typeof cartAddToCartSchema>;\n\nexport type BitsnapCartProps = {\n projectID: string;\n locale?: string;\n children?: React.ReactNode;\n onVisibleChange?: (isVisible: boolean) => void;\n className?: string;\n numberOfProductsInCartOptions?: {\n style?: React.CSSProperties;\n isVisible?: boolean;\n };\n};\n\nfunction BitsnapCart({\n projectID,\n locale,\n children,\n onVisibleChange,\n className,\n numberOfProductsInCartOptions,\n}: BitsnapCartProps) {\n const { isCartVisible, showCart, hideCart, numberOfProductsInCart } =\n useCheckoutStore();\n\n function sentPostMessageToIframe(msg: unknown) {\n const iframes = document.querySelectorAll(\"iframe\");\n\n iframes.forEach((iframe) => {\n iframe.contentWindow?.postMessage(msg, \"*\");\n });\n }\n\n useEffect(() => {\n onVisibleChange?.(isCartVisible);\n if (isCartVisible) {\n sendAnalyticEvent({\n event: \"viewCart\",\n });\n }\n }, [isCartVisible]);\n\n useEffect(() => {\n setProjectID(projectID);\n }, [projectID]);\n\n useEffect(() => {\n setLocale(locale);\n }, [locale]);\n\n useEffect(() => {\n if (!(\"cart\" in window)) {\n const projectID = getProjectID();\n if (projectID == null) {\n console.warn(\"There is no project ID configured.\");\n return;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n window[\"cart\"] = {\n buyProduct: async (args: unknown) => {\n try {\n const payload = zod\n .object({\n productID: zod.string(),\n email: zod.string().optional(),\n name: zod.string().optional(),\n country: zod.string().optional(),\n marketingAgreement: zod.boolean().optional(),\n })\n .parse(args);\n const methods = getCheckoutMethods(projectID);\n try {\n const products = await methods.getProducts();\n if (isErr(products) == false) {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: products.map((el) => ({\n id: el.productID,\n name: el.details?.name ?? \"\",\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n currency: el.details?.currency ?? \"PLN\",\n })),\n });\n }\n } catch (e) {}\n\n const result = await methods.justRedirectToPayment(payload);\n\n console.log(\"result\", result);\n if (isErr(result) == false) {\n window.location.href = result.url;\n } else {\n alert(\n \"Nie udało się przekierować do płatności. Spróbuj ponownie później.\",\n );\n }\n } catch (e) {\n console.warn(e);\n }\n },\n };\n }\n }, []);\n\n async function handleAddingToCart(id: string, payload?: unknown) {\n const projectID = getProjectID();\n if (projectID == null) {\n console.warn(\"There is no project ID configured.\");\n return;\n }\n\n try {\n const data = cartAddToCartSchema.parse(payload);\n\n if (data.isSubscription) {\n await handleAddingSubscriptionToCart(projectID, data);\n return;\n }\n\n const methods = getCheckoutMethods(projectID);\n\n await methods.addProduct({\n productID: data.id,\n quantity: data.quantity,\n metadata: data.metadata,\n });\n\n sentPostMessageToIframe({\n id: id,\n type: CartEvent.ADD_TO_CART,\n success: true,\n });\n showCart();\n } catch (e) {\n console.warn(\"cannot add item to cart\", e);\n }\n }\n\n async function handleAddingSubscriptionToCart(\n projectID: string,\n event: CartAddToCartEvent,\n ) {\n alert(\n `TODO, nie jest to jeszcze zrobione ${projectID} ${event.id} ${event.quantity}`,\n );\n }\n\n function setupEventListener() {\n if (\"__cart_is_listening\" in window) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n window[\"__cart_is_listening\"] = true;\n window.addEventListener(\"message\", (event) => {\n if (\n typeof event.data[\"id\"] != \"undefined\" &&\n typeof event.data[\"type\"] != \"undefined\"\n ) {\n const { id, type } = event.data;\n switch (type) {\n case CartEvent.ADD_TO_CART.toString():\n handleAddingToCart(id, event.data[\"payload\"]).then().catch();\n break;\n default:\n break;\n }\n }\n });\n }\n\n useEffect(() => {\n setupEventListener();\n\n if (typeof window !== \"undefined\") {\n try {\n const parsedParams = new URLSearchParams(window.location.search);\n const refLink =\n parsedParams.get(\"ref\") ?? parsedParams.get(\"utm-source\");\n if (\n typeof localStorage != \"undefined\" &&\n refLink &&\n refLink.length > 0\n ) {\n localStorage.setItem(\"bitsnap-ref\", refLink);\n }\n } catch (e) {\n return;\n }\n }\n }, []);\n\n return (\n <>\n <button\n onClick={() => (isCartVisible ? hideCart() : showCart())}\n style={{ position: \"relative\" }}\n className={[\n \"bitsnap-react\",\n className ?? \"rounded-full hover:bg-neutral-300 transition p-1\",\n ].join(\" \")}\n >\n {children ? (\n <>{children}</>\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-shopping-cart\"\n >\n <circle cx=\"8\" cy=\"21\" r=\"1\" />\n <circle cx=\"19\" cy=\"21\" r=\"1\" />\n <path d=\"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\" />\n </svg>\n )}\n {numberOfProductsInCartOptions?.isVisible != false &&\n numberOfProductsInCart > 0 && (\n <div\n style={{\n position: \"absolute\",\n bottom: -5,\n right: -5,\n background: \"black\",\n color: \"white\",\n borderRadius: \"50%\",\n width: \"22px\",\n height: \"22px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: \"13px\",\n fontWeight: 600,\n boxShadow: \"0 2px 8px rgba(0, 0, 0, 0.25)\",\n ...numberOfProductsInCartOptions?.style,\n }}\n >\n {numberOfProductsInCart}\n </div>\n )}\n </button>\n <CartComponent\n isVisible={isCartVisible}\n locale={locale}\n shouldHide={() => {\n hideCart();\n }}\n />\n </>\n );\n}\n\nexport default BitsnapCart;\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { createPortal } from \"react-dom\";\nimport CartComponentContent from \"./CartComponentContent\";\nimport CartProvider from \"./CartProvider\";\nimport { getLocale, translate } from \"./locale\";\n\ninterface Props {\n isVisible: boolean;\n shouldHide: () => void;\n locale?: string;\n}\n\nfunction CartComponent({ isVisible, shouldHide, locale }: Props) {\n const [parent] = useAutoAnimate(/* optional config */);\n\n return (\n <div\n ref={parent}\n className={\"bitsnap-react dark\"}\n style={{ zIndex: 999999 }}\n >\n {isVisible && (\n <>\n <div\n className={\n \"fixed top-0 right-0 left-0 bottom-0 bg-black/30 cursor-pointer z-10\"\n }\n onClick={shouldHide}\n ></div>\n <div\n className={\n \"fixed z-20 top-0 right-0 bottom-0 w-full md:w-[350px] xl:w-[420px] dark:bg-neutral-900 bg-neutral-300 dark:text-neutral-200 text-neutral-900 flex flex-col\"\n }\n >\n <div className={\"mx-3 mt-7 flex justify-between items-center\"}>\n <h1 className={\"text-2xl font-medium\"}>\n {translate(\"cart\", locale ?? getLocale())}\n </h1>\n <button\n className=\"rounded-xl dark:hover:bg-neutral-700 hover:bg-neutral-400 p-2 transition\"\n onClick={shouldHide}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n </button>\n </div>\n\n <CartComponentContent className={\"grow\"} locale={locale} />\n </div>\n </>\n )}\n </div>\n );\n}\n\nconst WrapperCartComponent = (props: Props) => {\n if (typeof window === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <CartProvider locale={props.locale}>\n <CartComponent {...props} />\n </CartProvider>,\n document.body,\n );\n};\n\nexport default WrapperCartComponent;\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport React from \"react\";\nimport { useCartProvider } from \"./CartProvider\";\nimport CountrySelector from \"./CountrySelector\";\nimport { isErr } from \"./lib/err\";\nimport { formatCurrency } from \"./lib/round.number\";\nimport LoadingIndicator from \"./LoadingIndicator\";\nimport SingleProduct from \"./SingleProduct\";\nimport { Skeleton } from \"./Skeleton\";\nimport { ApplePayButton, GooglePayButton } from \"..\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { useMutation, useQuery } from \"@tanstack/react-query\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { translate } from \"./locale\";\n\nconst CartComponentContent = ({\n className,\n locale,\n}: {\n className: string;\n locale?: string;\n}) => {\n const provider = useCartProvider();\n const currentLocale = locale;\n\n const { mutateAsync: removeProduct } = useMutation({\n mutationFn: provider.removeProductFromCart,\n });\n const { mutateAsync: updateQuantity } = useMutation({\n mutationFn: provider.updateQuantity,\n });\n const { mutateAsync: setCountryAsync } = useMutation({\n mutationFn: provider.setCountry,\n });\n const { mutateAsync: clearCart } = useMutation({\n mutationFn: provider.clearCart,\n });\n\n const [errMsg, setErrMsg] = React.useState(\"\");\n const [missingItemIds, setMissingItemIds] = React.useState<string[]>([]);\n\n const [isCountryOpen, setIsCountryOpen] = React.useState(false);\n\n const {\n mutateAsync: continueToCheckoutAsync,\n isPending: isContinueToCheckoutLoading,\n } = useMutation({\n mutationFn: provider.redirectToNextStep,\n });\n\n const { data: availableCountries } = useQuery({\n queryKey: [\"cart-available-countries\"],\n queryFn: provider.getAvailableCountries,\n });\n const { data: isApplePayAvailable } = useQuery({\n queryKey: [\"cart-one-click-payment\"],\n queryFn: provider.checkIfApplePayIsAvailable,\n });\n const { data, isLoading, refetch } = useQuery({\n queryKey: [\"cart\", currentLocale],\n queryFn: provider.getProducts,\n });\n const { data: countryData, refetch: refetchCountry } = useQuery({\n queryKey: [\"cart-country\"],\n queryFn: provider.getCountry,\n });\n\n const [productsParent] = useAutoAnimate(/* optional config */);\n\n const products = isErr(data) ? undefined : data;\n\n const countries = isErr(availableCountries) ? [] : availableCountries;\n\n const sumOfProducts =\n products?.reduce((prev, curr) => {\n if (curr.details == null) {\n return prev;\n }\n return prev + curr.details.price * curr.quantity;\n }, 0) ?? 0;\n const currency = products?.[0]?.details?.currency ?? \"PLN\";\n\n const isSomeProductDeliverable =\n products?.some((product) => product.details?.isDeliverable === true) ??\n false;\n\n const selectedCountry =\n countryData != null && !isErr(countryData) && countryData != \"\"\n ? countryData\n : undefined;\n\n async function shouldUpdate(id: string, newQuantity?: number) {\n if (newQuantity != null) {\n if (newQuantity <= 0) {\n await removeProduct({ id: id });\n await refetch();\n return;\n }\n\n await updateQuantity({\n id: id,\n quantity: newQuantity,\n });\n await refetch();\n return;\n }\n }\n\n async function continueToCheckout() {\n try {\n setErrMsg(\"\");\n\n if (products != null) {\n try {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: products?.map((el) => ({\n id: el.productID,\n name: el.details?.name ?? \"\",\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n currency: el.details?.currency ?? \"PLN\",\n })),\n });\n } catch (e) {}\n }\n\n const response = await continueToCheckoutAsync();\n\n if (isErr(response)) {\n if (response.error == \"item-ids-not-found\") {\n setErrMsg(translate(\"unavailableProducts\", currentLocale));\n if (\"data\" in response && Array.isArray(response.data)) {\n setMissingItemIds(response.data as string[]);\n }\n } else {\n setErrMsg(`${response.error}`);\n }\n return;\n }\n\n await clearCart();\n window.location.href = response.url;\n } catch (e: unknown) {\n setErrMsg(`${e}`);\n }\n }\n\n return (\n <div className={`${className} flex flex-col`} ref={productsParent}>\n {isLoading && (\n <div className={\"relative flex w-full justify-center flex-col gap-4\"}>\n <Skeleton className={\"w-full h-32\"} />\n <Skeleton className={\"w-full h-32\"} />\n </div>\n )}\n\n {!isLoading && (products == null || products.length == 0) && (\n <div className={\"flex flex-col gap-4 p-4\"}>\n <p className={\"dark:text-neutral-400 text-neutral-700\"}>\n {translate(\"emptyCart\", currentLocale)}\n </p>\n </div>\n )}\n\n <div className={\"max-h-[70vh] overflow-clip overflow-y-scroll\"}>\n {products != null && products.length > 0 && (\n <ul className={\"mt-5\"}>\n {products.map((product) => (\n <React.Fragment key={product.id}>\n {product.details != null && (\n <li className={\"mb-3\"}>\n <SingleProduct\n isNotAvailable={missingItemIds.includes(\n product.productID,\n )}\n quantity={product.quantity}\n details={product.details}\n shouldUpdate={(newQuantity) => {\n shouldUpdate(product.id, newQuantity).then().catch();\n }}\n />\n <hr className=\"h-1 dark:border-neutral-700 border-neutral-400\" />\n </li>\n )}\n </React.Fragment>\n ))}\n </ul>\n )}\n </div>\n\n <div className=\"grow\"></div>\n\n {sumOfProducts > 0 && currency != null && (\n <>\n <div className=\"mx-3 flex flex-col\">\n <div className={\"flex flex-row justify-between text-lg\"}>\n <p className={\"dark:text-neutral-200 text-neutral-800 text-xl\"}>\n {translate(\"total\", currentLocale)}\n </p>\n <div className={\"flex flex-col items-end\"}>\n <p\n className={\n \"dark:text-neutral-200 text-neutral-800 font-medium\"\n }\n >\n {formatCurrency(sumOfProducts, currency)}\n </p>\n {isSomeProductDeliverable && (\n <p className={\"opacity-70 text-right text-base\"}>\n {translate(\"delivery\", currentLocale)}\n </p>\n )}\n </div>\n </div>\n </div>\n\n {countries && countries?.length > 1 && (\n <div>\n <h4\n className={\n \"ml-3 text-sm dark:text-neutral-400 text-neutral-700\"\n }\n >\n {translate(\"chooseCountry\", currentLocale)}\n </h4>\n <CountrySelector\n id={Math.random().toString()}\n open={isCountryOpen}\n onToggle={() => {\n setIsCountryOpen(!isCountryOpen);\n }}\n onChange={(newValue) => {\n setCountryAsync(newValue).then(() => {\n refetchCountry().then().catch();\n });\n }}\n selectedValue={selectedCountry ?? \"\"}\n countries={countries}\n />\n </div>\n )}\n\n <div className={\"mb-3 flex flex-col\"}>\n {isApplePayAvailable && products != null && products.length > 0 && (\n <div className=\"w-full px-2\">\n <ApplePayButton\n colorType=\"white\"\n style={{ width: \"100%\" }}\n items={products?.map((el) => ({\n name: el.details?.name ?? \"\",\n id: el.productID,\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n isDeliverable: el.details?.isDeliverable ?? false,\n metadata: el.metadata,\n }))}\n />\n </div>\n )}\n {products != null && products.length > 0 && (\n <div className=\"w-full px-2\">\n <GooglePayButton\n buttonSizeMode=\"fill\"\n buttonColor=\"white\"\n style={{ width: \"100%\" }}\n items={products?.map((el) => ({\n name: el.details?.name ?? \"\",\n id: el.productID,\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n isDeliverable: el.details?.isDeliverable ?? false,\n metadata: el.metadata,\n }))}\n />\n </div>\n )}\n <button\n onClick={continueToCheckout}\n disabled={\n isLoading ||\n isContinueToCheckoutLoading ||\n selectedCountry == null\n }\n className={\n \"px-3 py-2 my-2 mx-2 rounded-md disabled:opacity-40 disabled:cursor-not-allowed dark:bg-neutral-300 dark:hover:bg-neutral-100 dark:text-neutral-800 hover:bg-neutral-900 text-neutral-200 bg-neutral-800 transition font-bold\"\n }\n >\n {isContinueToCheckoutLoading ? (\n <Spinner />\n ) : (\n translate(\"nextStep\", currentLocale)\n )}\n </button>\n {errMsg.length > 0 && (\n <p className={\"text-red-500 text-sm text-center\"}>{errMsg}</p>\n )}\n </div>\n </>\n )}\n </div>\n );\n};\n\nexport default CartComponentContent;\n","import { useEffect, useState } from \"react\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/src/ui/select\";\nimport { cn } from \"@/src/lib/utils\";\n\nexport interface CountrySelectorProps {\n id: string;\n open: boolean;\n disabled?: boolean;\n onToggle: () => void;\n onChange: (value: string) => void;\n selectedValue: string;\n countries: { name: string; code: string }[];\n}\n\nfunction CountrySelector({\n id,\n open,\n disabled = false,\n onToggle,\n onChange,\n selectedValue,\n countries,\n}: CountrySelectorProps) {\n const [query, setQuery] = useState(\"\");\n\n useEffect(() => {\n if (selectedValue == null && countries.length > 0) {\n onChange(countries[0].code);\n }\n }, []);\n\n const filteredCountries = countries.filter((country) =>\n country.name.toLowerCase().startsWith(query.toLowerCase())\n );\n\n const selectedCountry = countries.find((el) => el.code === selectedValue);\n\n return (\n <Select\n value={selectedValue}\n onValueChange={(value) => {\n onChange(value);\n setQuery(\"\");\n }}\n open={open}\n onOpenChange={(isOpen) => {\n if (isOpen !== open) {\n onToggle();\n }\n if (!isOpen) {\n setQuery(\"\");\n }\n }}\n disabled={disabled}\n >\n <SelectTrigger\n className={cn(\n disabled\n ? \"bg-neutral-100 dark:bg-neutral-800 dark:border-neutral-700\"\n : \"bg-extra-light-white dark:bg-neutral-900\",\n \"w-full rounded-md border-neutral-500\"\n )}\n >\n <SelectValue>\n {selectedCountry && (\n <span className=\"truncate flex items-center\">\n <img\n alt={selectedValue}\n src={`https://purecatamphetamine.github.io/country-flag-icons/3x2/${selectedValue}.svg`}\n className=\"inline mr-2 h-4 rounded-sm\"\n />\n {selectedCountry.name}\n </span>\n )}\n </SelectValue>\n </SelectTrigger>\n <SelectContent\n className=\"dark w-full max-h-80 max-w-[350px] dark:bg-neutral-800 bg-white z-[999999]\"\n position=\"popper\"\n >\n <div className=\"sticky top-0 z-10 bg-white dark:bg-neutral-800 p-1 border-b\">\n <input\n type=\"search\"\n name=\"search\"\n autoComplete=\"off\"\n className=\"block w-full outline-none sm:text-body-regular dark:text-neutral-400 text-dark-blue bg-transparent border-light-purple rounded-md placeholder:text-light-purple px-2 py-1.5\"\n placeholder=\"Znajdź kraj\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n />\n </div>\n <div className=\"max-h-64 overflow-y-auto\">\n {filteredCountries.length === 0 ? (\n <div className=\"text-light-purple cursor-default select-none relative py-2 pl-3 pr-9 text-sm\">\n No countries found\n </div>\n ) : (\n filteredCountries.map((country) => (\n <SelectItem\n key={`${id}-${country.code}`}\n value={country.code}\n className={cn(\n \"text-dark-blue cursor-default select-none relative py-2 pl-3 pr-9 flex items-center hover:bg-extra-light-white transition\",\n selectedValue === country.code\n ? \"bg-neutral-100 dark:bg-neutral-700\"\n : \"\"\n )}\n >\n <img\n alt={country.code}\n src={`https://purecatamphetamine.github.io/country-flag-icons/3x2/${country.code}.svg`}\n className=\"inline mr-2 h-4 rounded-sm\"\n />\n <span className=\"font-normal truncate\">{country.name}</span>\n </SelectItem>\n ))\n )}\n </div>\n </SelectContent>\n </Select>\n );\n}\n\nexport default CountrySelector;\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\"\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n align = \"center\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n align={align}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"text-muted-foreground px-2 py-1.5 text-xs\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"bg-border pointer-events-none -mx-1 my-1 h-px\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n}\n","import { useEffect, useState } from \"react\";\nimport { formatCurrency } from \"./lib/round.number\";\nimport type { SingleProduct } from \"./product.details.model\";\nimport { Button } from \"@/src/ui/button\";\nimport { MinusIcon, PlusIcon } from \"lucide-react\";\nimport { ButtonGroup } from \"@/src/ui/button-group\";\nimport { cn } from \"@/src/lib/utils\";\n\nconst SingleProduct = ({\n isNotAvailable,\n quantity,\n details,\n shouldUpdate,\n}: {\n isNotAvailable: boolean;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details: SingleProduct;\n shouldUpdate: (newQuantity?: number) => void;\n}) => {\n return (\n <div\n className={cn(\n \"flex items-center gap-3 mx-3\",\n isNotAvailable ? \"outline outline-1 rounded-md outline-red-600 m-1\" : \"\"\n )}\n >\n <img\n className={\n \"aspect-auto max-w-[30%] max-w-32 max-h-32 py-2 overflow-hidden\"\n }\n src={details.image_url ?? \"\"}\n alt={details.name}\n />\n\n <div className={\"flex flex-col w-full\"}>\n <p className={\"font-medium\"}>{details.name}</p>\n <p className={\"text-sm\"} suppressHydrationWarning>\n {formatCurrency(details.price, details.currency)}\n </p>\n <div className={\"flex justify-between\"}>\n <QuantityComponent\n className={\"\"}\n quantity={quantity}\n shouldUpdate={shouldUpdate}\n />\n <Button variant=\"ghost\" size=\"sm\" onClick={() => shouldUpdate(0)}>\n Usuń\n </Button>\n </div>\n </div>\n </div>\n );\n};\n\nexport default SingleProduct;\n\nconst QuantityComponent = ({\n quantity,\n shouldUpdate,\n className,\n}: {\n quantity: number;\n shouldUpdate: (newQuantity: number) => void;\n className: string;\n}) => {\n const [quantityString, setQuantityString] = useState(quantity.toString());\n const [quantityValue, setQuantityValue] = useState(quantity);\n\n useEffect(() => {\n shouldUpdate(quantityValue);\n }, [quantityValue]);\n\n function setNewQuantity(newQuantity: string) {\n setQuantityString(newQuantity);\n if (newQuantity.length == 0) {\n return;\n }\n const parsedInt = parseInt(newQuantity);\n if (isNaN(parsedInt)) {\n setQuantityValue(1);\n setQuantityString(\"\");\n return;\n }\n if (parsedInt == 0 || parsedInt < 0) {\n setQuantityValue(1);\n setQuantityString(\"1\");\n return;\n }\n setQuantityValue(parsedInt);\n setQuantityString(parsedInt.toString());\n }\n\n function increaseQuantity() {\n setQuantityValue(quantity + 1);\n setQuantityString((quantity + 1).toString());\n }\n\n function decreaseQuantity() {\n if (quantity > 1) {\n setQuantityString((quantity - 1).toString());\n setQuantityValue(quantity - 1);\n return;\n }\n setQuantityString(quantity.toString());\n setQuantityValue(quantity);\n }\n\n return (\n <div className={`flex ${className}`}>\n <ButtonGroup aria-label=\"Ilość\">\n <Button onClick={decreaseQuantity}>\n <MinusIcon />\n </Button>\n <input\n className={\"w-8 bg-transparent text-center\"}\n value={quantityString}\n onInput={(e) => {\n setNewQuantity(e.currentTarget.value);\n }}\n type=\"text\"\n />\n <Button onClick={increaseQuantity}>\n <PlusIcon />\n </Button>\n </ButtonGroup>\n </div>\n );\n};\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/lib/utils\";\nimport { Separator } from \"@/src/ui/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n);\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot : \"div\";\n\n return (\n <Comp\n className={cn(\n \"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n};\n","function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={\"bg-neutral-700 animate-pulse rounded-md\" + ' ' + className}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n","import { Loader2Icon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Spinner({ className, ...props }: React.ComponentProps<\"svg\">) {\n return (\n <Loader2Icon\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\"size-4 animate-spin\", className)}\n {...props}\n />\n )\n}\n\nexport { Spinner }\n","import GooglePayButton from \"@google-pay/button-react\";\nimport CartProvider, { getProjectID, useCartProvider } from \"./CartProvider\";\nimport { isErr } from \"./lib/err\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\n\nexport type Props = {\n test?: boolean;\n buttonSizeMode?: \"static\" | \"fill\";\n buttonColor?: \"white\" | \"black\";\n style?: {\n width?: string;\n };\n items: {\n name: string;\n id: string;\n price: number;\n quantity: number;\n isDeliverable?: boolean;\n metadata?: { [key: string]: string | undefined };\n }[];\n};\n\nfunction GooglePayButtonComponent({\n items,\n style,\n buttonColor,\n buttonSizeMode,\n test,\n}: Props) {\n const {\n getGooglePayConfiguration,\n completeGooglePayPayment,\n setCountry,\n setCouponCodeIfPossible,\n setDeliveryMethod,\n setEmail,\n setPostalCode,\n clearCart,\n } = useCartProvider();\n\n const { data: googlePayConfiguration } = useQuery({\n queryKey: [\n \"get-google-pay-configuration\",\n items.map((el) => el.id).join(\",\"),\n ],\n queryFn: () =>\n getGooglePayConfiguration({\n items: items.map((el) => ({\n ...el,\n id: undefined,\n productID: el.id,\n })),\n }),\n });\n\n const { mutateAsync: completeGooglePayPaymentAsync, isPending } = useMutation(\n {\n mutationFn: completeGooglePayPayment,\n }\n );\n if (\n googlePayConfiguration == null ||\n googlePayConfiguration.isAvailable != true\n ) {\n console.log(\n \"google pay configuration is not available\",\n googlePayConfiguration\n );\n return null;\n }\n\n return (\n <>\n <GooglePayButton\n buttonSizeMode={buttonSizeMode}\n buttonColor={buttonColor}\n style={style}\n existingPaymentMethodRequired={true}\n environment={test === true ? \"TEST\" : \"PRODUCTION\"}\n onPaymentDataChanged={async (paymentData) => {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: items.map((el) => ({\n id: el.id,\n name: el.name,\n price: el.price,\n quantity: el.quantity,\n currency: \"PLN\",\n })),\n });\n console.log(\"payment data changed\", paymentData);\n if (paymentData.shippingAddress?.postalCode != null) {\n await setPostalCode(paymentData.shippingAddress?.postalCode);\n }\n if (paymentData.shippingAddress?.countryCode != null) {\n await setCountry(paymentData.shippingAddress?.countryCode);\n }\n if (paymentData.shippingOptionData?.id != null) {\n await setDeliveryMethod(paymentData.shippingOptionData.id);\n }\n\n const config = await getGooglePayConfiguration({ items: [] });\n console.log(\"PAYMENT DATA CHANGED CONFIG\", config);\n if (config.isAvailable) {\n return {\n error: undefined,\n newShippingOptionParameters:\n config.config.shippingOptionParameters,\n newTransactionInfo: config.config.transactionInfo,\n };\n }\n\n return {\n error: undefined,\n };\n }}\n paymentRequest={googlePayConfiguration.config}\n onLoadPaymentData={async (paymentRequest) => {\n try {\n const result = await completeGooglePayPaymentAsync({\n paymentData: paymentRequest,\n });\n if (isErr(result)) {\n console.log(\"apple pay error\", result);\n return;\n }\n\n result.isSuccess && clearCart();\n if (result.redirectURL) {\n open(result.redirectURL, \"_self\");\n }\n } catch (e) {\n console.warn(\"error completing google pay payment\", e);\n }\n }}\n />\n {isPending ? <Spinner /> : null}\n </>\n );\n}\n\nfunction Wrapper(props: Props) {\n return (\n <>\n <CartProvider>\n <GooglePayButtonComponent {...props} />\n </CartProvider>\n </>\n );\n}\nexport default Wrapper;\n","import { useReducer, useRef, useEffect, useState } from \"react\";\nimport { cn } from \"@/src/lib/utils\";\nimport {\n rpcProvider,\n RpcProvider,\n useMutation,\n useQuery,\n} from \"src/rpc-provider\";\nimport { useQuery as UQ, useQueryClient } from \"@tanstack/react-query\";\nimport { Settings, X } from \"lucide-react\";\nimport type {\n NotificationsComponentPublicProps,\n NotificationGroup,\n CustomizationTexts,\n ComponentClassNames,\n PublicNotificationGroup,\n} from \"./types\";\nexport type {\n NotificationGroup,\n CustomizationTexts,\n ComponentClassNames,\n} from \"./types\";\nexport type Props = NotificationsComponentPublicProps;\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { NotificationHeader } from \"./NotificationHeader\";\nimport { NotificationGroupsList } from \"./NotificationGroupsList\";\nimport { QRCodeSection } from \"./QRCodeSection\";\nimport { AddUserToGroups } from \"./AddUserToGroups\";\nimport { ManageMyData } from \"./ManageMyData\";\nimport { LoginScreen } from \"./LoginScreen\";\nimport { Button } from \"@/src/ui/button\";\nimport { getProjectID } from \"../checkout/CartProvider\";\nimport { NotificationGroupHowOften } from \"@/src/gen/proto/common/v1/push_notifications_pb\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Spinner } from \"@/src/ui/spinner\";\n\ninterface State {\n isLoading: boolean;\n isUserGroupsUpdated: boolean;\n wasChanged: boolean;\n groupsProvided?: PublicNotificationGroup[];\n groups: NotificationGroup[];\n showSettings: boolean;\n isLoggedIn: boolean;\n userID: string | undefined;\n}\n\ntype Action =\n | { type: \"SET_IS_LOGGED_IN\"; value: boolean }\n | { type: \"SET_USER_ID\"; value: string | undefined }\n | { type: \"SET_LOADING\"; value: boolean }\n | { type: \"TOGGLE_GROUP\"; groupID: string }\n | { type: \"CHECK_ALL_GROUPS\" }\n | { type: \"SET_WAS_CHANGED\"; value: boolean }\n | { type: \"SET_IS_USER_GROUPS_UPDATED\"; value: boolean }\n | { type: \"RESET_UPDATE_STATE\" }\n | { type: \"SHOW_SETTINGS\" }\n | { type: \"SET_GROUPS\"; value: NotificationGroup[] }\n | { type: \"SET_PUBLIC_GROUPS\"; value?: PublicNotificationGroup[] }\n | { type: \"HIDE_SETTINGS\" };\n\nfunction reducer(state: State, action: Action): State {\n switch (action.type) {\n case \"SET_IS_LOGGED_IN\": {\n return {\n ...state,\n isLoggedIn: action.value,\n };\n }\n case \"SET_USER_ID\": {\n return {\n ...state,\n userID: action.value,\n };\n }\n case \"SET_LOADING\": {\n return {\n ...state,\n isLoading: action.value,\n };\n }\n case \"SET_PUBLIC_GROUPS\": {\n return {\n ...state,\n groupsProvided: action.value,\n groups:\n action.value != null && action.value.length > 0\n ? state.groups.filter(\n (group) => action.value?.find((g) => g.id === group.id) != null,\n )\n : state.groups,\n };\n }\n case \"SET_GROUPS\": {\n const isDefaultOn =\n state.isLoggedIn == false || state.groupsProvided != null;\n const newGroupsWithIsOn = action.value.map((group) => {\n if (state.isLoggedIn == true) {\n return group;\n }\n return {\n ...group,\n isOn:\n state.groupsProvided?.find((g) => g.id === group.id)?.isOn ??\n isDefaultOn,\n };\n });\n\n return {\n ...state,\n groups: newGroupsWithIsOn,\n };\n }\n case \"TOGGLE_GROUP\": {\n const updatedGroups = state.groups.map((group) => {\n if (group.id === action.groupID) {\n return {\n ...group,\n isOn: !group.isOn,\n };\n }\n return group;\n });\n return {\n ...state,\n wasChanged: true,\n groups: updatedGroups,\n };\n }\n case \"CHECK_ALL_GROUPS\": {\n const updated = state.groups.map((group) => {\n return {\n ...group,\n isOn: true,\n };\n });\n return {\n ...state,\n groups: updated,\n wasChanged: true,\n };\n }\n case \"SET_WAS_CHANGED\":\n return {\n ...state,\n wasChanged: action.value,\n };\n case \"SET_IS_USER_GROUPS_UPDATED\":\n return {\n ...state,\n isUserGroupsUpdated: action.value,\n };\n case \"RESET_UPDATE_STATE\":\n return {\n ...state,\n wasChanged: false,\n isUserGroupsUpdated: true,\n };\n case \"SHOW_SETTINGS\":\n return {\n ...state,\n showSettings: true,\n };\n case \"HIDE_SETTINGS\":\n return {\n ...state,\n showSettings: false,\n };\n default:\n return state;\n }\n}\n\nfunction NotificationsComponentPublic({\n slug: slugProp,\n userID,\n productID: _productID,\n projectName,\n projectLogo,\n projectLogoDark,\n groups,\n isManaging = false,\n texts,\n showQRCode = false,\n showPhoneInput = false,\n hiddenGroupIds = [],\n className,\n}: NotificationsComponentPublicProps) {\n const [parent] = useAutoAnimate();\n let slug =\n slugProp ??\n getProjectID() ??\n (typeof window !== \"undefined\" ? window.location.hostname : \"\");\n\n const { mutateAsync: updateUserGroups, isPending: isUpdating } = useMutation(\n rpcProvider.notifications.updateUserGroups,\n );\n\n const { data: userInfo, refetch: refetchAccessToken } = UQ({\n queryKey: [\"notifications_accessToken\"],\n queryFn: () => {\n if (typeof window !== \"undefined\") {\n return {\n accessToken:\n localStorage.getItem(\"notifications_accessToken\") ?? undefined,\n userID: localStorage.getItem(\"notifications_userID\") ?? undefined,\n };\n }\n return undefined;\n },\n });\n\n const {\n data: groupsDownloaded,\n isPending: isGroupsDownloading,\n refetch: refetchGroups,\n } = useQuery(rpcProvider.notifications.getUserGroups, {\n slug: slug,\n accessToken: userInfo?.accessToken,\n });\n\n const [state, dispatch] = useReducer(reducer, {\n isLoading: isGroupsDownloading,\n isUserGroupsUpdated: false,\n wasChanged: false,\n groupsProvided: groups,\n groups: [],\n showSettings: userInfo != null && isManaging == true,\n isLoggedIn: userInfo != null,\n userID: undefined,\n });\n\n useEffect(() => {\n dispatch({ type: \"SET_LOADING\", value: isUpdating || isGroupsDownloading });\n }, [isUpdating, isGroupsDownloading]);\n\n useEffect(() => {\n dispatch({\n type: \"SET_IS_LOGGED_IN\",\n value: userInfo?.accessToken != null,\n });\n dispatch({ type: \"SET_USER_ID\", value: userInfo?.userID });\n if (userInfo?.accessToken != null && isManaging == true) {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n }, [userInfo, isManaging]);\n\n useEffect(() => {\n if (groupsDownloaded == null) {\n return;\n }\n let newGroups = groupsDownloaded.groups.map((group) => {\n let howOften = \"rarely\";\n switch (group.howOften) {\n case NotificationGroupHowOften.RARELY:\n howOften = \"rarely\";\n break;\n case NotificationGroupHowOften.OFTEN:\n howOften = \"often\";\n break;\n case NotificationGroupHowOften.VERY_OFTEN:\n howOften = \"veryOften\";\n break;\n }\n return {\n id: group.id,\n name: group.name,\n description: group.description,\n howOften: howOften,\n isOn: group.isOn ?? undefined,\n };\n });\n dispatch({ type: \"SET_GROUPS\", value: newGroups });\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [groupsDownloaded, isGroupsDownloading, groups]);\n\n const timeoutRef = useRef<NodeJS.Timeout | null>(null);\n\n useEffect(() => {\n let preparedGroups = groups?.map((el) => {\n if (el.id.startsWith(\"group_\")) {\n return el;\n }\n el.id = `group_${el.id}`;\n return el;\n });\n\n dispatch({ type: \"SET_PUBLIC_GROUPS\", value: preparedGroups });\n }, [groups]);\n\n const mergedTexts = { ...DEFAULT_TEXTS, ...texts };\n\n async function updateGroups() {\n await updateUserGroups({\n accessToken: userInfo?.accessToken,\n slug: slug,\n userId: userID,\n groupIds: state.groups\n .filter((el) => el.isOn === true)\n .map((el) => el.id),\n });\n dispatch({ type: \"RESET_UPDATE_STATE\" });\n\n // Clear existing timeout if any\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Set timeout to reset isUserGroupsUpdated after 2 seconds\n timeoutRef.current = setTimeout(() => {\n dispatch({ type: \"SET_IS_USER_GROUPS_UPDATED\", value: false });\n }, 2000);\n }\n\n function toggleGroup(groupID: string) {\n dispatch({ type: \"TOGGLE_GROUP\", groupID });\n }\n\n function checkAllGroups() {\n dispatch({ type: \"CHECK_ALL_GROUPS\" });\n }\n\n function handleSettingsClick() {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n\n function handleCloseSettings() {\n dispatch({ type: \"HIDE_SETTINGS\" });\n }\n\n function handleLogout() {\n localStorage.removeItem(\"notifications_accessToken\");\n localStorage.removeItem(\"notifications_userID\");\n refetchAccessToken();\n dispatch({ type: \"SET_USER_ID\", value: undefined });\n dispatch({ type: \"SET_IS_LOGGED_IN\", value: false });\n dispatch({ type: \"HIDE_SETTINGS\" });\n }\n\n async function handleLoginSuccess(\n userID: string | undefined,\n accessToken: string,\n ) {\n if (typeof window !== \"undefined\") {\n localStorage.setItem(\"notifications_accessToken\", accessToken);\n if (userID != null) {\n localStorage.setItem(\"notifications_userID\", userID);\n }\n }\n dispatch({ type: \"SET_USER_ID\", value: userID });\n try {\n await refetchAccessToken();\n refetchGroups()\n .then()\n .catch()\n .finally(() => {\n if (isManaging == true) {\n // Automatically switch to managing view\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n });\n } catch (e) {\n console.log(`Error: ${e}`);\n }\n }\n\n // Cleanup timeout on unmount\n useEffect(() => {\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const isManagingEnabled =\n isManaging == true && state.userID != null && userInfo?.accessToken != null;\n\n return (\n <main className={cn(\"bitsnap-react relative\", className?.container)}>\n {mergedTexts.title != null && (\n <h1 className=\"text-2xl font-semibold text-black md:text-3xl lg:text-4xl xl:text-5xl dark:text-neutral-100\">\n {mergedTexts.title}\n </h1>\n )}\n\n {/* Floating Settings Icon */}\n {!state.showSettings && isManaging && (\n <Button\n onClick={handleSettingsClick}\n variant=\"outline\"\n size=\"icon\"\n className=\"absolute bottom-6 right-6 z-50 h-12 w-12 rounded-full shadow-lg hover:shadow-xl md:bottom-8 md:right-8\"\n aria-label=\"Settings\"\n >\n <Settings className=\"h-5 w-5\" />\n </Button>\n )}\n\n <div\n className={cn(\n \"md:pt8 relative z-0 mt-6 overflow-hidden rounded-2xl bg-white px-3 pt-6 pb-3 md:px-5 md:pb-5 dark:bg-neutral-800\",\n className?.header,\n )}\n >\n {state.showSettings ? (\n // Settings View\n <div className=\"space-y-6\">\n {state.isLoggedIn && (\n // Managing Groups View (logged in)\n <div\n className={cn(\n \"grid grid-cols-1 gap-3 lg:gap-6\",\n isManagingEnabled ? \"md:grid-cols-2\" : \"\",\n )}\n >\n <div className={className?.groupsContainer}>\n <NotificationHeader\n projectName={projectName}\n projectLogo={projectLogo}\n projectLogoDark={projectLogoDark}\n description={mergedTexts.managingDescription}\n className={className}\n onLogout={handleLogout}\n />\n {isGroupsDownloading && (\n <div className=\"flex justify-center items-center py-8\">\n <Spinner />\n </div>\n )}\n\n <NotificationGroupsList\n groups={state.groups}\n hiddenGroupIds={hiddenGroupIds}\n isManaging={isManaging}\n onToggle={toggleGroup}\n onCheckAll={checkAllGroups}\n onUpdate={updateGroups}\n isUpdating={isUpdating}\n wasChanged={state.wasChanged}\n isUserGroupsUpdated={state.isUserGroupsUpdated}\n className={className}\n texts={mergedTexts}\n />\n </div>\n {isManagingEnabled && (\n <ManageMyData\n accessToken={userInfo.accessToken ?? \"\"}\n slug={slug}\n userID={state.userID ?? \"\"}\n className={className}\n texts={mergedTexts}\n />\n )}\n\n {showQRCode != false && (\n <QRCodeSection\n showQRCode={showQRCode}\n isManaging={true}\n className={className}\n texts={mergedTexts}\n />\n )}\n </div>\n )}\n </div>\n ) : (\n // Default View (Form only)\n <div className={cn(\"grid grid-cols-1 gap-3 lg:gap-6\")}>\n <AddUserToGroups\n slug={slug}\n onToggle={(id) => {\n dispatch({ type: \"TOGGLE_GROUP\", groupID: id });\n }}\n onCheckAll={() => {\n dispatch({ type: \"CHECK_ALL_GROUPS\" });\n }}\n onSuccess={(userAlreadyExists, userID, accessToken) => {\n if (accessToken != null) {\n handleLoginSuccess(userID, accessToken);\n }\n if (userAlreadyExists) {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n }}\n groups={state.groups}\n showPhoneInput={showPhoneInput}\n agreementText={mergedTexts.agreementText}\n className={className}\n texts={mergedTexts}\n wasChanged={state.wasChanged}\n isUpdating={isUpdating}\n />\n </div>\n )}\n </div>\n <LoginScreen\n isOpen={state.showSettings && !state.isLoggedIn}\n slug={slug}\n onSuccess={handleLoginSuccess}\n texts={mergedTexts}\n onClose={handleCloseSettings}\n />\n </main>\n );\n}\n\nfunction Wrapper({\n slug,\n userID,\n productID,\n projectName,\n projectLogo,\n projectLogoDark,\n groups,\n isManaging,\n texts,\n showQRCode,\n showPhoneInput,\n hiddenGroupIds,\n className,\n}: Props) {\n return (\n <RpcProvider>\n <NotificationsComponentPublic\n slug={slug}\n userID={userID}\n productID={productID}\n projectName={projectName}\n projectLogo={projectLogo}\n projectLogoDark={projectLogoDark}\n groups={groups}\n isManaging={isManaging}\n texts={texts}\n showQRCode={showQRCode}\n showPhoneInput={showPhoneInput}\n hiddenGroupIds={hiddenGroupIds}\n className={className}\n />\n </RpcProvider>\n );\n}\nexport default Wrapper;\n","import type { CustomizationTexts } from \"./types\";\n\nexport const DEFAULT_TEXTS: Required<CustomizationTexts> = {\n title: null,\n description: null,\n managingDescription:\n \"Zarządzaj rodzajami powiadomień i sposobem dostarczania.\",\n formTitle: \"Podaj Email aby zapisać się do powiadomień\",\n formEmailLabel: \"Email\",\n formPhoneLabel: \"Numer telefonu\",\n formPhoneOptional: \"(opcjonalnie)\",\n formEmailPlaceholder: \"np. mail@gmail...\",\n formPhonePlaceholder: \"np. 663...\",\n formSubmitButton: \"Zapisz się\",\n formSuccessMessage: \"Zapisałeś się do powiadomień.\",\n agreementText: (\n <>\n <span style={{ color: \"red\" }}>*</span>\n Wyrażam zgodę na przetwarzanie moich danych w celach marketingowych\n zgodnie z{\" \"}\n <a\n href=\"/regulations/polityka-prywatnosci\"\n target=\"_blank\"\n className=\"cursor-alias font-bold hover:font-medium\"\n >\n regulaminem\n </a>{\" \"}\n <span className=\"text-xs font-light\">\n (zgodę można w każdej chwili wycofać)\n </span>\n </>\n ),\n qrCodeTitle: \"lub zainstaluj aplikację mobilną\",\n qrCodeSubtitle: \"Aplikacja mobilna\",\n qrCodeScanText: \"zeskanuj kod QR\",\n groupsNoSelectionWarning:\n \"Jeśli żadna z grup nie jest zaznaczona, nie otrzymasz żadnych powiadomień.\",\n groupsSelectAllButton: \"Zaznacz wszystkie\",\n groupsUpdateButton: \"Aktualizuj\",\n groupsUpdateSuccess: \"Zaktualizowano pomyślnie.\",\n groupsTitle: \"Zarządzaj grupami z których chcesz otrzymywać powiadomienia\",\n manageDataTitle: \"Ustawienia powiadomień\",\n manageDataDescription: \"W jaki sposób chcesz otrzymywać powiadomienia?\",\n manageDataUnsubscribeButton: \"Odsubskrybuj\",\n manageDataUpdatedMessage: \"Zaktualizowano\",\n manageDataUnsubscribeDescription:\n \"Wypisz mnie z wszystkich powiadomień i grup.\",\n loginEmailLabel: \"Email\",\n loginEmailPlaceholder: \"Wprowadź swój email\",\n loginSendCodeButton: \"Wyślij kod weryfikacyjny\",\n loginSendingButton: \"Wysyłanie...\",\n loginCodeLabel: \"Wprowadź kod weryfikacyjny\",\n loginCodeSentMessage: \"Wysłaliśmy kod weryfikacyjny na adres\",\n loginChangeEmailButton: \"Popraw email\",\n loginResendCodeButton: \"Wyślij kod ponownie\",\n loginInvalidEmailError: \"Wprowadź prawidłowy adres email\",\n loginSlugRequiredError: \"Wymagany jest identyfikator projektu\",\n loginInvalidCodeError: \"Nieprawidłowy kod weryfikacyjny\",\n loginVerificationFailedError:\n \"Weryfikacja nie powiodła się. Sprawdź swój kod.\",\n loginSendEmailError: \"Nie udało się wysłać kodu weryfikacyjnego\",\n loginVerifyCodeError: \"Nie udało się zweryfikować kodu\",\n loginResendEmailError: \"Nie udało się ponownie wysłać kodu weryfikacyjnego\",\n loginTitle: \"Wpisz email aby zarządzać powiadomieniami\",\n loginDescription: \"Dostaniesz kod weryfikacyjny na email.\",\n loginIHaveCode: \"Mam już kod\",\n};\n","import { cn } from \"@/src/lib/utils\";\nimport type { ComponentClassNames } from \"./types\";\nimport { Button } from \"@/src/ui/button\";\nimport { LogOutIcon } from \"lucide-react\";\n\ninterface NotificationHeaderProps {\n projectName?: string;\n projectLogo?: string;\n projectLogoDark?: string;\n description: string | null;\n className?: ComponentClassNames;\n onLogout?: () => void;\n}\n\nexport function NotificationHeader({\n projectName,\n projectLogo,\n projectLogoDark,\n description,\n className,\n onLogout,\n}: NotificationHeaderProps) {\n return (\n <>\n {projectLogo != null ||\n (projectName != null && (\n <h2\n className={cn(\n \"flex max-w-44 items-center gap-3 text-lg font-medium text-black sm:max-w-none md:text-xl lg:text-2xl xl:text-3xl dark:text-neutral-100\",\n className?.headerTitle\n )}\n >\n {projectLogo != null && (\n <>\n <img\n src={projectLogo}\n alt=\"\"\n className={cn(\n \"h-12 w-auto dark:hidden\",\n className?.headerLogo\n )}\n />\n <img\n src={projectLogoDark ?? projectLogo}\n alt=\"\"\n className={cn(\n \"hidden h-12 w-auto dark:inline\",\n className?.headerLogo\n )}\n />\n </>\n )}\n <span>{projectName}</span>\n </h2>\n ))}\n <div className=\"flex items-center gap-2\">\n {description && (\n <p\n className={cn(\n \"mt-4 font-medium text-left\",\n className?.headerDescription\n )}\n >\n {description}\n </p>\n )}\n <div className=\"grow\"></div>\n {onLogout && (\n <Button variant=\"ghost\" size=\"icon-sm\" onClick={onLogout}>\n <LogOutIcon className=\"h-5 w-5\" />\n </Button>\n )}\n </div>\n </>\n );\n}\n","import { Switch } from \"@/src/ui/switch\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { CheckCircleIcon, TriangleAlertIcon } from \"lucide-react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type {\n NotificationGroup,\n ComponentClassNames,\n CustomizationTexts,\n} from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { HowOftenComponent } from \"./HowOftenComponent\";\nimport { rpcProvider, useQuery } from \"@/src/rpc-provider\";\nimport { NotificationGroupHowOften } from \"@/src/gen/proto/common/v1/push_notifications_pb\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\n\ninterface NotificationGroupsListProps {\n groups: NotificationGroup[];\n hiddenGroupIds?: string[];\n isManaging?: boolean;\n onToggle: (groupID: string) => void;\n onCheckAll: () => void;\n onUpdate?: () => void;\n isUpdating?: boolean;\n wasChanged?: boolean;\n isUserGroupsUpdated?: boolean;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function NotificationGroupsList({\n groups = [],\n isManaging,\n onToggle,\n onCheckAll,\n onUpdate,\n isUpdating,\n wasChanged,\n isUserGroupsUpdated,\n className,\n texts,\n}: NotificationGroupsListProps) {\n const [groupsParent] = useAutoAnimate();\n const [updateGroupsParent] = useAutoAnimate();\n\n const hasNoSelection =\n groups.filter((group) => group.isOn === false).length > 0;\n const hasUnchecked =\n groups.filter((group) => group.isOn === false).length > 0;\n\n if (groups.length <= 1 && isManaging != true) {\n return null;\n }\n\n const content = (\n <div\n ref={groupsParent}\n className={cn(\"my-5 flex flex-col gap-3\", className?.groupsList)}\n >\n {groups.map((group) => (\n <div\n id={group.id}\n role=\"button\"\n key={group.id}\n className={cn(\n group.isOn\n ? \"bg-neutral-50 hover:bg-transparent shadow-sm border-transparent dark:bg-neutral-800\"\n : \"border-neutral-200 hover:bg-neutral-50 dark:hover:border-neutral-800 shadow-sm dark:border-neutral-800\",\n \"active:bg-beige-300 flex w-full cursor-pointer items-center gap-3 rounded-xl border px-3 py-2 transition active:dark:bg-neutral-900\",\n className?.groupItem\n )}\n onClick={(e) => {\n if (e.target instanceof HTMLButtonElement) {\n return;\n }\n onToggle(group.id);\n }}\n >\n <Switch\n checked={group.isOn}\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-700\"\n onCheckedChange={() => {\n onToggle(group.id);\n }}\n />\n <div className=\"flex flex-col items-start justify-start\">\n <p className=\"font-medium text-sm\">{group.name}</p>\n {group.description && (\n <p className=\"text-xs font-light\">{group.description}</p>\n )}\n </div>\n <div className=\"grow\"></div>\n {group.howOften && <HowOftenComponent regularity={group.howOften} />}\n </div>\n ))}\n <div className=\"flex gap-2\">\n {isManaging === true && (\n <>\n <div\n ref={updateGroupsParent}\n className=\"flex flex-col items-start justify-start\"\n >\n {wasChanged && (\n <Button\n variant=\"default\"\n size=\"sm\"\n className=\"relative\"\n disabled={isUpdating}\n onClick={onUpdate}\n >\n {texts?.groupsUpdateButton ??\n DEFAULT_TEXTS.groupsUpdateButton}\n {isUpdating && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n )}\n {isUserGroupsUpdated && (\n <p className=\"mt-3 flex items-center gap-2 text-sm text-green-500\">\n <CheckCircleIcon color=\"var(--color-green-500\" size={16} />{\" \"}\n {texts?.groupsUpdateSuccess ??\n DEFAULT_TEXTS.groupsUpdateSuccess}\n </p>\n )}\n </div>\n <div className=\"grow\"></div>\n </>\n )}\n {hasUnchecked && (\n <div className=\"flex justify-start\">\n <Button\n className=\"cursor-pointer dark:bg-neutral-700\"\n onClick={onCheckAll}\n size=\"sm\"\n variant=\"secondary\"\n type=\"button\"\n >\n {texts?.groupsSelectAllButton ??\n DEFAULT_TEXTS.groupsSelectAllButton}\n </Button>\n </div>\n )}\n </div>\n {hasNoSelection && (\n <div className=\"flex text-left gap-2 text-xs text-yellow-500\">\n <TriangleAlertIcon color=\"orange\" size={16} />\n {texts?.groupsNoSelectionWarning ??\n DEFAULT_TEXTS.groupsNoSelectionWarning}\n </div>\n )}\n </div>\n );\n\n if (isManaging == true) {\n return (\n <Card className=\"mt-5 text-left\">\n <CardHeader>\n <CardTitle>\n {texts?.groupsTitle ?? DEFAULT_TEXTS.groupsTitle}\n </CardTitle>\n </CardHeader>\n <CardContent>{content}</CardContent>\n </Card>\n );\n }\n\n return content;\n}\n","import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />\n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n )\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n","import { Popover, PopoverContent, PopoverTrigger } from \"@/src/ui/popover\";\nimport { ClockIcon } from \"lucide-react\";\n\nexport function HowOftenComponent({ regularity }: { regularity: string }) {\n let text = \"\";\n switch (regularity) {\n case \"rarely\":\n text = \"rzadko\";\n break;\n case \"often\":\n text = \"często\";\n break;\n case \"very_often\":\n text = \"codzienne\";\n break;\n }\n\n return (\n <Popover>\n <PopoverTrigger\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n <button\n type=\"button\"\n className=\"flex w-[30%] cursor-help flex-col items-center justify-center text-xs md:w-[25%] xl:w-[20%]\"\n >\n <ClockIcon size={12} />\n <span>{text}</span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-80\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"leading-none font-medium\">Co to oznacza?</h4>\n <ul className=\"list-inside list-disc text-sm\">\n <li>\n <span className=\"font-semibold\">Rzadko</span> – powiadomienia\n będą wysyłane maksymalnie kilka razy w miesiącu.\n </li>\n <li>\n <span className=\"font-semibold\">Często</span> – powiadomienia\n mogę być wysyłane kilka razy w tygodniu.\n </li>\n <li>\n <span className=\"font-semibold\">Codzienne</span> – powiadomienia\n będą wysyłane nawet codziennie.\n </li>\n </ul>\n </div>\n <div className=\"grid gap-2\"></div>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n","import { cn } from \"@/src/lib/utils\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { HOST } from \"../checkout/constants\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\n\ninterface QRCodeSectionProps {\n showQRCode?: boolean;\n isManaging?: boolean;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function QRCodeSection({\n showQRCode = true,\n isManaging,\n className,\n texts,\n}: QRCodeSectionProps) {\n const isBrowser = typeof window !== \"undefined\";\n const darkMode = isBrowser\n ? window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches\n ? true\n : false\n : false;\n\n function getURL(isBrowser: boolean) {\n if (isBrowser) {\n return window.location.href;\n }\n return \"\";\n }\n\n if (!showQRCode) {\n return null;\n }\n\n return (\n <Card\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.qrCodeSection\n )}\n >\n <CardHeader>\n <CardTitle\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.qrCodeTitle\n )}\n >\n {texts?.qrCodeSubtitle ?? DEFAULT_TEXTS.qrCodeSubtitle}\n {\" \" + (texts?.qrCodeTitle ?? DEFAULT_TEXTS.qrCodeTitle)}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"flex flex-col items-center gap-2\">\n <div className=\"mt-1.5 mb-3 flex items-center gap-x-2\">\n <a\n href=\"https://apps.apple.com/us/app/bitsnap/id6741902807\"\n target=\"_blank\"\n className=\"max-w-28 flex-1 basis-1/2 lg:max-w-36\"\n >\n <img\n className=\"h-auto w-full\"\n src={HOST + \"/app-store-logo.png\"}\n alt=\"Download on App Store\"\n />\n </a>\n <a\n href=\"https://play.google.com/store/apps/details?id=com.bitsnap.Bitsnap&pli=1\"\n target=\"_blank\"\n className=\"max-w-28 flex-1 basis-1/2 lg:max-w-36\"\n >\n <img\n className=\"h-auto w-full\"\n src={HOST + \"/google-play-logo.png\"}\n alt=\"Get in on Google Play\"\n />\n </a>\n </div>\n {isBrowser && (\n <div className=\"flex items-center justify-center\">\n <div\n className={cn(\n \"flex min-w-[40%] flex-col items-center gap-2 rounded-xl bg-white p-2 dark:bg-neutral-900\",\n className?.qrCodeContainer\n )}\n >\n <img\n className=\"mt-3 w-[80%] p-1 pt-3\"\n src={\n HOST +\n `/api/qr-gen?url=${getURL(isBrowser)}&bgColor=${\n !darkMode ? \"F6F4F0\" : \"171717\"\n }&textColor=${!darkMode ? \"000000\" : \"ffffff\"}&margin=0`\n }\n />\n <p className=\"text-xs md:text-sm\">\n {texts?.qrCodeScanText ?? DEFAULT_TEXTS.qrCodeScanText}\n </p>\n </div>\n </div>\n )}\n </CardContent>\n </Card>\n );\n}\n","import { useState } from \"react\";\nimport { isValidPhoneNumber } from \"react-phone-number-input\";\nimport { cn } from \"@/src/lib/utils\";\nimport { rpcProvider, useMutation } from \"src/rpc-provider\";\nimport { FailureMessage } from \"@/src/gen/proto/dashboard/v1/notifications_pb\";\nimport type {\n ComponentClassNames,\n CustomizationTexts,\n NotificationGroup,\n} from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { FormInput } from \"./FormInput\";\nimport type { ReactNode } from \"react\";\nimport { NotificationGroupsList } from \"./NotificationGroupsList\";\n\nconst emailRegex =\n /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\ninterface AddUserToGroupsProps {\n slug: string;\n groups: NotificationGroup[];\n isUpdating?: boolean;\n wasChanged?: boolean;\n onToggle?: (id: string) => void;\n onCheckAll?: () => void;\n showPhoneInput?: boolean;\n agreementText?: string | ReactNode;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n onSuccess?: (\n userAlreadyExists: boolean,\n userID: string | undefined,\n accessToken: string | undefined\n ) => void;\n}\n\nexport function AddUserToGroups({\n groups,\n onToggle,\n onCheckAll,\n slug,\n showPhoneInput = false,\n agreementText,\n className,\n texts,\n isUpdating,\n wasChanged,\n onSuccess,\n}: AddUserToGroupsProps) {\n const [errMsg, setErrMsg] = useState(\"\");\n const [warnMsg, setWarnMsg] = useState(\"\");\n const [isSubmited, setIsSubmited] = useState(false);\n const [agreementLack, setAgreementLack] = useState(false);\n const [emailLack, setEmailLack] = useState(false);\n const {\n mutateAsync: createNotificationUserMutation,\n isPending: isCreateNotificationUserPending,\n } = useMutation(rpcProvider.notifications.createNotificationUser);\n\n function validatePhoneNumber(phone: string): boolean {\n if (phone == null) {\n return false;\n }\n return isValidPhoneNumber(phone, \"PL\");\n }\n\n async function save(email: string, phone: string, agreement: boolean) {\n setErrMsg(\"\");\n setWarnMsg(\"\");\n setEmailLack(false);\n setIsSubmited(false);\n setAgreementLack(false);\n\n if (!agreement) {\n setAgreementLack(true);\n const msg = \"Zgoda w tym przypadku jest wymagana.\";\n setErrMsg(msg);\n return;\n }\n\n if (emailRegex.test(email) === false) {\n setErrMsg(\"Email jest nieprawidłowy.\");\n setEmailLack(true);\n return;\n }\n\n if (phone.length > 0) {\n if (validatePhoneNumber(phone) === false) {\n const msg =\n \"Numer telefonu może być nieprawidłowy. Zapisaliśmy go ale jeśli jest nieprawidłowy to wpisz jeszcze raz i kliknij przycisk.\";\n setWarnMsg(msg);\n }\n }\n\n try {\n const newNotificationUser = await createNotificationUserMutation({\n slug: slug,\n email: email,\n phone: phone,\n groups: groups.filter((el) => el.isOn == true).map((el) => el.id),\n mobileNotificationEnabled: true,\n emailNotificationEnabled: true,\n smsNotificationEnabled: true,\n });\n\n if (newNotificationUser.result.case === \"success\") {\n setIsSubmited(true);\n setTimeout(() => {\n onSuccess?.(\n false,\n newNotificationUser.userId,\n newNotificationUser.accessToken\n );\n }, 1000);\n return;\n } else {\n setIsSubmited(true);\n const failureMessage = newNotificationUser.result.value;\n\n if (failureMessage != null) {\n if (\n failureMessage == FailureMessage.NOTIFICATION_USER_ALREADY_EXIST\n ) {\n onSuccess?.(true, undefined, undefined);\n return;\n }\n console.log(`Code error: ${FailureMessage[failureMessage]}`);\n setErrMsg(\"Wystąpił błąd: \" + FailureMessage[failureMessage]);\n return;\n }\n\n return;\n }\n } catch (e) {\n setErrMsg(\"Wystąpił błąd podczas zapisywania. Spróbuj ponownie.\");\n console.log(`Error: ${e}`);\n }\n }\n\n const text = texts?.formTitle ?? DEFAULT_TEXTS.formTitle;\n\n return (\n <div\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.formSection\n )}\n >\n {text.length > 0 && (\n <h3\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.formTitle\n )}\n >\n {text}\n </h3>\n )}\n\n <NotificationGroupsList\n groups={groups}\n isManaging={false}\n onToggle={onToggle ?? (() => {})}\n onCheckAll={onCheckAll ?? (() => {})}\n isUpdating={isUpdating ?? false}\n wasChanged={wasChanged ?? false}\n isUserGroupsUpdated={false}\n className={className}\n texts={texts}\n />\n\n <FormInput\n errMsg={errMsg}\n emailLack={emailLack}\n warnMsg={warnMsg}\n submit={save}\n isLoading={isCreateNotificationUserPending}\n isSubmited={isSubmited}\n agreementLack={agreementLack}\n showPhoneInput={showPhoneInput}\n agreementText={\n agreementText ?? texts?.agreementText ?? DEFAULT_TEXTS.agreementText\n }\n className={className}\n texts={texts}\n />\n </div>\n );\n}\n","import { Input } from \"@/src/ui/input\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Label } from \"@radix-ui/react-label\";\nimport {\n CheckCircleIcon,\n CircleAlertIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { useState, type FormEvent } from \"react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport type { ReactNode } from \"react\";\n\ninterface FormInputProps {\n isLoading: boolean;\n submit: (email: string, phone: string, agreement: boolean) => void;\n errMsg: string;\n agreementLack?: boolean;\n emailLack?: boolean;\n warnMsg: string;\n isSubmited: boolean;\n showPhoneInput?: boolean;\n agreementText?: string | ReactNode;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function FormInput({\n submit,\n isLoading,\n errMsg,\n emailLack,\n warnMsg,\n isSubmited,\n agreementLack,\n showPhoneInput = false,\n agreementText,\n className,\n texts,\n}: FormInputProps) {\n const [email, setEmail] = useState(\"\");\n const [phone, setPhone] = useState(\"\");\n const [isChecked, setIsChecked] = useState(false);\n\n const [parent] = useAutoAnimate();\n\n function submitForm(e: FormEvent) {\n e.preventDefault();\n submit(email, phone, isChecked);\n }\n\n return (\n <form\n ref={parent}\n onSubmit={submitForm}\n className={cn(\"flex flex-col gap-3 text-left\", className?.formContainer)}\n >\n <div className=\"flex flex-col gap-1 text-left\">\n <Label className=\"text-sm\" htmlFor=\"bts-notifications-form-email\">\n {texts?.formEmailLabel ?? DEFAULT_TEXTS.formEmailLabel}\n </Label>\n <Input\n value={email}\n onChange={(newVal) => {\n setEmail(newVal.currentTarget.value);\n }}\n id=\"bts-notifications-form-email\"\n className={cn(emailLack === true ? \"border-red-400\" : \"\")}\n type=\"email\"\n placeholder={\n texts?.formEmailPlaceholder ?? DEFAULT_TEXTS.formEmailPlaceholder\n }\n />\n </div>\n\n {showPhoneInput && (\n <div className=\"flex flex-col gap-1 text-left\">\n <Label className=\"text-sm\" htmlFor=\"bts-notifications-form-phone\">\n {texts?.formPhoneLabel ?? DEFAULT_TEXTS.formPhoneLabel}{\" \"}\n <span className=\"text-neutral-500 dark:text-neutral-500\">\n {texts?.formPhoneOptional ?? DEFAULT_TEXTS.formPhoneOptional}\n </span>\n </Label>\n <Input\n value={phone}\n onChange={(newVal) => {\n setPhone(newVal.currentTarget.value);\n }}\n id=\"bts-notifications-form-phone\"\n className=\"\"\n type=\"tel\"\n autoComplete=\"tel\"\n autoCorrect=\"off\"\n placeholder={\n texts?.formPhonePlaceholder ?? DEFAULT_TEXTS.formPhonePlaceholder\n }\n />\n </div>\n )}\n <div className=\"flex items-start gap-x-1.5\">\n <input\n className=\"cursor-pointer\"\n id=\"bts-notifications-form-marketing-consent\"\n type=\"checkbox\"\n checked={isChecked}\n onChange={() => {\n setIsChecked(!isChecked);\n }}\n />\n <label\n htmlFor=\"bts-notifications-form-marketing-consent\"\n className={cn(\n \"cursor-pointer text-xs leading-4 transition-colors md:text-sm md:leading-4\",\n agreementLack === true ? \"text-yellow-700\" : \"\"\n )}\n >\n {agreementText}\n </label>\n </div>\n {errMsg.length > 0 && (\n <p className=\"mb-3 flex items-center gap-1 text-sm text-red-400\">\n <TriangleAlertIcon color=\"#ff6467\" size={16} /> {errMsg}\n </p>\n )}\n {warnMsg.length > 0 && (\n <p className=\"mb-3 flex items-center gap-1 text-sm text-amber-400\">\n <CircleAlertIcon color=\"var(--color-amber-400)\" size={16} /> {warnMsg}\n </p>\n )}\n {isSubmited == false && (\n <div className=\"flex justify-start\">\n <Button\n variant=\"default\"\n disabled={isLoading}\n className={cn(\n isLoading ? \"cursor-not-allowed text-transparent\" : \"\",\n \"relative\"\n )}\n >\n {texts?.formSubmitButton ?? DEFAULT_TEXTS.formSubmitButton}\n {isLoading && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n </div>\n )}\n {isSubmited && (\n <div className=\"flex items-center gap-3 text-sm text-green-400\">\n <CheckCircleIcon size={16} />{\" \"}\n {texts?.formSuccessMessage ?? DEFAULT_TEXTS.formSuccessMessage}\n </div>\n )}\n </form>\n );\n}\n","import { useEffect, useState } from \"react\";\nimport { Skeleton } from \"@/src/ui/skeleton\";\nimport { Switch } from \"@/src/ui/switch\";\nimport { cn } from \"@/src/lib/utils\";\nimport { Label } from \"@radix-ui/react-label\";\nimport { MessageCircleWarningIcon } from \"lucide-react\";\nimport { rpcProvider, useMutation, useQuery } from \"src/rpc-provider\";\nimport { useDebouncedCallback } from \"use-debounce\";\nimport { UnsubscribeDialog } from \"./UnsubscribeDialog\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\n\ninterface ManageMyDataProps {\n accessToken: string;\n slug: string;\n userID: string;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function ManageMyData({\n accessToken,\n slug,\n userID,\n className,\n texts,\n}: ManageMyDataProps) {\n const [parent] = useAutoAnimate();\n const [parentCard] = useAutoAnimate();\n const { mutateAsync: deleteMyData, isPending: isDeleting } = useMutation(\n rpcProvider.notifications.deleteNotificationUser\n );\n const { mutateAsync: updateNotificationUser, isPending: isUpdating } =\n useMutation(rpcProvider.notifications.updateNotificationUser);\n\n const { data: userSettings, isFetching: isLoading } = useQuery(\n rpcProvider.notifications.getNotificationUserSettings,\n {\n userId: userID,\n slug: slug,\n accessToken: accessToken,\n }\n );\n\n const [email, setEmail] = useState(false);\n const [phone, setPhone] = useState(false);\n const [isDataUpdated, setIsDataUpdated] = useState(false);\n const [push, setPush] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const details =\n userSettings?.result.case === \"success\"\n ? userSettings?.result?.value\n : undefined;\n\n function deleteData() {\n setIsDialogOpen(true);\n }\n\n async function handleConfirmDelete() {\n await deleteMyData({\n accessToken: accessToken,\n slug: slug,\n userId: userID,\n });\n setIsDialogOpen(false);\n }\n\n async function updateData() {\n await updateNotificationUser({\n accessToken: accessToken,\n slug: slug,\n notificationUserId: userID,\n mobileNotificationEnabled: push,\n emailNotificationEnabled: email,\n smsNotificationEnabled: phone,\n });\n setIsDataUpdated(true);\n setTimeout(() => {\n setIsDataUpdated(false);\n }, 3000);\n }\n const debouncedUpdateData = useDebouncedCallback((_: boolean) => {\n updateData();\n }, 300);\n\n useEffect(() => {\n const details =\n userSettings?.result.case === \"success\"\n ? userSettings?.result?.value\n : undefined;\n\n setEmail(details?.emailNotificationEnabled ?? false);\n setPhone(details?.smsNotificationEnabled ?? false);\n setPush(details?.mobileNotificationEnabled ?? false);\n }, [userSettings]);\n\n function setData(key: \"email\" | \"phone\" | \"push\", value: boolean) {\n if (key === \"email\") {\n setEmail(value);\n }\n if (key === \"phone\") {\n setPhone(value);\n }\n if (key === \"push\") {\n setPush(value);\n }\n debouncedUpdateData(true);\n }\n\n return (\n <div\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.manageDataSection\n )}\n >\n <div className=\"flex justify-start\">\n <h3\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.manageDataTitle\n )}\n >\n {texts?.manageDataTitle ?? DEFAULT_TEXTS.manageDataTitle}\n </h3>\n </div>\n\n {isLoading ? (\n <Skeleton className=\"h-64 w-full\" />\n ) : (\n <Card ref={parentCard} className={cn(isUpdating && \"relative\")}>\n <CardHeader>\n <CardTitle>\n <p className=\"text-sm text-left\">\n {texts?.manageDataDescription ??\n DEFAULT_TEXTS.manageDataDescription}\n </p>\n </CardTitle>\n </CardHeader>\n <CardContent ref={parent}>\n <div\n className={cn(\n isUpdating && \"opacity-50 pointer-events-none\",\n \"flex flex-col gap-2\"\n )}\n >\n <div className=\"flex flex-col items-start gap-5 gap-x-2\">\n {details?.emailNotificationAvailable && (\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"email-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={email}\n onCheckedChange={() => {\n setData(\"email\", !email);\n }}\n />\n <Label htmlFor=\"email-enabled\" className=\"text-sm\">\n Email\n </Label>\n </div>\n )}\n {details?.smsNotificationAvailable && (\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"sms-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={phone}\n onCheckedChange={() => {\n setData(\"phone\", !phone);\n }}\n />\n <Label htmlFor=\"sms-enabled\" className=\"text-sm\">\n SMS\n </Label>\n </div>\n )}\n {details?.mobileNotificationAvailable && (\n <>\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"push-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={push}\n onCheckedChange={() => {\n setData(\"push\", !push);\n }}\n />\n <Label htmlFor=\"push-enabled\" className=\"text-sm\">\n Powiadomienia na telefon\n </Label>\n </div>\n {details?.hasUserInstalledApp === false && (\n <div className=\"flex items-center gap-3\">\n <MessageCircleWarningIcon\n color=\"var(--color-amber-500)\"\n size={26}\n />\n <p className=\"text-xs text-amber-500\">\n Wygląda na to, że nie masz zainstalowanej aplikacji\n mobilnej. Zainstaluj i wyraź zgodę na otrzymywanie\n powiadomień na telefon.\n </p>\n </div>\n )}\n </>\n )}\n </div>\n </div>\n\n <div className=\"mt-5 flex flex-col gap-2 text-left\">\n <hr />\n {isDataUpdated && (\n <p className=\"text-xs text-green-500\">\n {texts?.manageDataUpdatedMessage ??\n DEFAULT_TEXTS.manageDataUpdatedMessage}\n </p>\n )}\n <div className=\"flex items-center gap-x-2\">\n <Button\n size=\"sm\"\n variant=\"link\"\n className={cn(\n \"pl-0 ml-0\",\n isDeleting && \"cursor-not-allowed\"\n )}\n onClick={deleteData}\n >\n {texts?.manageDataUnsubscribeButton ??\n DEFAULT_TEXTS.manageDataUnsubscribeButton}\n {isDeleting && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n </div>\n </div>\n </CardContent>\n {isUpdating && (\n <div className=\"bg-black/30 absolute inset-0 rounded-xl\">\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n </div>\n )}\n </Card>\n )}\n <UnsubscribeDialog\n open={isDialogOpen}\n onOpenChange={setIsDialogOpen}\n onConfirm={handleConfirmDelete}\n isDeleting={isDeleting}\n />\n </div>\n );\n}\n","import { cn } from \"../../lib/utils\";\nimport { TriangleAlertIcon, XIcon } from \"lucide-react\";\nimport { createPortal } from \"react-dom\";\nimport { useEffect, useState } from \"react\";\nimport { Button } from \"@/src/ui/button\";\n\ninterface UnsubscribeDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onConfirm: () => void;\n isDeleting?: boolean;\n}\n\nexport function UnsubscribeDialog({\n open,\n onOpenChange,\n onConfirm,\n isDeleting = false,\n}: UnsubscribeDialogProps) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n setMounted(true);\n return () => setMounted(false);\n }, []);\n\n useEffect(() => {\n if (open) {\n document.body.style.overflow = \"hidden\";\n } else {\n document.body.style.overflow = \"\";\n }\n return () => {\n document.body.style.overflow = \"\";\n };\n }, [open]);\n\n if (!mounted || !open) {\n return null;\n }\n\n const handleBackdropClick = (e: React.MouseEvent<HTMLDivElement>) => {\n if (e.target === e.currentTarget) {\n onOpenChange(false);\n }\n };\n\n const handleConfirm = () => {\n onConfirm();\n };\n\n return createPortal(\n <div\n className=\"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 p-4\"\n onClick={handleBackdropClick}\n >\n <div\n className={cn(\n \"relative w-full max-w-md rounded-2xl bg-white p-6 shadow-lg\",\n \"dark:bg-neutral-800\",\n \"animate-in fade-in-0 zoom-in-95 duration-200\"\n )}\n onClick={(e) => e.stopPropagation()}\n >\n <button\n onClick={() => onOpenChange(false)}\n className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none dark:ring-offset-neutral-950 dark:focus:ring-neutral-300\"\n disabled={isDeleting}\n >\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Zamknij</span>\n </button>\n\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-start gap-3\">\n <div className=\"flex-shrink-0\">\n <TriangleAlertIcon\n className=\"h-6 w-6 text-amber-500\"\n aria-hidden=\"true\"\n />\n </div>\n <div className=\"flex-1\">\n <h2 className=\"text-lg font-semibold text-black dark:text-neutral-100\">\n Czy na pewno chcesz się wypisać?\n </h2>\n </div>\n </div>\n\n <p className=\"text-sm text-neutral-600 dark:text-neutral-400\">\n Kliknięcie tego przycisku spowoduje wypisanie z wszelkich\n powiadomień i grup, które zapisałeś.\n </p>\n\n <div className=\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\">\n <Button\n type=\"button\"\n variant=\"ghost\"\n onClick={() => onOpenChange(false)}\n disabled={isDeleting}\n className=\"sm:min-w-[100px]\"\n >\n Anuluj\n </Button>\n <Button\n type=\"button\"\n variant=\"destructive\"\n onClick={handleConfirm}\n disabled={isDeleting}\n className={cn(\n isDeleting && \"cursor-not-allowed text-transparent\",\n \"relative sm:min-w-[100px]\"\n )}\n >\n Usuń\n {isDeleting && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <div className=\"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent\" />\n </div>\n )}\n </Button>\n </div>\n </div>\n </div>\n </div>,\n document.body\n );\n}\n","import { useState } from \"react\";\nimport { rpcProvider, RpcProvider, useMutation } from \"src/rpc-provider\";\nimport { getProjectID } from \"../checkout/CartProvider\";\nimport { Input } from \"@/src/ui/input\";\nimport { Label } from \"@/src/ui/label\";\nimport { Button } from \"@/src/ui/button\";\nimport { InputOTP, InputOTPGroup, InputOTPSlot } from \"@/src/ui/input-otp\";\nimport { cn } from \"@/src/lib/utils\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport type { CustomizationTexts } from \"./types\";\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/src/ui/card\";\nimport { ArrowLeft, X } from \"lucide-react\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Dialog, DialogContent } from \"@/src/ui/dialog\";\nimport { ConnectError } from \"@connectrpc/connect\";\nimport { Spinner } from \"@/src/ui/spinner\";\n\nexport type LoginScreenTexts = Pick<\n CustomizationTexts,\n | \"loginTitle\"\n | \"loginDescription\"\n | \"loginEmailLabel\"\n | \"loginEmailPlaceholder\"\n | \"loginSendCodeButton\"\n | \"loginSendingButton\"\n | \"loginCodeLabel\"\n | \"loginCodeSentMessage\"\n | \"loginIHaveCode\"\n | \"loginChangeEmailButton\"\n | \"loginResendCodeButton\"\n | \"loginInvalidEmailError\"\n | \"loginInvalidCodeError\"\n | \"loginSlugRequiredError\"\n | \"loginVerificationFailedError\"\n | \"loginSendEmailError\"\n | \"loginVerifyCodeError\"\n | \"loginResendEmailError\"\n>;\n\ninterface LoginScreenProps {\n /**\n * Unique identifier for the project (if not provided, productID will be used via CartProvider).\n */\n slug: string;\n\n /**\n * Callback function called when login is successful with the access token.\n */\n onSuccess?: (userID: string | undefined, accessToken: string) => void;\n\n /**\n * Callback function called when an error occurs.\n */\n onError?: (error: Error) => void;\n\n /**\n * Callback function called when the close button is clicked.\n */\n onClose?: () => void;\n\n /**\n * If true, the dialog is open.\n */\n isOpen: boolean;\n\n /**\n * Custom CSS class names for styling.\n */\n className?: string;\n\n /**\n * Custom texts used throughout the component for i18n or personalisation.\n */\n texts: LoginScreenTexts;\n}\n\nexport function LoginScreen({\n slug,\n onSuccess,\n onError,\n className,\n isOpen,\n onClose,\n texts,\n}: LoginScreenProps) {\n const [parentContent] = useAutoAnimate();\n const [parentHeader] = useAutoAnimate();\n const [email, setEmail] = useState(\"\");\n const [code, setCode] = useState(\"\");\n const [isEmailSent, setIsEmailSent] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const { mutateAsync: verifyUserEmail, isPending: isVerifying } = useMutation(\n rpcProvider.notifications.verifyUserEmail\n );\n\n const handleSendEmail = async (e: React.FormEvent) => {\n e.preventDefault();\n setError(null);\n\n if (!email || !email.includes(\"@\")) {\n setError(texts.loginInvalidEmailError ?? \"\");\n return;\n }\n\n try {\n await verifyUserEmail({\n email,\n slug: slug,\n });\n setIsEmailSent(true);\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginSendEmailError);\n setError(error.message);\n onError?.(error);\n }\n };\n\n const handleVerifyCode = async (value: string) => {\n setCode(value);\n setError(null);\n\n // Only verify when all 6 digits are entered\n if (value.length === 6) {\n try {\n const response = await verifyUserEmail({\n email: undefined,\n code: value,\n slug: slug,\n });\n\n if (response.ok && response.accessToken) {\n onSuccess?.(response.userId, response.accessToken);\n } else {\n setError(texts.loginVerificationFailedError ?? \"\");\n onError?.(new Error(texts.loginVerificationFailedError));\n }\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginVerifyCodeError);\n if (error.message.includes(\"Invalid code\")) {\n setError(texts.loginInvalidCodeError ?? error.message);\n setCode(\"\");\n return;\n }\n setError(error.message);\n onError?.(error);\n // Clear the code on error so user can retry\n setCode(\"\");\n }\n }\n };\n\n const handleResendEmail = async () => {\n setCode(\"\");\n setError(null);\n\n if (!email || !slug) {\n setError(texts.loginSlugRequiredError ?? \"\");\n return;\n }\n\n try {\n await verifyUserEmail({\n email,\n slug: slug,\n });\n // Keep isEmailSent as true, just clear the code\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginResendEmailError);\n setError(error.message);\n onError?.(error);\n }\n };\n\n const handleChangeEmail = () => {\n setIsEmailSent(false);\n setCode(\"\");\n setError(null);\n };\n\n return (\n <Dialog open={isOpen} onOpenChange={onClose}>\n <DialogContent className=\"sm:max-w-[425px] min-h-[250px]\">\n <div className=\"flex flex-col min-h-[250px] h-full\">\n {/* Header */}\n <div ref={parentHeader} className=\"flex items-start gap-2 mb-2\">\n {isEmailSent && (\n <Button\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={() => {\n setIsEmailSent(false);\n }}\n >\n <ArrowLeft className=\"h-5 w-5\" />\n </Button>\n )}\n <div>\n <CardTitle>\n {isEmailSent\n ? texts.loginCodeLabel ?? \"\"\n : texts.loginTitle ?? \"\"}\n </CardTitle>\n </div>\n </div>\n {/* Description */}\n <CardDescription className=\"mb-4\">\n {isEmailSent ? (\n <>\n {texts.loginCodeSentMessage ?? \"\"} {email}\n </>\n ) : (\n texts.loginDescription ?? \"\"\n )}\n </CardDescription>\n\n {/* Main form area */}\n <div className=\"flex-1 flex flex-col\">\n {!isEmailSent ? (\n <form onSubmit={handleSendEmail} className=\"flex flex-col flex-1\">\n <div className=\"space-y-2\">\n <Label htmlFor=\"email\">{texts.loginEmailLabel ?? \"\"}</Label>\n <Input\n id=\"email\"\n type=\"email\"\n placeholder={texts.loginEmailPlaceholder ?? \"\"}\n value={email}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setEmail(e.target.value)\n }\n required\n disabled={isVerifying}\n aria-invalid={error ? \"true\" : \"false\"}\n />\n </div>\n {error && (\n <div\n className=\"text-sm text-destructive mt-2 mb-1\"\n role=\"alert\"\n >\n {error}\n </div>\n )}\n <div className=\"grow\" />\n {/* Always pin buttons to the bottom */}\n <div className=\"flex flex-col items-start gap-0 pt-2\">\n <Button type=\"submit\" size=\"sm\" disabled={isVerifying}>\n {isVerifying\n ? texts.loginSendingButton ?? \"\"\n : texts.loginSendCodeButton ?? \"\"}\n </Button>\n <Button\n type=\"button\"\n variant=\"link\"\n className=\"ml-0 pl-0\"\n size=\"sm\"\n onClick={() => {\n setIsEmailSent(true);\n }}\n >\n {texts.loginIHaveCode ?? \"\"}\n </Button>\n </div>\n </form>\n ) : (\n <form\n onSubmit={(e) => e.preventDefault()}\n className=\"flex flex-col flex-1\"\n >\n <div className=\"space-y-2\">\n <Label>{texts.loginCodeLabel ?? \"\"}</Label>\n <InputOTP\n maxLength={6}\n value={code}\n onChange={handleVerifyCode}\n disabled={isVerifying}\n >\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n <InputOTPSlot index={2} />\n <InputOTPSlot index={3} />\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n {isVerifying && <Spinner />}\n </div>\n {error && (\n <div\n className=\"text-sm text-destructive mt-2 mb-1\"\n role=\"alert\"\n >\n {error}\n </div>\n )}\n <div className=\"grow\" />\n {/* Always pin buttons to the bottom */}\n <div className=\"flex flex-col items-start gap-2 pt-2\">\n {email.length > 0 && (\n <Button\n variant=\"link\"\n size=\"sm\"\n onClick={handleResendEmail}\n disabled={isVerifying}\n className=\"flex-1 ml-0 pl-0\"\n >\n {texts.loginResendCodeButton ?? \"\"}\n </Button>\n )}\n <Button\n variant=\"link\"\n size=\"sm\"\n onClick={handleChangeEmail}\n disabled={isVerifying}\n className=\"flex-1 ml-0 pl-0\"\n >\n {texts.loginChangeEmailButton ?? \"\"}\n </Button>\n </div>\n </form>\n )}\n </div>\n </div>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction Wrapper(props: LoginScreenProps) {\n return (\n <RpcProvider>\n <LoginScreen {...props} />\n </RpcProvider>\n );\n}\n\nexport default Wrapper;\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n"],"mappings":"uyCAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,oBAAAE,GAAA,YAAAC,GAAA,oBAAAC,GAAA,oBAAAC,GAAA,2BAAAC,GAAA,UAAAC,GAAA,eAAAC,GAAA,kBAAAC,GAAA,oBAAAC,GAAA,6BAAAC,GAAA,mBAAAC,GAAA,qBAAAC,GAAA,4BAAAC,GAAA,cAAAC,GAAA,mBAAAC,GAAA,2BAAAC,GAAA,2BAAAC,GAAA,qCAAAC,GAAA,qBAAAC,GAAA,2BAAAC,GAAA,4BAAAC,GAAA,kBAAAC,GAAA,YAAAC,GAAA,cAAAC,GAAA,gBAAAC,GAAA,mBAAAC,GAAA,sBAAAC,GAAA,iBAAAA,GAAA,aAAAC,GAAA,mBAAAC,KAAA,eAAAC,GAAA/B,ICAA,IAAAgC,GAA2B,gCCC3B,IAAAC,GAA0C,+BAC1CC,GAAuC,mCCIvC,IAAAC,GAA6D,wCCD7D,IAAAC,GAAsC,wCAMzBC,MACX,aAAS,4kBAA4kB,EAyC1kBC,MACX,gBAAYD,GAAwB,CAAC,EA8C1BE,MACX,gBAAYF,GAAwB,CAAC,EChGvC,IAAAG,GAA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AAC,OAAI,UAAWc,EAAG,iCAAiC,EAClD,oBAACO,GAAA,CACC,KAAMxC,EACN,SAAWyC,GAAO,CAChB5B,EAAS,CAAE,KAAM,eAAgB,QAAS4B,CAAG,CAAC,CAChD,EACA,WAAY,IAAM,CAChB5B,EAAS,CAAE,KAAM,kBAAmB,CAAC,CACvC,EACA,UAAW,CAAC6B,EAAmBvD,EAAQ2C,IAAgB,CACjDA,GAAe,MACjBD,GAAmB1C,EAAQ2C,CAAW,EAEpCY,GACF7B,EAAS,CAAE,KAAM,eAAgB,CAAC,CAEtC,EACA,OAAQzC,EAAM,OACd,eAAgBwB,EAChB,cAAeuB,EAAY,cAC3B,UAAWrB,EACX,MAAOqB,EACP,WAAY/C,EAAM,WAClB,WAAY+B,EACd,EACF,EAEJ,KACA,QAACwC,GAAA,CACC,OAAQvE,EAAM,cAAgB,CAACA,EAAM,WACrC,KAAM4B,EACN,UAAW6B,GACX,MAAOV,EACP,QAASQ,GACX,GACF,CAEJ,CAEA,SAASiB,GAAQ,CACf,KAAA5C,EACA,OAAAb,EACA,UAAA0D,EACA,YAAAxD,EACA,YAAAC,EACA,gBAAAC,EACA,OAAAC,EACA,WAAAC,EACA,MAAAC,EACA,WAAAC,EACA,eAAAC,EACA,eAAAC,EACA,UAAAC,CACF,EAAU,CACR,SACE,QAACgD,GAAA,CACC,oBAAC7D,GAAA,CACC,KAAMe,EACN,OAAQb,EACR,UAAW0D,EACX,YAAaxD,EACb,YAAaC,EACb,gBAAiBC,EACjB,OAAQC,EACR,WAAYC,EACZ,MAAOC,EACP,WAAYC,EACZ,eAAgBC,EAChB,eAAgBC,EAChB,UAAWC,EACb,EACF,CAEJ,CACA,IAAOiD,GAAQH","names":["src_exports","__export","ApplePay_default","Bitsnap","BitsnapCart_default","GooglePay_default","NotificationsComponentPublic_default","PanelPage_default","PanelLogin","PanelProvider","PublicOrderPage_default","buildAccessTokenRedirect","createCheckout","createPaymentURL","getAllowedReturnOrigins","getLocale","getPanelConfig","getReferenceIfPossible","getReturnURLFromSearch","injectReferenceToRequestIfNeeded","persistReturnURL","readPersistedReturnURL","setAllowedReturnOrigins","setCustomHost","setHost","setLocale","setLoginURL","setPanelConfig","setProjectID","setTheme","usePanelConfig","__toCommonJS","import_apple_pay_button","import_connect","import_connect_web","import_codegenv2","import_codegenv2","file_common_v1_address","AddressSchema","BillingAddressSchema","import_codegenv2","file_common_v1_gateway","import_codegenv2","import_wkt","file_common_v1_push_notifications","import_codegenv2","import_wkt","file_dashboard_v1_audiobooks","import_wkt","file_public_v1_public_api","file_common_v1_address","file_common_v1_gateway","file_common_v1_push_notifications","file_dashboard_v1_audiobooks","PreOrderItemSchema","file_public_v1_public_api","GetPreOrderDetailsRequestSchema","UserProductSchema","file_public_v1_public_api","PublicApiService","file_public_v1_public_api","PublicApiClient","get","host","PublicApiService","getTransport","transport","import_react","import_clsx","import_tailwind_merge","cn","inputs","import_connect_query","import_connect_web","import_react_query","import_react","HOST","setCustomHost","host","notifications_NotificationsService_connectquery_exports","__export","createNotificationGroup","createNotificationGroupUser","createNotificationMessage","createNotificationMessageJob","createNotificationSetting","createNotificationUser","deleteNotificationGroup","deleteNotificationGroupUser","deleteNotificationMessage","deleteNotificationMessageJob","deleteNotificationSetting","deleteNotificationUser","getNotificationUserSettings","getProjectedRecipientCount","getSentNotificationMessages","getUserGroups","readNotificationGroupUsers","readNotificationGroups","readNotificationMessageJobs","readNotificationMessages","readNotificationProducts","readNotificationSetting","readNotificationUsers","updateNotificationGroup","updateNotificationGroupUser","updateNotificationMessage","updateNotificationMessageJob","updateNotificationSetting","updateNotificationUser","updateUserGroups","verifyUserEmail","import_codegenv2","import_wkt","import_codegenv2","import_wkt","file_dashboard_v1_product","file_dashboard_v1_notifications","file_dashboard_v1_product","file_common_v1_push_notifications","FailureMessage","NotificationsService","file_dashboard_v1_notifications","createNotificationSetting","NotificationsService","readNotificationSetting","updateNotificationSetting","deleteNotificationSetting","createNotificationGroup","readNotificationGroups","updateNotificationGroup","deleteNotificationGroup","createNotificationUser","readNotificationUsers","updateNotificationUser","deleteNotificationUser","createNotificationGroupUser","readNotificationGroupUsers","updateNotificationGroupUser","deleteNotificationGroupUser","createNotificationMessage","readNotificationMessages","getSentNotificationMessages","updateNotificationMessage","deleteNotificationMessage","createNotificationMessageJob","readNotificationMessageJobs","updateNotificationMessageJob","deleteNotificationMessageJob","readNotificationProducts","getNotificationUserSettings","verifyUserEmail","getUserGroups","updateUserGroups","getProjectedRecipientCount","public_api_PublicApiService_connectquery_exports","__export","addPublicOrderComment","applePayValidateMerchant","authorizeOneClickPayment","didBuyProduct","getAvailableCountForProduct","getNotificationSettings","getNotificationSettingsDetails","getOrder","getOrderForTestimonial","getOrderRetryUrl","getOrders","getPreOrderDetails","getPublicOrderDetails","getShopProducts","getTestimonialUploadUrl","isOneClickPaymentAvailable","notifyUserAboutProductAvailability","pushEvent","pushSendDeviceToken","shouldShopProducts","submitTestimonial","updateGlobalNotificationSettings","updateNotificationSettings","userPanelDeleteAccount","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetCourseDetails","userPanelGetFileDetails","userPanelGetProducts","userPanelGetTicketDetails","userPanelLogin","userPanelLoginWithCode","userPanelLogout","getOrder","PublicApiService","getOrders","getOrderRetryUrl","userPanelLogin","userPanelLoginWithCode","userPanelLogout","userPanelDeleteAccount","userPanelGetProducts","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetFileDetails","userPanelGetTicketDetails","userPanelGetCourseDetails","pushSendDeviceToken","pushEvent","shouldShopProducts","getShopProducts","didBuyProduct","getNotificationSettings","getNotificationSettingsDetails","updateGlobalNotificationSettings","updateNotificationSettings","getAvailableCountForProduct","isOneClickPaymentAvailable","getPreOrderDetails","applePayValidateMerchant","authorizeOneClickPayment","notifyUserAboutProductAvailability","getPublicOrderDetails","addPublicOrderComment","getOrderForTestimonial","submitTestimonial","getTestimonialUploadUrl","import_jsx_runtime","currentFinalTransportHost","finalTransport","rpcProvider","public_api_PublicApiService_connectquery_exports","notifications_NotificationsService_connectquery_exports","useQuery","uq","useMutation","um","customHost","getTransportHost","customHost","HOST","RpcProvider","children","transportHost","finalTransport","currentFinalTransportHost","input","init","__async","__spreadProps","__spreadValues","queryClient","import_class_variance_authority","import_radix_ui","import_jsx_runtime","buttonVariants","Button","_a","_b","className","variant","size","asChild","props","__objRest","Comp","__spreadValues","cn","import_jsx_runtime","Card","_a","_b","className","props","__objRest","__spreadValues","cn","CardHeader","CardTitle","CardDescription","CardContent","_a","_b","className","props","__objRest","__spreadValues","cn","import_jsx_runtime","Input","_a","_b","className","type","props","__objRest","__spreadValues","cn","React","import_input_otp","import_lucide_react","import_jsx_runtime","InputOTP","_a","_b","className","containerClassName","props","__objRest","__spreadValues","cn","InputOTPGroup","InputOTPSlot","index","inputOTPContext","char","hasFakeCaret","isActive","__spreadProps","InputOTPSeparator","import_input_otp","LabelPrimitive","import_jsx_runtime","Label","_a","_b","className","props","__objRest","__spreadValues","cn","import_jsx_runtime","LoadingIndicator","LoadingIndicator_default","config","allowedReturnOrigins","setPanelConfig","newConfig","__spreadValues","getPanelConfig","setProjectID","projectID","setTheme","theme","setLoginURL","loginURL","setHost","host","setAllowedReturnOrigins","origins","__spreadProps","getAllowedReturnOrigins","import_react","import_jsx_runtime","PanelContext","getPanelConfig","PanelProvider","children","RpcProvider","__spreadValues","usePanelConfig","RETURN_URL_PARAM","RETURN_URL_STORAGE_KEY","ACCESS_TOKEN_PARAM","getReturnURLFromSearch","search","raw","validateReturnURL","persistReturnURL","returnURL","readPersistedReturnURL","stored","isOriginAllowed","origin","allowedOrigins","allowed","allowedHost","originHost","u","getAllowedReturnOrigins","e","buildAccessTokenRedirect","accessToken","import_jsx_runtime","knownSiblings","getAllowedReturnOrigins","setAllowedReturnOrigins","LoginUserPanel","reveal","email","setEmail","loginUser","isLoginLoading","errMsg","isValidEmail","setIsValidEmail","emailValidation","input","handleInputChange","e","value","goToVerifyCode","onSubmit","cn","Card","CardHeader","CardTitle","CardDescription","CardContent","Label","Input","Button","LoadingIndicator_default","VerifyCodePanel","loginUserResponse","setLoginUserResponse","setResponseStatus","verifyCodeAsync","isVerifyLoading","useMutation","rpcProvider","code","setCode","isValidCode","setIsValidCode","isSubmitted","setIsSubmitted","retryIn","setRetryIn","codeValidation","login","__async","codeValue","verifyCodeResult","status","message","accessToken","returnURL","readPersistedReturnURL","buildAccessTokenRedirect","handleRetryInTime","intervalId","prevRetryIn","backToLoginComponent","onCodeSubmit","InputOTP","newValue","InputOTPGroup","InputOTPSlot","InputOTPSeparator","PanelLoginComponentWrapper","_a","_b","_c","_d","_e","_f","_g","_h","theme","allowedReturnOrigins","usePanelConfig","styles","activeScreen","setActiveScreen","parent","prevScreen","responseStatus","loginUserAsync","setErrMsg","queryReturnURL","getReturnURLFromSearch","persistReturnURL","existingToken","loginUserResult","PanelLogin","import_react","import_react","useUrlSearchParams","initialValue","params","setParams","urlParams","parsed","key","value","e","__spreadValues","updateParams","newParams","prev","updated","newUrl","handlePopState","SwitchPrimitive","import_jsx_runtime","Switch","_a","_b","className","props","__objRest","__spreadProps","__spreadValues","cn","import_react","import_jsx_runtime","PanelNotificationsComponent","notifications","setNotifications","Switch","checked","prevState","__spreadProps","__spreadValues","Label","PanelNotifications_default","import_lucide_react","import_jsx_runtime","Pagination","_a","_b","className","props","__objRest","__spreadValues","cn","PaginationContent","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","__spreadProps","PaginationNext","PaginationEllipsis","import_jsx_runtime","Skeleton","_a","_b","className","props","__objRest","__spreadValues","cn","import_react","import_jsx_runtime","formatDate","ts","formatAmount","amount","currency","statusLabel","statusColor","PanelOrderHistory","openOrderDetails","projectID","_a","_b","accessToken","offset","setOffset","limit","data","isFetching","useQuery","rpcProvider","orders","totalCount","currentPage","totalPages","handlePageChange","newOffset","_","i","Skeleton","order","Pagination","PaginationContent","PaginationItem","PaginationPrevious","PaginationLink","PaginationEllipsis","page","PaginationNext","PanelOrderHistory_default","import_react","import_jsx_runtime","formatDate","ts","statusLabel","statusColor","PanelPlansComponent","projectID","plans","setPlans","isLoading","setIsLoading","plan","_a","_b","PanelPlans_default","import_react","import_jsx_runtime","URL_REGEX","findURLIndices","text","match","replaceTextByIndices","originalText","replacements","result","lastIndex","b","startIndex","endIndex","replacementText","renderText","txt","urlIndices","el","import_protobuf","import_react","import_lucide_react","import_hls","import_lucide_react","import_react","mediaSessionPlay","mediaSessionPause","mediaSessionUpdateDurationAndPosition","duration","currentTime","startMediaSessionCoordinator","args","e","stopMediaSessionCoordinator","import_jsx_runtime","AudioPlayer","chapters","styles","updateCurrentTime","setCurrentTimeHandler","title","imageURL","uniqueProductID","onChapterChange","ref","PlayState","playState","setPlayState","mediaSessionPlay","mediaSessionPause","chapter","playChapter","currentTime","setCurrentTime","duration","setDuration","videoRef","hlsRef","timerRef","audioPlayerContainerRef","currentChapterRef","playWhenReady","setPlayWhenReady","isStarted","setIsStarted","isLoading","setIsLoading","isSafari","saveLastPlayedTime","timeInSeconds","_a","getLastPlayedTime","time","result","e","getLastSelectedChapterID","lastSelectedChapterID","setLastSelectedChapterID","chapterID","deleteMemoryChapter","setupObservers","lastPlayedTime","seekTo","play","playNextChapter","startMediaSessionCoordinator","details","pause","seekBy","startTimer","currentChapterIndex","updatePlayerDetails","stopTimer","mediaSessionUpdateDurationAndPosition","togglePlayState","seconds","newTime","toSecond","destroyPlayer","loadChapters","playURL","src","_b","Hls","stopMediaSessionCoordinator","calculateTime","secs","hours","minutes","returnedHours","returnedSeconds","showRangeProgress","rangeInput","barProgress","selectedTime","Button","LoadingIndicator_default","AudioPlayer_default","React","import_jsx_runtime","ProgressBar","progress","setProgress","timer","import_jsx_runtime","warn","message","args","error","PanelProductDetails","accessToken","product","styles","reveal","_a","_b","_c","_d","_e","productType","audioPlayerRef","filesRefAnimation","filesResponse","setFilesResponse","fileDetailsAsync","isFileLoading","useMutation","rpcProvider","audioPlayerSeekToHandler","audioResponse","setAudioResponse","audioDownloadURLs","setAudioDownloadURLs","isAvailableToDownloadInMobileApp","setIsAvailableToDownloadInMobileApp","isCourseLoading","setIsCourseLoading","courseError","setCourseError","audioDetailsAsync","isAudioLoading","audioDetailsDownloadURLsAsync","isAudioDownloadURLsLoading","courseDetailsAsync","selectedChapter","setSelectedChapter","chapters","setChapters","handleFileDownload","__async","filesResult","err","handleAudioDownload","audioResult","handleAudioURLsDownload","audioURLsResult","handleCourseRedirect","courseResult","e","audioChapters","mappedChapters","chapter","details","el","__spreadProps","__spreadValues","Button","LoadingIndicator_default","ProgressBar","index","AudioPlayer_default","handler","cn","PanelProductDetails_default","import_jsx_runtime","PanelProductGridComponent","accessToken","loginURL","styles","activeScreen","params","setParams","products","isProductsLoading","useQuery","rpcProvider","LoadingIndicator_default","productsList","ProductsComponent","PanelProductGrid_default","selectedProduct","setSelectedProduct","UserProductSchema","reveal","product","getProductTypeName","type","handleSelectedProduct","PanelProductDetails_default","index","renderText","Button","e","import_react","import_lucide_react","import_jsx_runtime","PanelProductHeaderComponent","activeScreen","setActiveScreen","setParams","styles","theme","logout","MobileMenu","SidebarMenu","PanelProductHeader_default","MobileButton","panelScreen","label","imageURL","Button","cn","SidebarButton","darkImageURL","isExpanded","sidebarExpandRef","setIsExpanded","CompanyLogo","SidebarSeparator","className","_a","import_lucide_react","import_jsx_runtime","PanelProfileComponent","email","logout","Button","PanelProfile_default","import_lucide_react","import_react","React","import_jsx_runtime","Textarea","_a","ref","_b","className","props","__objRest","__spreadValues","cn","import_jsx_runtime","StatusBadge","status","statusConfig","config","Icon","statusLabels","AddCommentForm","orderID","email","message","setMessage","addCommentMutation","useMutation","rpcProvider","e","__async","error","Label","Textarea","Button","formatDate","timestamp","formatCurrency","amount","currency","PublicOrderPageContent","initialEmail","onBack","accessToken","_a","_b","_c","_d","_e","_f","_g","_h","_i","theme","projectID","usePanelConfig","verifyEmail","setVerifyEmail","isVerifyDialogOpen","setIsVerifyDialogOpen","orderData","isLoading","refetch","useQuery","order","isVerified","handleVerifyEmail","styles","Card","CardContent","CardHeader","CardTitle","item","index","comment","Input","PublicOrderPage","props","__spreadValues","PublicOrderPage_default","import_jsx_runtime","PanelPage","_a","_b","_c","_d","_e","_f","_g","_h","projectID","theme","loginURL","usePanelConfig","accessToken","email","logoutUserAsync","useMutation","rpcProvider","logout","__async","panelParentRef","isScreen","value","params","setParams","useUrlSearchParams","activeScreen","setActiveScreen","handleOpenOrderDetails","orderID","handleBackToOrders","styles","queryReturnURL","getReturnURLFromSearch","persistReturnURL","returnURL","readPersistedReturnURL","buildAccessTokenRedirect","PanelProductHeader_default","PanelProductGrid_default","PanelNotifications_default","PanelPlans_default","PanelOrderHistory_default","PublicOrderPage_default","PanelProfile_default","PanelPage_default","import_protobuf","import_react_query","import_react","import_zod","import_zod","round","num","numberOfDecimals","formatCurrency","amount","currency","eventPayload","zod","sendAnalyticEvent","payload","sendGoogleAnalyticsEvent","sendPixelAnalyticsEvent","sendTikTokAnalyticsEvent","ga4Event","mapToGA4EcommerceEvent","e","_a","_b","_c","_d","totalValue","sum","item","items","round","ecommerce","eventName","__spreadValues","eventType","tiktokEvent","mapToTikTokEvent","contents","mapGooglePayConfiguration","args","_a","items","googlePayConfig","checkout","result","cartRequiresShipping","intents","method","formatCurrency","round","mapGooglePayDisplayItems","methods","deliveryMethod","couponCode","couponValue","displayItems","subtotalAmount","item","selectedDeliveryMethod","buildURL","projectID","path","HOST","isErr","x","Err","message","type","data","import_zustand","useCheckoutStore","set","state","__spreadProps","__spreadValues","numberOfProductsInCart","Bitsnap","addProductToCart","id","quantity","metadata","args","__async","projectID","getProjectID","err","getCheckoutMethods","__spreadValues","showCart","useCheckoutStore","hideCart","createPaymentURL","request","_a","_b","injectReferenceToRequestIfNeeded","getLocale","result","buildURL","payload","itemIds","Err","error","createCheckout","headers","path","HOST","getReferenceIfPossible","refLink","ref","DEFAULT_LOCALE","localeStorageKey","activeLocale","setLocale","locale","value","getLocale","_a","translate","key","english","polish","import_jsx_runtime","MARKETING_AGREEMENT_ID","CartProviderContext","bitsnapProjectID","setProjectID","projectID","setPanelConfig","setAllowedReturnOrigins","getProjectID","me","getNewHostIfExist","customHost","CartProvider","children","locale","queryClient","updateNumberOfProductsInCart","checkoutMethods","getCheckoutMethods","getProducts","args","__async","_a","_b","_c","products","getCheckout","productIds","product","params","getLocale","result","buildURL","payload","el","variant","resolveProductDetailsFromSingleProduct","useCartProvider","context","CartProvider_default","googlePayConfigSchema","zod","checkoutProduct","checkoutSchema","emptyCheckout","checkoutKey","value","addProducts","checkout","sendAnalyticEvent","saveCheckout","removeProductFromCheckout","ids","newCheckout","__spreadProps","__spreadValues","id","model","newHost","setCustomHost","PublicApiClient","HOST","e","googlePayConfig","resolveGooglePayConfiguration","isErr","PreOrderItemSchema","cartRequiresShipping","mappedPaymentRequest","mapGooglePayConfiguration","empty","Err","country","acc","couponCode","postalCode","deliveryMethod","email","mergedMetadata","key","paymentResponse","createPaymentURL","injectReferenceToRequestIfNeeded","_d","_e","_f","_g","_h","_i","_j","_k","_l","_m","_n","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","shippingName","metadata","ref","getReferenceIfPossible","GetPreOrderDetailsRequestSchema","AddressSchema","BillingAddressSchema","error","items","round","variantIndex","v","numberOfProductsInCart","useCheckoutStore","state","import_react_query","import_jsx_runtime","ApplePayButtonComponent","style","buttonType","colorType","items","onClick","checkIfApplePayIsAvailable","getApplePayPaymentRequest","completeApplePayPayment","setCountry","setCouponCodeIfPossible","setDeliveryMethod","setEmail","setPostalCode","clearCart","useCartProvider","isApplePayAvailable","expectedItems","el","beginSession","__async","sendAnalyticEvent","requiresShipping","session","__spreadValues","round","acc","item","apRequest","isErr","event","result","PublicApiClient","HOST","getProjectID","error","e","ApplePayButton","Wrapper","props","CartProvider_default","ApplePay_default","import_react","import_zod","import_react","import_react_dom","import_react","import_react","SelectPrimitive","import_lucide_react","import_jsx_runtime","Select","_a","props","__objRest","__spreadValues","SelectValue","_a","props","__objRest","__spreadValues","SelectTrigger","_b","className","size","children","__spreadProps","cn","SelectContent","position","align","SelectScrollUpButton","SelectScrollDownButton","SelectItem","_a","_b","className","children","props","__objRest","__spreadProps","__spreadValues","cn","SelectScrollUpButton","_a","_b","className","props","__objRest","__spreadProps","__spreadValues","cn","SelectScrollDownButton","import_jsx_runtime","CountrySelector","id","open","disabled","onToggle","onChange","selectedValue","countries","query","setQuery","filteredCountries","country","selectedCountry","el","Select","value","isOpen","SelectTrigger","cn","SelectValue","SelectContent","e","SelectItem","CountrySelector_default","import_react","import_lucide_react","import_react_slot","import_class_variance_authority","import_jsx_runtime","buttonGroupVariants","ButtonGroup","_a","_b","className","orientation","props","__objRest","__spreadValues","cn","import_jsx_runtime","SingleProduct","isNotAvailable","quantity","details","shouldUpdate","_a","cn","formatCurrency","QuantityComponent","Button","SingleProduct_default","className","quantityString","setQuantityString","quantityValue","setQuantityValue","setNewQuantity","newQuantity","parsedInt","increaseQuantity","decreaseQuantity","ButtonGroup","e","import_jsx_runtime","Skeleton","_a","_b","className","props","__objRest","__spreadValues","import_lucide_react","import_jsx_runtime","Spinner","_a","_b","className","props","__objRest","__spreadValues","cn","import_react_query","import_jsx_runtime","CartComponentContent","className","locale","_a","_b","_c","_d","_e","provider","useCartProvider","currentLocale","removeProduct","updateQuantity","setCountryAsync","clearCart","errMsg","setErrMsg","React","missingItemIds","setMissingItemIds","isCountryOpen","setIsCountryOpen","continueToCheckoutAsync","isContinueToCheckoutLoading","availableCountries","isApplePayAvailable","data","isLoading","refetch","countryData","refetchCountry","productsParent","products","isErr","countries","sumOfProducts","prev","curr","currency","isSomeProductDeliverable","product","selectedCountry","shouldUpdate","id","newQuantity","__async","continueToCheckout","sendAnalyticEvent","el","_f","e","response","translate","Skeleton","SingleProduct_default","formatCurrency","CountrySelector_default","newValue","ApplePay_default","GooglePay_default","Spinner","CartComponentContent_default","import_jsx_runtime","CartComponent","isVisible","shouldHide","locale","parent","translate","getLocale","CartComponentContent_default","WrapperCartComponent","props","CartProvider_default","__spreadValues","CartComponent_default","import_jsx_runtime","cartAddToCartSchema","zod","BitsnapCart","projectID","locale","children","onVisibleChange","className","numberOfProductsInCartOptions","isCartVisible","showCart","hideCart","numberOfProductsInCart","useCheckoutStore","sentPostMessageToIframe","msg","iframe","_a","sendAnalyticEvent","setProjectID","setLocale","getProjectID","args","__async","payload","methods","getCheckoutMethods","products","isErr","el","_b","_c","_d","_e","_f","e","result","handleAddingToCart","id","data","handleAddingSubscriptionToCart","event","setupEventListener","type","parsedParams","refLink","__spreadValues","CartComponent_default","BitsnapCart_default","import_button_react","import_react_query","import_jsx_runtime","GooglePayButtonComponent","items","style","buttonColor","buttonSizeMode","test","getGooglePayConfiguration","completeGooglePayPayment","setCountry","setCouponCodeIfPossible","setDeliveryMethod","setEmail","setPostalCode","clearCart","useCartProvider","googlePayConfiguration","el","__spreadProps","__spreadValues","completeGooglePayPaymentAsync","isPending","GooglePayButton","paymentData","__async","_a","_b","_c","_d","_e","sendAnalyticEvent","config","paymentRequest","result","isErr","e","Spinner","Wrapper","props","CartProvider_default","GooglePay_default","import_react","import_react_query","import_lucide_react","import_jsx_runtime","DEFAULT_TEXTS","import_lucide_react","import_jsx_runtime","NotificationHeader","projectName","projectLogo","projectLogoDark","description","className","onLogout","cn","Button","import_react","import_lucide_react","PopoverPrimitive","import_jsx_runtime","Popover","_a","props","__objRest","__spreadValues","PopoverTrigger","PopoverContent","_b","className","align","sideOffset","cn","import_lucide_react","import_jsx_runtime","HowOftenComponent","regularity","text","Popover","PopoverTrigger","e","PopoverContent","import_jsx_runtime","NotificationGroupsList","groups","isManaging","onToggle","onCheckAll","onUpdate","isUpdating","wasChanged","isUserGroupsUpdated","className","texts","_a","_b","_c","_d","_e","groupsParent","updateGroupsParent","hasNoSelection","group","hasUnchecked","content","cn","e","Switch","HowOftenComponent","Button","DEFAULT_TEXTS","Spinner","Card","CardHeader","CardTitle","CardContent","import_jsx_runtime","QRCodeSection","showQRCode","isManaging","className","texts","_a","_b","_c","_d","isBrowser","darkMode","getURL","Card","cn","CardHeader","CardTitle","DEFAULT_TEXTS","CardContent","HOST","import_react","import_react_phone_number_input","import_react","import_react_label","import_lucide_react","import_jsx_runtime","FormInput","submit","isLoading","errMsg","emailLack","warnMsg","isSubmited","agreementLack","showPhoneInput","agreementText","className","texts","_a","_b","_c","_d","_e","_f","_g","email","setEmail","phone","setPhone","isChecked","setIsChecked","parent","submitForm","e","cn","DEFAULT_TEXTS","Input","newVal","Button","Spinner","import_jsx_runtime","emailRegex","AddUserToGroups","groups","onToggle","onCheckAll","slug","showPhoneInput","agreementText","className","texts","isUpdating","wasChanged","onSuccess","_a","_b","errMsg","setErrMsg","warnMsg","setWarnMsg","isSubmited","setIsSubmited","agreementLack","setAgreementLack","emailLack","setEmailLack","createNotificationUserMutation","isCreateNotificationUserPending","useMutation","rpcProvider","validatePhoneNumber","phone","save","email","agreement","__async","newNotificationUser","el","failureMessage","FailureMessage","e","text","DEFAULT_TEXTS","cn","NotificationGroupsList","FormInput","import_react","import_react_label","import_lucide_react","import_use_debounce","import_lucide_react","import_react_dom","import_react","import_jsx_runtime","UnsubscribeDialog","open","onOpenChange","onConfirm","isDeleting","mounted","setMounted","handleBackdropClick","e","handleConfirm","cn","Button","import_react","import_jsx_runtime","ManageMyData","accessToken","slug","userID","className","texts","_a","_b","_c","_d","_e","parent","parentCard","deleteMyData","isDeleting","useMutation","rpcProvider","updateNotificationUser","isUpdating","userSettings","isLoading","useQuery","email","setEmail","phone","setPhone","isDataUpdated","setIsDataUpdated","push","setPush","isDialogOpen","setIsDialogOpen","details","deleteData","handleConfirmDelete","__async","updateData","debouncedUpdateData","_","setData","key","value","cn","DEFAULT_TEXTS","Skeleton","Card","CardHeader","CardTitle","CardContent","Switch","Button","Spinner","UnsubscribeDialog","import_react","import_lucide_react","import_react","DialogPrimitive","import_lucide_react","import_jsx_runtime","Dialog","_a","props","__objRest","__spreadValues","DialogPortal","_a","props","__objRest","__spreadValues","DialogOverlay","_a","_b","className","props","__objRest","__spreadValues","cn","DialogContent","children","showCloseButton","DialogPortal","__spreadProps","import_jsx_runtime","LoginScreen","slug","onSuccess","onError","className","isOpen","onClose","texts","_a","_b","_c","_d","_e","_f","_g","_h","_i","_j","_k","_l","parentContent","parentHeader","email","setEmail","code","setCode","isEmailSent","setIsEmailSent","error","setError","verifyUserEmail","isVerifying","useMutation","rpcProvider","handleSendEmail","e","__async","err","handleVerifyCode","value","response","handleResendEmail","handleChangeEmail","Dialog","DialogContent","Button","CardTitle","CardDescription","Label","InputOTP","InputOTPGroup","InputOTPSlot","Spinner","Input","import_react","import_jsx_runtime","reducer","state","action","__spreadProps","__spreadValues","group","_a","g","isDefaultOn","newGroupsWithIsOn","_b","_c","updatedGroups","updated","NotificationsComponentPublic","slugProp","userID","_productID","projectName","projectLogo","projectLogoDark","groups","isManaging","texts","showQRCode","showPhoneInput","hiddenGroupIds","className","parent","slug","getProjectID","updateUserGroups","isUpdating","useMutation","rpcProvider","userInfo","refetchAccessToken","UQ","groupsDownloaded","isGroupsDownloading","refetchGroups","useQuery","dispatch","newGroups","howOften","timeoutRef","preparedGroups","el","mergedTexts","DEFAULT_TEXTS","updateGroups","__async","toggleGroup","groupID","checkAllGroups","handleSettingsClick","handleCloseSettings","handleLogout","handleLoginSuccess","accessToken","e","isManagingEnabled","cn","Button","NotificationHeader","Spinner","NotificationGroupsList","ManageMyData","QRCodeSection","AddUserToGroups","id","userAlreadyExists","LoginScreen","Wrapper","productID","RpcProvider","NotificationsComponentPublic_default"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/checkout/ApplePay.tsx","../src/public.api.client.ts","../src/gen/proto/public/v1/public_api_pb.ts","../src/gen/proto/common/v1/address_pb.ts","../src/gen/proto/common/v1/gateway_pb.ts","../src/gen/proto/common/v1/push_notifications_pb.ts","../src/gen/proto/dashboard/v1/audiobooks_pb.ts","../src/panel/components/PanelLogin.tsx","../src/lib/utils.ts","../src/rpc-provider.tsx","../src/components/checkout/constants.ts","../src/gen/proto/dashboard/v1/notifications-NotificationsService_connectquery.ts","../src/gen/proto/dashboard/v1/notifications_pb.ts","../src/gen/proto/dashboard/v1/product_pb.ts","../src/gen/proto/public/v1/public_api-PublicApiService_connectquery.ts","../src/gen/proto/public/v1/returns-ReturnsService_connectquery.ts","../src/gen/proto/public/v1/returns_pb.ts","../src/gen/proto/common/v1/environment_pb.ts","../src/ui/button.tsx","../src/ui/card.tsx","../src/ui/input.tsx","../src/ui/input-otp.tsx","../src/ui/label.tsx","../src/panel/LoadingIndicator.tsx","../src/panel/config.ts","../src/panel/PanelProvider.tsx","../src/panel/return-url.ts","../src/panel/session-storage.ts","../src/panel/components/PanelPage.tsx","../src/panel/hooks/useUrlSearchParams.ts","../src/ui/switch.tsx","../src/panel/components/PanelNotifications.tsx","../src/ui/pagination.tsx","../src/ui/skeleton.tsx","../src/panel/components/PanelOrderHistory.tsx","../src/panel/components/PanelPlans.tsx","../src/panel/components/PanelProductGrid.tsx","../src/lib/render.text.tsx","../src/panel/components/PanelProductDetails.tsx","../src/panel/audio-player/AudioPlayer.tsx","../src/panel/audio-player/media.session.coordinator.ts","../src/panel/components/ProgressBar.tsx","../src/panel/components/PanelProductHeader.tsx","../src/panel/components/PanelProfile.tsx","../src/panel/components/PublicOrderPage.tsx","../src/ui/textarea.tsx","../src/components/checkout/CartProvider.tsx","../src/components/checkout/frontent.analytics.ts","../src/components/checkout/lib/round.number.ts","../src/components/checkout/google.pay.mapper.ts","../src/components/checkout/helper.methods.ts","../src/components/checkout/lib/err.ts","../src/components/checkout/state.ts","../src/components/checkout/methods.ts","../src/components/checkout/locale.ts","../src/components/checkout/BitsnapCart.tsx","../src/components/checkout/CartComponent.tsx","../src/components/checkout/appearance.context.tsx","../src/components/checkout/appearance.ts","../src/components/checkout/CartComponentContent.tsx","../src/components/checkout/CountrySelector.tsx","../src/ui/select.tsx","../src/components/checkout/SingleProduct.tsx","../src/ui/button-group.tsx","../src/components/checkout/ProductPrice.tsx","../src/components/checkout/Skeleton.tsx","../src/ui/spinner.tsx","../src/components/checkout/GooglePay.tsx","../src/components/notifications/NotificationsComponentPublic.tsx","../src/components/notifications/constants.tsx","../src/components/notifications/NotificationHeader.tsx","../src/components/notifications/NotificationGroupsList.tsx","../src/ui/popover.tsx","../src/components/notifications/HowOftenComponent.tsx","../src/components/notifications/QRCodeSection.tsx","../src/components/notifications/AddUserToGroups.tsx","../src/components/notifications/FormInput.tsx","../src/components/notifications/ManageMyData.tsx","../src/components/notifications/UnsubscribeDialog.tsx","../src/components/notifications/LoginScreen.tsx","../src/ui/dialog.tsx","../src/returns/BitsnapReturns.tsx"],"sourcesContent":["import \"./global.css\";\nimport \"./components/checkout/checkout.css\";\n\nexport * from \"./components\";\n","import ApplePayButton from \"apple-pay-button\";\nimport { PublicApiClient } from \"src/public.api.client\";\nimport CartProvider, { getProjectID, useCartProvider } from \"./CartProvider\";\nimport { HOST } from \"./constants\";\nimport { isErr } from \"./lib/err\";\nimport { round } from \"./lib/round.number\";\nimport { useQuery } from \"@tanstack/react-query\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\n\ntype AppleButtonType =\n | \"plain\"\n | \"add-money\"\n | \"book\"\n | \"buy\"\n | \"check-out\"\n | \"continue\"\n | \"contribute\"\n | \"donate\"\n | \"order\"\n | \"pay\"\n | \"reload\"\n | \"rent\"\n | \"set-up\"\n | \"subscribe\"\n | \"support\"\n | \"tip\"\n | \"top-up\";\ntype ColorType = \"black\" | \"white\" | \"white-outline\";\n\nexport type Props = {\n style?: {\n width?: string;\n height?: string;\n borderRadius?: string;\n padding?: string;\n boxSizing?: string;\n };\n buttonType?: AppleButtonType;\n colorType?: ColorType;\n items: {\n name: string;\n id: string;\n price: number;\n quantity: number;\n isDeliverable?: boolean;\n metadata?: { [key: string]: string | undefined };\n }[];\n onClick?: () => Promise<void>;\n};\n\nfunction ApplePayButtonComponent({\n style,\n buttonType,\n colorType,\n items,\n onClick,\n}: Props) {\n const {\n checkIfApplePayIsAvailable,\n getApplePayPaymentRequest,\n completeApplePayPayment,\n setCountry,\n setCouponCodeIfPossible,\n setDeliveryMethod,\n setEmail,\n setPostalCode,\n clearCart,\n } = useCartProvider();\n const { data: isApplePayAvailable } = useQuery({\n queryKey: [\"is-apple-pay-available\"],\n queryFn: checkIfApplePayIsAvailable,\n });\n if (isApplePayAvailable != true) {\n return null;\n }\n\n const expectedItems = items.map((el) => ({\n productID: el.id,\n quantity: el.quantity,\n metadata: el.metadata,\n }));\n\n async function beginSession() {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: items.map((el) => ({\n id: el.id,\n name: el.name,\n price: el.price,\n quantity: el.quantity,\n currency: \"PLN\",\n })),\n });\n const requiresShipping =\n items.find((el) => el.isDeliverable === true) != null;\n const session = new ApplePaySession(14, {\n countryCode: \"PL\",\n merchantCapabilities: [\"supports3DS\"],\n supportedNetworks: [\"visa\", \"masterCard\"],\n currencyCode: \"PLN\",\n total: {\n amount: `${round(\n items.reduce((acc, item) => acc + item.price * item.quantity, 0) /\n 100,\n 2\n )}`,\n label: \"Płatność za koszyk\",\n type: \"pending\",\n },\n lineItems: [\n ...items.map(\n (item) =>\n ({\n amount: `${round((item.price * item.quantity) / 100, 2)}`,\n label: item.name,\n type: \"final\",\n } as ApplePayJS.ApplePayLineItem)\n ),\n requiresShipping\n ? ({\n amount: `16.99`,\n type: \"pending\",\n label: \"Dostawa\",\n } as ApplePayJS.ApplePayLineItem)\n : undefined,\n ].filter((el) => el != null),\n ...(requiresShipping\n ? {\n shippingMethods: [],\n supportsCouponCode: true,\n requiredBillingContactFields: [\n \"name\",\n \"email\",\n \"postalAddress\",\n \"phone\",\n ],\n requiredShippingContactFields: [\n \"name\",\n \"email\",\n \"postalAddress\",\n \"phone\",\n ],\n }\n : {}),\n });\n await onClick?.();\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n if (isErr(apRequest)) {\n console.error(\"Error creating ApplePaySession:\", apRequest.error);\n return;\n }\n\n session.oncancel = (event) => {\n console.log(\"ApplePaySession cancelled\", event);\n };\n\n session.onvalidatemerchant = async (event) => {\n try {\n const result = await PublicApiClient.get(HOST).applePayValidateMerchant(\n {\n validationUrl: event.validationURL,\n projectId: getProjectID(),\n }\n );\n console.log(\"merchantSession\", result.merchantSession);\n if (result.merchantSession.length > 0) {\n console.log(\"completing merchant session\");\n session.completeMerchantValidation(\n JSON.parse(result.merchantSession)\n );\n } else {\n session.abort();\n }\n } catch (error) {\n session.abort;\n }\n };\n\n session.onshippingmethodselected = async (event) => {\n console.log(\"shipping method selected\", event);\n await setDeliveryMethod(event.shippingMethod.identifier);\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n console.log(\"apRequest\", apRequest);\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n session.completeShippingMethodSelection({\n newTotal: apRequest.total,\n newLineItems: apRequest.lineItems,\n newShippingMethods: apRequest.shippingMethods,\n });\n };\n session.onshippingcontactselected = async (event) => {\n try {\n if (event.shippingContact.countryCode != null) {\n await setCountry(event.shippingContact.countryCode);\n }\n if (event.shippingContact.postalCode != null) {\n await setPostalCode(event.shippingContact.postalCode);\n }\n if (event.shippingContact.phoneNumber != null) {\n await setEmail(event.shippingContact.emailAddress);\n }\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n console.log(\"apRequest\", apRequest);\n session.completeShippingContactSelection({\n newLineItems: apRequest.lineItems,\n newTotal: apRequest.total,\n newShippingMethods: apRequest.shippingMethods,\n });\n } catch (error) {\n console.log(\"shipping contact selected error\", error);\n session.abort();\n }\n };\n\n session.oncouponcodechanged = async (event) => {\n try {\n console.log(\"coupon code changed\", event);\n const result = await setCouponCodeIfPossible(event.couponCode);\n const apRequest = await getApplePayPaymentRequest({ expectedItems });\n console.log(\"apRequest\", apRequest);\n if (isErr(apRequest)) {\n session.abort();\n throw new Error(\"Failed to get Apple Pay payment request\");\n }\n\n session.completeCouponCodeChange({\n errors: isErr(result)\n ? [new ApplePayError(\"couponCodeInvalid\")]\n : undefined,\n newTotal: apRequest.total,\n newLineItems: apRequest.lineItems,\n newShippingMethods: apRequest.shippingMethods,\n });\n } catch (error) {\n console.log(\"coupon code changed error\", error);\n session.abort();\n }\n };\n\n session.onpaymentauthorized = async (event) => {\n try {\n const result = await completeApplePayPayment({\n token: event.payment.token,\n billingContact: event.payment.billingContact,\n shippingContact: event.payment.shippingContact,\n });\n if (isErr(result)) {\n console.log(\"apple pay error\", result);\n session.completePayment({\n status: ApplePaySession.STATUS_FAILURE,\n });\n return;\n }\n\n if (result.redirectURL) {\n setTimeout(() => {\n open(result.redirectURL, \"_self\");\n }, 2000);\n }\n session.completePayment({\n status: result.isSuccess\n ? ApplePaySession.STATUS_SUCCESS\n : ApplePaySession.STATUS_FAILURE,\n });\n\n result.isSuccess && clearCart();\n } catch (e) {\n session.completePayment({\n status: ApplePaySession.STATUS_FAILURE,\n });\n }\n // event.complete(ApplePaySession.STATUS_SUCCESS);\n };\n\n session.begin();\n }\n\n return (\n <ApplePayButton\n style={style}\n buttonStyle={colorType}\n type={buttonType}\n onClick={beginSession}\n />\n );\n}\n\nfunction Wrapper(props: Props) {\n return (\n <>\n <CartProvider>\n <ApplePayButtonComponent {...props} />\n </CartProvider>\n </>\n );\n}\nexport default Wrapper;\n","import type { Transport } from \"@connectrpc/connect\";\nimport { createClient, type Client } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { PublicApiService } from \"./gen/proto/public/v1/public_api_pb\";\n\nexport namespace PublicApiClient {\n export function get(host: string): Client<typeof PublicApiService> {\n return createClient(PublicApiService, getTransport(host));\n }\n\n const transports = new Map<string, Transport>();\n function getTransport(host: string): Transport {\n let transport = transports.get(host);\n if (transport == null) {\n transport = createConnectTransport({\n useBinaryFormat: true,\n baseUrl: host + \"/api/rpc\",\n });\n transports.set(host, transport);\n }\n return transport;\n }\n}\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Address, BillingAddress } from \"../../common/v1/address_pb\";\nimport { file_common_v1_address } from \"../../common/v1/address_pb\";\nimport type { Gateway } from \"../../common/v1/gateway_pb\";\nimport { file_common_v1_gateway } from \"../../common/v1/gateway_pb\";\nimport type { NotificationEvent, NotificationGroupHowOften, PushNotificationDeviceToken } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Audiobook as Audiobook$1 } from \"../../dashboard/v1/audiobooks_pb\";\nimport { file_dashboard_v1_audiobooks } from \"../../dashboard/v1/audiobooks_pb\";\nimport type { Empty, EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/public_api.proto.\n */\nexport const file_public_v1_public_api: GenFile = /*@__PURE__*/\n fileDesc(\"ChpwdWJsaWMvdjEvcHVibGljX2FwaS5wcm90bxINcHVibGljX2FwaS52MSI2Ch5HZXRBcHBTdG9yZUFjY291bnRUb2tlblJlcXVlc3QSFAoMYWNjZXNzX3Rva2VuGAEgASgJIjwKH0dldEFwcFN0b3JlQWNjb3VudFRva2VuUmVzcG9uc2USGQoRYXBwX2FjY291bnRfdG9rZW4YASABKAkiaQodVmVyaWZ5QXBwU3RvcmVQdXJjaGFzZVJlcXVlc3QSFAoMYWNjZXNzX3Rva2VuGAEgASgJEhoKEnNpZ25lZF90cmFuc2FjdGlv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haWxzUmVxdWVzdBosLnB1YmxpY19hcGkudjEuR2V0UHVibGljT3JkZXJEZXRhaWxzUmVzcG9uc2UScgoVQWRkUHVibGljT3JkZXJDb21tZW50EisucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXF1ZXN0GiwucHVibGljX2FwaS52MS5BZGRQdWJsaWNPcmRlckNvbW1lbnRSZXNwb25zZRJ1ChZHZXRPcmRlckZvclRlc3RpbW9uaWFsEiwucHVibGljX2FwaS52MS5HZXRPcmRlckZvclRlc3RpbW9uaWFsUmVxdWVzdBotLnB1YmxpY19hcGkudjEuR2V0T3JkZXJGb3JUZXN0aW1vbmlhbFJlc3BvbnNlEmYKEVN1Ym1pdFRlc3RpbW9uaWFsEicucHVibGljX2FwaS52MS5TdWJtaXRUZXN0aW1vbmlhbFJlcXVlc3QaKC5wdWJsaWNfYXBpLnYxLlN1Ym1pdFRlc3RpbW9uaWFsUmVzcG9uc2USeAoXR2V0VGVzdGltb25pYWxVcGxvYWRVcmwSLS5wdWJsaWNfYXBpLnYxLkdldFRlc3RpbW9uaWFsVXBsb2FkVXJsUmVxdWVzdBouLnB1YmxpY19hcGkudjEuR2V0VGVzdGltb25pYWxVcGxvYWRVcmxSZXNwb25zZWIGcHJvdG8z\", [file_common_v1_address, file_common_v1_gateway, file_common_v1_push_notifications, file_dashboard_v1_audiobooks, file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public_api.v1.GetAppStoreAccountTokenRequest\n */\nexport type GetAppStoreAccountTokenRequest = Message<\"public_api.v1.GetAppStoreAccountTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreAccountTokenRequest.\n * Use `create(GetAppStoreAccountTokenRequestSchema)` to create a new message.\n */\nexport const GetAppStoreAccountTokenRequestSchema: GenMessage<GetAppStoreAccountTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from message public_api.v1.GetAppStoreAccountTokenResponse\n */\nexport type GetAppStoreAccountTokenResponse = Message<\"public_api.v1.GetAppStoreAccountTokenResponse\"> & {\n /**\n * @generated from field: string app_account_token = 1;\n */\n appAccountToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreAccountTokenResponse.\n * Use `create(GetAppStoreAccountTokenResponseSchema)` to create a new message.\n */\nexport const GetAppStoreAccountTokenResponseSchema: GenMessage<GetAppStoreAccountTokenResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from message public_api.v1.VerifyAppStorePurchaseRequest\n */\nexport type VerifyAppStorePurchaseRequest = Message<\"public_api.v1.VerifyAppStorePurchaseRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string signed_transaction = 2;\n */\n signedTransaction: string;\n\n /**\n * @generated from field: string transaction_id = 3;\n */\n transactionId: string;\n};\n\n/**\n * Describes the message public_api.v1.VerifyAppStorePurchaseRequest.\n * Use `create(VerifyAppStorePurchaseRequestSchema)` to create a new message.\n */\nexport const VerifyAppStorePurchaseRequestSchema: GenMessage<VerifyAppStorePurchaseRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from message public_api.v1.VerifyAppStorePurchaseResponse\n */\nexport type VerifyAppStorePurchaseResponse = Message<\"public_api.v1.VerifyAppStorePurchaseResponse\"> & {\n /**\n * @generated from field: bool fulfilled = 1;\n */\n fulfilled: boolean;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string environment = 3;\n */\n environment: string;\n};\n\n/**\n * Describes the message public_api.v1.VerifyAppStorePurchaseResponse.\n * Use `create(VerifyAppStorePurchaseResponseSchema)` to create a new message.\n */\nexport const VerifyAppStorePurchaseResponseSchema: GenMessage<VerifyAppStorePurchaseResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsRequest\n */\nexport type GetAppStoreEntitlementsRequest = Message<\"public_api.v1.GetAppStoreEntitlementsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsRequest.\n * Use `create(GetAppStoreEntitlementsRequestSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsRequestSchema: GenMessage<GetAppStoreEntitlementsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 4);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsResponse\n */\nexport type GetAppStoreEntitlementsResponse = Message<\"public_api.v1.GetAppStoreEntitlementsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetAppStoreEntitlementsResponse.Entitlement entitlements = 1;\n */\n entitlements: GetAppStoreEntitlementsResponse_Entitlement[];\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsResponse.\n * Use `create(GetAppStoreEntitlementsResponseSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsResponseSchema: GenMessage<GetAppStoreEntitlementsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5);\n\n/**\n * @generated from message public_api.v1.GetAppStoreEntitlementsResponse.Entitlement\n */\nexport type GetAppStoreEntitlementsResponse_Entitlement = Message<\"public_api.v1.GetAppStoreEntitlementsResponse.Entitlement\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * @generated from field: string environment = 3;\n */\n environment: string;\n\n /**\n * @generated from field: string fulfillment_status = 4;\n */\n fulfillmentStatus: string;\n\n /**\n * @generated from field: string original_transaction_id = 5;\n */\n originalTransactionId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetAppStoreEntitlementsResponse.Entitlement.\n * Use `create(GetAppStoreEntitlementsResponse_EntitlementSchema)` to create a new message.\n */\nexport const GetAppStoreEntitlementsResponse_EntitlementSchema: GenMessage<GetAppStoreEntitlementsResponse_Entitlement> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5, 0);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesRequest\n */\nexport type RestoreAppStorePurchasesRequest = Message<\"public_api.v1.RestoreAppStorePurchasesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * JWS strings from expo-iap getAvailablePurchases. Each entry is verified on\n * the backend, matched against the customer's account token, and used to\n * refresh entitlements. Duplicate or empty JWS strings are skipped.\n *\n * @generated from field: repeated string signed_transactions = 2;\n */\n signedTransactions: string[];\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesRequest.\n * Use `create(RestoreAppStorePurchasesRequestSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesRequestSchema: GenMessage<RestoreAppStorePurchasesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 6);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesResponse\n */\nexport type RestoreAppStorePurchasesResponse = Message<\"public_api.v1.RestoreAppStorePurchasesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct products = 1;\n */\n products: RestoreAppStorePurchasesResponse_RestoredProduct[];\n\n /**\n * True when at least one transaction came back as family-shared. The\n * customer's existing library is preserved; an ops review row is recorded.\n *\n * @generated from field: bool family_sharing_review_required = 2;\n */\n familySharingReviewRequired: boolean;\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesResponse.\n * Use `create(RestoreAppStorePurchasesResponseSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesResponseSchema: GenMessage<RestoreAppStorePurchasesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7);\n\n/**\n * @generated from message public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct\n */\nexport type RestoreAppStorePurchasesResponse_RestoredProduct = Message<\"public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string original_transaction_id = 2;\n */\n originalTransactionId: string;\n\n /**\n * \"active\" | \"revoked\" | \"skipped\" | \"rejected\"\n *\n * @generated from field: string status = 3;\n */\n status: string;\n\n /**\n * Populated when status is \"rejected\" or \"skipped\" so the caller can show\n * actionable UI (signature mismatch, family-shared ownership, owner\n * mismatch, duplicate empty JWS, etc).\n *\n * @generated from field: string reason = 4;\n */\n reason: string;\n\n /**\n * @generated from field: bool fulfilled = 5;\n */\n fulfilled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.RestoreAppStorePurchasesResponse.RestoredProduct.\n * Use `create(RestoreAppStorePurchasesResponse_RestoredProductSchema)` to create a new message.\n */\nexport const RestoreAppStorePurchasesResponse_RestoredProductSchema: GenMessage<RestoreAppStorePurchasesResponse_RestoredProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7, 0);\n\n/**\n * @generated from message public_api.v1.ClearAppStoreAccountTokenRequest\n */\nexport type ClearAppStoreAccountTokenRequest = Message<\"public_api.v1.ClearAppStoreAccountTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.ClearAppStoreAccountTokenRequest.\n * Use `create(ClearAppStoreAccountTokenRequestSchema)` to create a new message.\n */\nexport const ClearAppStoreAccountTokenRequestSchema: GenMessage<ClearAppStoreAccountTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 8);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogRequest\n */\nexport type GetStoreKitCatalogRequest = Message<\"public_api.v1.GetStoreKitCatalogRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogRequest.\n * Use `create(GetStoreKitCatalogRequestSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogRequestSchema: GenMessage<GetStoreKitCatalogRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 9);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogResponse\n */\nexport type GetStoreKitCatalogResponse = Message<\"public_api.v1.GetStoreKitCatalogResponse\"> & {\n /**\n * Mirrors the DIRECT_STOREKIT_PAYWALL_ENABLED flag so the mobile client can\n * decide whether to surface the direct StoreKit paywall or fall back to\n * RevenueCat. The catalog itself is gated by DIRECT_STOREKIT_ENABLED at\n * the route level.\n *\n * @generated from field: bool paywall_enabled = 1;\n */\n paywallEnabled: boolean;\n\n /**\n * @generated from field: repeated public_api.v1.GetStoreKitCatalogResponse.Product products = 2;\n */\n products: GetStoreKitCatalogResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogResponse.\n * Use `create(GetStoreKitCatalogResponseSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogResponseSchema: GenMessage<GetStoreKitCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10);\n\n/**\n * @generated from message public_api.v1.GetStoreKitCatalogResponse.Product\n */\nexport type GetStoreKitCatalogResponse_Product = Message<\"public_api.v1.GetStoreKitCatalogResponse.Product\"> & {\n /**\n * @generated from field: string store_product_id = 1;\n */\n storeProductId: string;\n\n /**\n * @generated from field: string internal_product_id = 2;\n */\n internalProductId: string;\n\n /**\n * \"audiobook\" | \"ebook\"\n *\n * @generated from field: string kind = 3;\n */\n kind: string;\n\n /**\n * @generated from field: string display_name = 4;\n */\n displayName: string;\n\n /**\n * @generated from field: string description = 5;\n */\n description: string;\n};\n\n/**\n * Describes the message public_api.v1.GetStoreKitCatalogResponse.Product.\n * Use `create(GetStoreKitCatalogResponse_ProductSchema)` to create a new message.\n */\nexport const GetStoreKitCatalogResponse_ProductSchema: GenMessage<GetStoreKitCatalogResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsRequest\n */\nexport type UserPanelGetCourseDetailsRequest = Message<\"public_api.v1.UserPanelGetCourseDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsRequest.\n * Use `create(UserPanelGetCourseDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsRequestSchema: GenMessage<UserPanelGetCourseDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 11);\n\n/**\n * @generated from message public_api.v1.UserPanelGetCourseDetailsResponse\n */\nexport type UserPanelGetCourseDetailsResponse = Message<\"public_api.v1.UserPanelGetCourseDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetCourseDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: string redirect_url = 1;\n */\n value: string;\n case: \"redirectUrl\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetCourseDetailsResponse.\n * Use `create(UserPanelGetCourseDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetCourseDetailsResponseSchema: GenMessage<UserPanelGetCourseDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 12);\n\n/**\n * @generated from message public_api.v1.GetOrdersRequest\n */\nexport type GetOrdersRequest = Message<\"public_api.v1.GetOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string access_token = 2;\n */\n accessToken: string;\n\n /**\n * @generated from field: optional int32 limit = 3;\n */\n limit?: number;\n\n /**\n * @generated from field: optional int32 offset = 4;\n */\n offset?: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersRequest.\n * Use `create(GetOrdersRequestSchema)` to create a new message.\n */\nexport const GetOrdersRequestSchema: GenMessage<GetOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 13);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse\n */\nexport type GetOrdersResponse = Message<\"public_api.v1.GetOrdersResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetOrdersResponse.OrderSummary orders = 1;\n */\n orders: GetOrdersResponse_OrderSummary[];\n\n /**\n * @generated from field: int32 total_count = 2;\n */\n totalCount: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.\n * Use `create(GetOrdersResponseSchema)` to create a new message.\n */\nexport const GetOrdersResponseSchema: GenMessage<GetOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14);\n\n/**\n * @generated from message public_api.v1.GetOrdersResponse.OrderSummary\n */\nexport type GetOrdersResponse_OrderSummary = Message<\"public_api.v1.GetOrdersResponse.OrderSummary\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * @generated from field: int32 total_amount = 3;\n */\n totalAmount: number;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: string customer_name = 6;\n */\n customerName: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrdersResponse.OrderSummary.\n * Use `create(GetOrdersResponse_OrderSummarySchema)` to create a new message.\n */\nexport const GetOrdersResponse_OrderSummarySchema: GenMessage<GetOrdersResponse_OrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14, 0);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableRequest\n */\nexport type IsOneClickPaymentAvailableRequest = Message<\"public_api.v1.IsOneClickPaymentAvailableRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableRequest.\n * Use `create(IsOneClickPaymentAvailableRequestSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableRequestSchema: GenMessage<IsOneClickPaymentAvailableRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse\n */\nexport type IsOneClickPaymentAvailableResponse = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse\"> & {\n /**\n * @generated from field: bool inpost_pay = 1;\n */\n inpostPay: boolean;\n\n /**\n * @generated from field: bool apple_pay = 2;\n */\n applePay: boolean;\n\n /**\n * @generated from field: bool google_pay = 3;\n */\n googlePay: boolean;\n\n /**\n * @generated from field: optional public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig google_pay_config = 4;\n */\n googlePayConfig?: IsOneClickPaymentAvailableResponse_GooglePayConfig;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.\n * Use `create(IsOneClickPaymentAvailableResponseSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponseSchema: GenMessage<IsOneClickPaymentAvailableResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16);\n\n/**\n * @generated from message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\n */\nexport type IsOneClickPaymentAvailableResponse_GooglePayConfig = Message<\"public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig\"> & {\n /**\n * @generated from field: string merchant_id = 1;\n */\n merchantId: string;\n\n /**\n * @generated from field: string merchant_name = 2;\n */\n merchantName: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: string gateway_merchant_id = 4;\n */\n gatewayMerchantId: string;\n};\n\n/**\n * Describes the message public_api.v1.IsOneClickPaymentAvailableResponse.GooglePayConfig.\n * Use `create(IsOneClickPaymentAvailableResponse_GooglePayConfigSchema)` to create a new message.\n */\nexport const IsOneClickPaymentAvailableResponse_GooglePayConfigSchema: GenMessage<IsOneClickPaymentAvailableResponse_GooglePayConfig> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentRequest\n */\nexport type OneClickAuthorizePaymentRequest = Message<\"public_api.v1.OneClickAuthorizePaymentRequest\"> & {\n /**\n * @generated from field: public_api.v1.OneClickAuthorizePaymentRequest.Gateway gateway = 1;\n */\n gateway: OneClickAuthorizePaymentRequest_Gateway;\n\n /**\n * @generated from field: string paymentData = 2;\n */\n paymentData: string;\n\n /**\n * @generated from field: string paymentMethod = 3;\n */\n paymentMethod: string;\n\n /**\n * @generated from field: string transactionIdentifier = 4;\n */\n transactionIdentifier: string;\n\n /**\n * @generated from field: public_api.v1.GetPreOrderDetailsRequest order = 5;\n */\n order?: GetPreOrderDetailsRequest;\n\n /**\n * @generated from field: optional common.v1.Address shipping_address = 6;\n */\n shippingAddress?: Address;\n\n /**\n * @generated from field: optional common.v1.BillingAddress billing_address = 7;\n */\n billingAddress?: BillingAddress;\n\n /**\n * @generated from field: optional string metadata = 8;\n */\n metadata?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentRequest.\n * Use `create(OneClickAuthorizePaymentRequestSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentRequestSchema: GenMessage<OneClickAuthorizePaymentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 17);\n\n/**\n * @generated from enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway\n */\nexport enum OneClickAuthorizePaymentRequest_Gateway {\n /**\n * @generated from enum value: APPLE_PAY = 0;\n */\n APPLE_PAY = 0,\n\n /**\n * @generated from enum value: GOOGLE_PAY = 1;\n */\n GOOGLE_PAY = 1,\n}\n\n/**\n * Describes the enum public_api.v1.OneClickAuthorizePaymentRequest.Gateway.\n */\nexport const OneClickAuthorizePaymentRequest_GatewaySchema: GenEnum<OneClickAuthorizePaymentRequest_Gateway> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 17, 0);\n\n/**\n * @generated from message public_api.v1.OneClickAuthorizePaymentResponse\n */\nexport type OneClickAuthorizePaymentResponse = Message<\"public_api.v1.OneClickAuthorizePaymentResponse\"> & {\n /**\n * @generated from field: bool is_success = 1;\n */\n isSuccess: boolean;\n\n /**\n * @generated from field: string redirect_url = 2;\n */\n redirectUrl: string;\n\n /**\n * @generated from field: string transaction_id = 3;\n */\n transactionId: string;\n\n /**\n * @generated from field: optional string apple_pay_tracking_url = 4;\n */\n applePayTrackingUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.OneClickAuthorizePaymentResponse.\n * Use `create(OneClickAuthorizePaymentResponseSchema)` to create a new message.\n */\nexport const OneClickAuthorizePaymentResponseSchema: GenMessage<OneClickAuthorizePaymentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 18);\n\n/**\n * @generated from message public_api.v1.PreOrderItem\n */\nexport type PreOrderItem = Message<\"public_api.v1.PreOrderItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.PreOrderItem.\n * Use `create(PreOrderItemSchema)` to create a new message.\n */\nexport const PreOrderItemSchema: GenMessage<PreOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsRequest\n */\nexport type GetPreOrderDetailsRequest = Message<\"public_api.v1.GetPreOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.PreOrderItem items = 2;\n */\n items: PreOrderItem[];\n\n /**\n * @generated from field: optional string country_code = 3;\n */\n countryCode?: string;\n\n /**\n * @generated from field: optional string post_code = 4;\n */\n postCode?: string;\n\n /**\n * We can check if coupon code is available.\n *\n * @generated from field: optional string couponCode = 5;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string email = 6;\n */\n email?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 7;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional string phone = 8;\n */\n phone?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsRequest.\n * Use `create(GetPreOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsRequestSchema: GenMessage<GetPreOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 20);\n\n/**\n * @generated from message public_api.v1.DeliveryMethod\n */\nexport type DeliveryMethod = Message<\"public_api.v1.DeliveryMethod\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 4;\n */\n description?: string;\n\n /**\n * @generated from field: optional int32 min_days = 5;\n */\n minDays?: number;\n\n /**\n * @generated from field: optional int32 max_days = 6;\n */\n maxDays?: number;\n};\n\n/**\n * Describes the message public_api.v1.DeliveryMethod.\n * Use `create(DeliveryMethodSchema)` to create a new message.\n */\nexport const DeliveryMethodSchema: GenMessage<DeliveryMethod> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 21);\n\n/**\n * @generated from message public_api.v1.GetPreOrderDetailsResponse\n */\nexport type GetPreOrderDetailsResponse = Message<\"public_api.v1.GetPreOrderDetailsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.DeliveryMethod methods = 1;\n */\n methods: DeliveryMethod[];\n\n /**\n * @generated from field: optional string couponCode = 2;\n */\n couponCode?: string;\n\n /**\n * @generated from field: optional string selected_delivery_method = 3;\n */\n selectedDeliveryMethod?: string;\n\n /**\n * @generated from field: optional int32 total_amount = 4;\n */\n totalAmount?: number;\n\n /**\n * @generated from field: optional int32 coupon_value = 5;\n */\n couponValue?: number;\n\n /**\n * Mainly use for Google Pay\n *\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: string country = 7;\n */\n country: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPreOrderDetailsResponse.\n * Use `create(GetPreOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPreOrderDetailsResponseSchema: GenMessage<GetPreOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 22);\n\n/**\n * @generated from message public_api.v1.NotifyUserAboutProductAvailabilityRequest\n */\nexport type NotifyUserAboutProductAvailabilityRequest = Message<\"public_api.v1.NotifyUserAboutProductAvailabilityRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message public_api.v1.NotifyUserAboutProductAvailabilityRequest.\n * Use `create(NotifyUserAboutProductAvailabilityRequestSchema)` to create a new message.\n */\nexport const NotifyUserAboutProductAvailabilityRequestSchema: GenMessage<NotifyUserAboutProductAvailabilityRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 23);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantRequest\n */\nexport type ApplePayValidateMerchantRequest = Message<\"public_api.v1.ApplePayValidateMerchantRequest\"> & {\n /**\n * @generated from field: string validation_url = 1;\n */\n validationUrl: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantRequest.\n * Use `create(ApplePayValidateMerchantRequestSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantRequestSchema: GenMessage<ApplePayValidateMerchantRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 24);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantResponse\n */\nexport type ApplePayValidateMerchantResponse = Message<\"public_api.v1.ApplePayValidateMerchantResponse\"> & {\n /**\n * @generated from field: string merchant_session = 1;\n */\n merchantSession: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantResponse.\n * Use `create(ApplePayValidateMerchantResponseSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantResponseSchema: GenMessage<ApplePayValidateMerchantResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 25);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductRequest\n */\nexport type GetAvailableCountForProductRequest = Message<\"public_api.v1.GetAvailableCountForProductRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string all_variants = 2;\n */\n allVariants: string[];\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductRequest.\n * Use `create(GetAvailableCountForProductRequestSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductRequestSchema: GenMessage<GetAvailableCountForProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 26);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse\n */\nexport type GetAvailableCountForProductResponse = Message<\"public_api.v1.GetAvailableCountForProductResponse\"> & {\n /**\n * @generated from field: map<string, public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct> available_counts = 1;\n */\n availableCounts: { [key: string]: GetAvailableCountForProductResponse_AvailableCountForProduct };\n\n /**\n * @generated from field: optional public_api.v1.GetAvailableCountForProductResponse.Error error = 2;\n */\n error?: GetAvailableCountForProductResponse_Error;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.\n * Use `create(GetAvailableCountForProductResponseSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponseSchema: GenMessage<GetAvailableCountForProductResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\n */\nexport type GetAvailableCountForProductResponse_AvailableCountForProduct = Message<\"public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\"> & {\n /**\n * @generated from field: int32 available_quantity_to_order = 1;\n */\n availableQuantityToOrder: number;\n\n /**\n * @generated from field: bool can_back = 2;\n */\n canBack: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct.\n * Use `create(GetAvailableCountForProductResponse_AvailableCountForProductSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponse_AvailableCountForProductSchema: GenMessage<GetAvailableCountForProductResponse_AvailableCountForProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 27, 0);\n\n/**\n * @generated from enum public_api.v1.GetAvailableCountForProductResponse.Error\n */\nexport enum GetAvailableCountForProductResponse_Error {\n /**\n * @generated from enum value: ERROR_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: ERROR_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE = 2;\n */\n PRODUCT_NOT_AVAILABLE = 2,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3;\n */\n PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3,\n}\n\n/**\n * Describes the enum public_api.v1.GetAvailableCountForProductResponse.Error.\n */\nexport const GetAvailableCountForProductResponse_ErrorSchema: GenEnum<GetAvailableCountForProductResponse_Error> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 27, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelDeleteAccountRequest\n */\nexport type UserPanelDeleteAccountRequest = Message<\"public_api.v1.UserPanelDeleteAccountRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelDeleteAccountRequest.\n * Use `create(UserPanelDeleteAccountRequestSchema)` to create a new message.\n */\nexport const UserPanelDeleteAccountRequestSchema: GenMessage<UserPanelDeleteAccountRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 28);\n\n/**\n * @generated from message public_api.v1.DidBuyProductRequest\n */\nexport type DidBuyProductRequest = Message<\"public_api.v1.DidBuyProductRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n};\n\n/**\n * Describes the message public_api.v1.DidBuyProductRequest.\n * Use `create(DidBuyProductRequestSchema)` to create a new message.\n */\nexport const DidBuyProductRequestSchema: GenMessage<DidBuyProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 29);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest\n */\nexport type UpdateNotificationSettingsRequest = Message<\"public_api.v1.UpdateNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.UpdateNotificationSettingsRequest.Group modifications = 3;\n */\n modifications: UpdateNotificationSettingsRequest_Group[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 4;\n */\n enabledMethods: NotificationMethod[];\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.\n * Use `create(UpdateNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequestSchema: GenMessage<UpdateNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest.Group\n */\nexport type UpdateNotificationSettingsRequest_Group = Message<\"public_api.v1.UpdateNotificationSettingsRequest.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: bool enabled = 2;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.Group.\n * Use `create(UpdateNotificationSettingsRequest_GroupSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequest_GroupSchema: GenMessage<UpdateNotificationSettingsRequest_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 30, 0);\n\n/**\n * @generated from message public_api.v1.UpdateGlobalNotificationSettingsRequest\n */\nexport type UpdateGlobalNotificationSettingsRequest = Message<\"public_api.v1.UpdateGlobalNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateGlobalNotificationSettingsRequest.\n * Use `create(UpdateGlobalNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateGlobalNotificationSettingsRequestSchema: GenMessage<UpdateGlobalNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 31);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsRequest\n */\nexport type GetNotificationSettingsDetailsRequest = Message<\"public_api.v1.GetNotificationSettingsDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsRequest.\n * Use `create(GetNotificationSettingsDetailsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsRequestSchema: GenMessage<GetNotificationSettingsDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 32);\n\n/**\n * @generated from message public_api.v1.NotificationGroup\n */\nexport type NotificationGroup = Message<\"public_api.v1.NotificationGroup\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool enabled = 4;\n */\n enabled: boolean;\n\n /**\n * @generated from field: common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message public_api.v1.NotificationGroup.\n * Use `create(NotificationGroupSchema)` to create a new message.\n */\nexport const NotificationGroupSchema: GenMessage<NotificationGroup> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 33);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsResponse\n */\nexport type GetNotificationSettingsDetailsResponse = Message<\"public_api.v1.GetNotificationSettingsDetailsResponse\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod available_methods = 4;\n */\n availableMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 5;\n */\n enabledMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationGroup groups = 6;\n */\n groups: NotificationGroup[];\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsResponse.\n * Use `create(GetNotificationSettingsDetailsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsResponseSchema: GenMessage<GetNotificationSettingsDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 34);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsRequest\n */\nexport type GetNotificationSettingsRequest = Message<\"public_api.v1.GetNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool all = 2;\n */\n all: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsRequest.\n * Use `create(GetNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsRequestSchema: GenMessage<GetNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 35);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse\n */\nexport type GetNotificationSettingsResponse = Message<\"public_api.v1.GetNotificationSettingsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetNotificationSettingsResponse.Project projects = 1;\n */\n projects: GetNotificationSettingsResponse_Project[];\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.\n * Use `create(GetNotificationSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponseSchema: GenMessage<GetNotificationSettingsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 36);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse.Project\n */\nexport type GetNotificationSettingsResponse_Project = Message<\"public_api.v1.GetNotificationSettingsResponse.Project\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: public_api.v1.GetNotificationSettingsResponse.Status status = 3;\n */\n status: GetNotificationSettingsResponse_Status;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 4;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.Project.\n * Use `create(GetNotificationSettingsResponse_ProjectSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponse_ProjectSchema: GenMessage<GetNotificationSettingsResponse_Project> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 36, 0);\n\n/**\n * @generated from enum public_api.v1.GetNotificationSettingsResponse.Status\n */\nexport enum GetNotificationSettingsResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * @generated from enum value: STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n}\n\n/**\n * Describes the enum public_api.v1.GetNotificationSettingsResponse.Status.\n */\nexport const GetNotificationSettingsResponse_StatusSchema: GenEnum<GetNotificationSettingsResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 36, 0);\n\n/**\n * @generated from message public_api.v1.GetNotificationHistoryRequest\n */\nexport type GetNotificationHistoryRequest = Message<\"public_api.v1.GetNotificationHistoryRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: optional string project_id = 2;\n */\n projectId?: string;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod methods = 3;\n */\n methods: NotificationMethod[];\n\n /**\n * @generated from field: int32 page_size = 4;\n */\n pageSize: number;\n\n /**\n * @generated from field: optional string page_token = 5;\n */\n pageToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationHistoryRequest.\n * Use `create(GetNotificationHistoryRequestSchema)` to create a new message.\n */\nexport const GetNotificationHistoryRequestSchema: GenMessage<GetNotificationHistoryRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 37);\n\n/**\n * @generated from message public_api.v1.NotificationHistoryItem\n */\nexport type NotificationHistoryItem = Message<\"public_api.v1.NotificationHistoryItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string notification_id = 2;\n */\n notificationId: string;\n\n /**\n * @generated from field: public_api.v1.NotificationMethod method = 3;\n */\n method: NotificationMethod;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 4;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string title = 5;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 6;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string content = 7;\n */\n content?: string;\n\n /**\n * @generated from field: optional string image_url = 8;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 10;\n */\n openUrl?: string;\n\n /**\n * @generated from field: public_api.v1.NotificationHistoryItem.Sender sender = 9;\n */\n sender?: NotificationHistoryItem_Sender;\n};\n\n/**\n * Describes the message public_api.v1.NotificationHistoryItem.\n * Use `create(NotificationHistoryItemSchema)` to create a new message.\n */\nexport const NotificationHistoryItemSchema: GenMessage<NotificationHistoryItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 38);\n\n/**\n * @generated from message public_api.v1.NotificationHistoryItem.Sender\n */\nexport type NotificationHistoryItem_Sender = Message<\"public_api.v1.NotificationHistoryItem.Sender\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string display_name = 2;\n */\n displayName: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.NotificationHistoryItem.Sender.\n * Use `create(NotificationHistoryItem_SenderSchema)` to create a new message.\n */\nexport const NotificationHistoryItem_SenderSchema: GenMessage<NotificationHistoryItem_Sender> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 38, 0);\n\n/**\n * @generated from message public_api.v1.GetNotificationHistoryResponse\n */\nexport type GetNotificationHistoryResponse = Message<\"public_api.v1.GetNotificationHistoryResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.NotificationHistoryItem notifications = 1;\n */\n notifications: NotificationHistoryItem[];\n\n /**\n * @generated from field: optional string next_page_token = 2;\n */\n nextPageToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationHistoryResponse.\n * Use `create(GetNotificationHistoryResponseSchema)` to create a new message.\n */\nexport const GetNotificationHistoryResponseSchema: GenMessage<GetNotificationHistoryResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 39);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesRequest\n */\nexport type UserPanelPushGetAvailableCompaniesRequest = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesRequest.\n * Use `create(UserPanelPushGetAvailableCompaniesRequestSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesRequestSchema: GenMessage<UserPanelPushGetAvailableCompaniesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 40);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse\n */\nexport type UserPanelPushGetAvailableCompaniesResponse = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company companies = 1;\n */\n companies: UserPanelPushGetAvailableCompaniesResponse_Company[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.\n * Use `create(UserPanelPushGetAvailableCompaniesResponseSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponseSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Group = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string how_often = 4;\n */\n howOften?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_GroupSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_GroupSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Company = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group groups = 3;\n */\n groups: UserPanelPushGetAvailableCompaniesResponse_Group[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_CompanySchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_CompanySchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Company> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 41, 1);\n\n/**\n * @generated from message public_api.v1.ShouldShopProductsResponse\n */\nexport type ShouldShopProductsResponse = Message<\"public_api.v1.ShouldShopProductsResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShopProductsResponse.\n * Use `create(ShouldShopProductsResponseSchema)` to create a new message.\n */\nexport const ShouldShopProductsResponseSchema: GenMessage<ShouldShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 42);\n\n/**\n * @generated from message public_api.v1.ShouldShowGuestCatalogResponse\n */\nexport type ShouldShowGuestCatalogResponse = Message<\"public_api.v1.ShouldShowGuestCatalogResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShowGuestCatalogResponse.\n * Use `create(ShouldShowGuestCatalogResponseSchema)` to create a new message.\n */\nexport const ShouldShowGuestCatalogResponseSchema: GenMessage<ShouldShowGuestCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 43);\n\n/**\n * @generated from message public_api.v1.GuestCatalogProduct\n */\nexport type GuestCatalogProduct = Message<\"public_api.v1.GuestCatalogProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string cover_image_url = 3;\n */\n coverImageUrl: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 4;\n */\n productType: UserProductType;\n};\n\n/**\n * Describes the message public_api.v1.GuestCatalogProduct.\n * Use `create(GuestCatalogProductSchema)` to create a new message.\n */\nexport const GuestCatalogProductSchema: GenMessage<GuestCatalogProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 44);\n\n/**\n * @generated from message public_api.v1.GetGuestCatalogResponse\n */\nexport type GetGuestCatalogResponse = Message<\"public_api.v1.GetGuestCatalogResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GuestCatalogProduct products = 1;\n */\n products: GuestCatalogProduct[];\n};\n\n/**\n * Describes the message public_api.v1.GetGuestCatalogResponse.\n * Use `create(GetGuestCatalogResponseSchema)` to create a new message.\n */\nexport const GetGuestCatalogResponseSchema: GenMessage<GetGuestCatalogResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 45);\n\n/**\n * @generated from message public_api.v1.UserPanelResolveProductAccessRequest\n */\nexport type UserPanelResolveProductAccessRequest = Message<\"public_api.v1.UserPanelResolveProductAccessRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 3;\n */\n productType: UserProductType;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelResolveProductAccessRequest.\n * Use `create(UserPanelResolveProductAccessRequestSchema)` to create a new message.\n */\nexport const UserPanelResolveProductAccessRequestSchema: GenMessage<UserPanelResolveProductAccessRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 46);\n\n/**\n * @generated from message public_api.v1.UserPanelResolveProductAccessResponse\n */\nexport type UserPanelResolveProductAccessResponse = Message<\"public_api.v1.UserPanelResolveProductAccessResponse\"> & {\n /**\n * @generated from field: public_api.v1.UserPanelResolveProductAccessResponse.Status status = 1;\n */\n status: UserPanelResolveProductAccessResponse_Status;\n\n /**\n * @generated from field: optional string access_id = 2;\n */\n accessId?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelResolveProductAccessResponse.\n * Use `create(UserPanelResolveProductAccessResponseSchema)` to create a new message.\n */\nexport const UserPanelResolveProductAccessResponseSchema: GenMessage<UserPanelResolveProductAccessResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 47);\n\n/**\n * @generated from enum public_api.v1.UserPanelResolveProductAccessResponse.Status\n */\nexport enum UserPanelResolveProductAccessResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: OWNED = 1;\n */\n OWNED = 1,\n\n /**\n * @generated from enum value: NOT_OWNED = 2;\n */\n NOT_OWNED = 2,\n\n /**\n * @generated from enum value: UNAVAILABLE = 3;\n */\n UNAVAILABLE = 3,\n}\n\n/**\n * Describes the enum public_api.v1.UserPanelResolveProductAccessResponse.Status.\n */\nexport const UserPanelResolveProductAccessResponse_StatusSchema: GenEnum<UserPanelResolveProductAccessResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 47, 0);\n\n/**\n * @generated from message public_api.v1.GetShopProductsRequest\n */\nexport type GetShopProductsRequest = Message<\"public_api.v1.GetShopProductsRequest\"> & {\n /**\n * @generated from field: optional string access_token = 1;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsRequest.\n * Use `create(GetShopProductsRequestSchema)` to create a new message.\n */\nexport const GetShopProductsRequestSchema: GenMessage<GetShopProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 48);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse\n */\nexport type GetShopProductsResponse = Message<\"public_api.v1.GetShopProductsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetShopProductsResponse.Product products = 5;\n */\n products: GetShopProductsResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.\n * Use `create(GetShopProductsResponseSchema)` to create a new message.\n */\nexport const GetShopProductsResponseSchema: GenMessage<GetShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 49);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse.Product\n */\nexport type GetShopProductsResponse_Product = Message<\"public_api.v1.GetShopProductsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from field: string price = 4;\n */\n price: string;\n\n /**\n * @generated from field: optional bool is_already_bought = 5;\n */\n isAlreadyBought?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.Product.\n * Use `create(GetShopProductsResponse_ProductSchema)` to create a new message.\n */\nexport const GetShopProductsResponse_ProductSchema: GenMessage<GetShopProductsResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 49, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse\n */\nexport type UserPanelGetFileDetailsResponse = Message<\"public_api.v1.UserPanelGetFileDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetFileDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetFileDetailsResponse.Result success = 1;\n */\n value: UserPanelGetFileDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.\n * Use `create(UserPanelGetFileDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponseSchema: GenMessage<UserPanelGetFileDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse.Result\n */\nexport type UserPanelGetFileDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetFileDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string files = 2;\n */\n files: string[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.Result.\n * Use `create(UserPanelGetFileDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponse_ResultSchema: GenMessage<UserPanelGetFileDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 50, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsRequest\n */\nexport type UserPanelGetFileDetailsRequest = Message<\"public_api.v1.UserPanelGetFileDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsRequest.\n * Use `create(UserPanelGetFileDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsRequestSchema: GenMessage<UserPanelGetFileDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 51);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse\n */\nexport type UserPanelGetTicketDetailsResponse = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetTicketDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetTicketDetailsResponse.Result success = 1;\n */\n value: UserPanelGetTicketDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.\n * Use `create(UserPanelGetTicketDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponseSchema: GenMessage<UserPanelGetTicketDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 52);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse.Result\n */\nexport type UserPanelGetTicketDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string ticket_url = 2;\n */\n ticketUrl: string;\n\n /**\n * @generated from field: string product_name = 3;\n */\n productName: string;\n\n /**\n * @generated from field: string product_image_url = 4;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: optional string google_wallet_url = 5;\n */\n googleWalletUrl?: string;\n\n /**\n * @generated from field: optional string apple_wallet_url = 6;\n */\n appleWalletUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.Result.\n * Use `create(UserPanelGetTicketDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponse_ResultSchema: GenMessage<UserPanelGetTicketDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 52, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsRequest\n */\nexport type UserPanelGetTicketDetailsRequest = Message<\"public_api.v1.UserPanelGetTicketDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsRequest.\n * Use `create(UserPanelGetTicketDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsRequestSchema: GenMessage<UserPanelGetTicketDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 53);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result success = 1;\n */\n value: UserPanelGetAudiobookDetailsDownloadURLsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails\"> & {\n /**\n * @generated from field: string chapter_id = 1;\n */\n chapterId: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n\n /**\n * @generated from field: optional string downloadable_url = 3;\n */\n downloadableUrl?: string;\n\n /**\n * @generated from field: optional int32 duration = 4;\n */\n duration?: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetailsSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse_Result = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.AudiobookDownloadDetails audiobook_download_details = 1;\n */\n audiobookDownloadDetails: UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails[];\n\n /**\n * @generated from field: optional bool is_available_to_download_in_mobile_app = 2;\n */\n isAvailableToDownloadInMobileApp?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsResponse_ResultSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 54, 1);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n\n /**\n * @generated from field: optional bool is_browser = 3;\n */\n isBrowser?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsRequest.\n * Use `create(UserPanelGetAudiobookDetailsDownloadURLsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsDownloadURLsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsDownloadURLsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 55);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsResponse\n */\nexport type UserPanelGetAudiobookDetailsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n value: Audiobook$1;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsResponse.\n * Use `create(UserPanelGetAudiobookDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsResponseSchema: GenMessage<UserPanelGetAudiobookDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 56);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsRequest\n */\nexport type UserPanelGetAudiobookDetailsRequest = Message<\"public_api.v1.UserPanelGetAudiobookDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsRequest.\n * Use `create(UserPanelGetAudiobookDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetAudiobookDetailsRequestSchema: GenMessage<UserPanelGetAudiobookDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 57);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsRequest\n */\nexport type UserPanelGetProductsRequest = Message<\"public_api.v1.UserPanelGetProductsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsRequest.\n * Use `create(UserPanelGetProductsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetProductsRequestSchema: GenMessage<UserPanelGetProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 58);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse\n */\nexport type UserPanelGetProductsResponse = Message<\"public_api.v1.UserPanelGetProductsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetProductsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetProductsResponse.Result success = 1;\n */\n value: UserPanelGetProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.\n * Use `create(UserPanelGetProductsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponseSchema: GenMessage<UserPanelGetProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 59);\n\n/**\n * @generated from message public_api.v1.UserPanelGetProductsResponse.Result\n */\nexport type UserPanelGetProductsResponse_Result = Message<\"public_api.v1.UserPanelGetProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserProduct products = 1;\n */\n products: UserProduct[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetProductsResponse.Result.\n * Use `create(UserPanelGetProductsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetProductsResponse_ResultSchema: GenMessage<UserPanelGetProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 59, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLogoutRequest\n */\nexport type UserPanelLogoutRequest = Message<\"public_api.v1.UserPanelLogoutRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLogoutRequest.\n * Use `create(UserPanelLogoutRequestSchema)` to create a new message.\n */\nexport const UserPanelLogoutRequestSchema: GenMessage<UserPanelLogoutRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 60);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeResponse\n */\nexport type UserPanelLoginWithCodeResponse = Message<\"public_api.v1.UserPanelLoginWithCodeResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginWithCodeResponse.result\n */\n result: {\n /**\n * @generated from field: string access_token = 1;\n */\n value: string;\n case: \"accessToken\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeResponse.\n * Use `create(UserPanelLoginWithCodeResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeResponseSchema: GenMessage<UserPanelLoginWithCodeResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 61);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginWithCodeRequest\n */\nexport type UserPanelLoginWithCodeRequest = Message<\"public_api.v1.UserPanelLoginWithCodeRequest\"> & {\n /**\n * @generated from field: int32 code = 1;\n */\n code: number;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginWithCodeRequest.\n * Use `create(UserPanelLoginWithCodeRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginWithCodeRequestSchema: GenMessage<UserPanelLoginWithCodeRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 62);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse\n */\nexport type UserPanelLoginResponse = Message<\"public_api.v1.UserPanelLoginResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelLoginResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelLoginResponse.Result success = 1;\n */\n value: UserPanelLoginResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.\n * Use `create(UserPanelLoginResponseSchema)` to create a new message.\n */\nexport const UserPanelLoginResponseSchema: GenMessage<UserPanelLoginResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 63);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginResponse.Result\n */\nexport type UserPanelLoginResponse_Result = Message<\"public_api.v1.UserPanelLoginResponse.Result\"> & {\n /**\n * @generated from field: int32 retry_in = 1;\n */\n retryIn: number;\n\n /**\n * @generated from field: public_api.v1.LoginCodeDeliveryMethod delivery_method = 2;\n */\n deliveryMethod: LoginCodeDeliveryMethod;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginResponse.Result.\n * Use `create(UserPanelLoginResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelLoginResponse_ResultSchema: GenMessage<UserPanelLoginResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 63, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelLoginRequest\n */\nexport type UserPanelLoginRequest = Message<\"public_api.v1.UserPanelLoginRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: optional bool regulations_accept = 2;\n */\n regulationsAccept?: boolean;\n\n /**\n * @generated from field: public_api.v1.LoginCodeDeliveryMethod delivery_method = 3;\n */\n deliveryMethod: LoginCodeDeliveryMethod;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelLoginRequest.\n * Use `create(UserPanelLoginRequestSchema)` to create a new message.\n */\nexport const UserPanelLoginRequestSchema: GenMessage<UserPanelLoginRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 64);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlRequest\n */\nexport type GetOrderRetryUrlRequest = Message<\"public_api.v1.GetOrderRetryUrlRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlRequest.\n * Use `create(GetOrderRetryUrlRequestSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlRequestSchema: GenMessage<GetOrderRetryUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 65);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse\n */\nexport type GetOrderRetryUrlResponse = Message<\"public_api.v1.GetOrderRetryUrlResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderRetryUrlResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderRetryUrlResponse.Success url = 1;\n */\n value: GetOrderRetryUrlResponse_Success;\n case: \"url\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.\n * Use `create(GetOrderRetryUrlResponseSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponseSchema: GenMessage<GetOrderRetryUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 66);\n\n/**\n * @generated from message public_api.v1.GetOrderRetryUrlResponse.Success\n */\nexport type GetOrderRetryUrlResponse_Success = Message<\"public_api.v1.GetOrderRetryUrlResponse.Success\"> & {\n /**\n * @generated from field: string url = 1;\n */\n url: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRetryUrlResponse.Success.\n * Use `create(GetOrderRetryUrlResponse_SuccessSchema)` to create a new message.\n */\nexport const GetOrderRetryUrlResponse_SuccessSchema: GenMessage<GetOrderRetryUrlResponse_Success> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 66, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderRequest\n */\nexport type GetOrderRequest = Message<\"public_api.v1.GetOrderRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderRequest.\n * Use `create(GetOrderRequestSchema)` to create a new message.\n */\nexport const GetOrderRequestSchema: GenMessage<GetOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 67);\n\n/**\n * @generated from message public_api.v1.GetOrderResponse\n */\nexport type GetOrderResponse = Message<\"public_api.v1.GetOrderResponse\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: repeated public_api.v1.Item items = 2;\n */\n items: Item[];\n\n /**\n * @generated from field: public_api.v1.OrderDetails details = 3;\n */\n details?: OrderDetails;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderResponse.\n * Use `create(GetOrderResponseSchema)` to create a new message.\n */\nexport const GetOrderResponseSchema: GenMessage<GetOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 68);\n\n/**\n * @generated from message public_api.v1.OrderDetails\n */\nexport type OrderDetails = Message<\"public_api.v1.OrderDetails\"> & {\n /**\n * @generated from field: repeated public_api.v1.OrderDetails.SingleItem items = 1;\n */\n items: OrderDetails_SingleItem[];\n\n /**\n * @generated from field: common.v1.Gateway gateway = 2;\n */\n gateway: Gateway;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.\n * Use `create(OrderDetailsSchema)` to create a new message.\n */\nexport const OrderDetailsSchema: GenMessage<OrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 69);\n\n/**\n * @generated from message public_api.v1.OrderDetails.SingleItem\n */\nexport type OrderDetails_SingleItem = Message<\"public_api.v1.OrderDetails.SingleItem\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: optional string image_url = 2;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price_amount = 5;\n */\n priceAmount: bigint;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n};\n\n/**\n * Describes the message public_api.v1.OrderDetails.SingleItem.\n * Use `create(OrderDetails_SingleItemSchema)` to create a new message.\n */\nexport const OrderDetails_SingleItemSchema: GenMessage<OrderDetails_SingleItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 69, 0);\n\n/**\n * @generated from message public_api.v1.Item\n */\nexport type Item = Message<\"public_api.v1.Item\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from oneof public_api.v1.Item.item\n */\n item: {\n /**\n * @generated from field: public_api.v1.FileDownloadable file_downloadable = 4;\n */\n value: FileDownloadable;\n case: \"fileDownloadable\";\n } | {\n /**\n * @generated from field: public_api.v1.Audiobook audiobook = 5;\n */\n value: Audiobook;\n case: \"audiobook\";\n } | {\n /**\n * @generated from field: public_api.v1.Ticket ticket = 6;\n */\n value: Ticket;\n case: \"ticket\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.Item.\n * Use `create(ItemSchema)` to create a new message.\n */\nexport const ItemSchema: GenMessage<Item> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 70);\n\n/**\n * @generated from message public_api.v1.FileDownloadable\n */\nexport type FileDownloadable = Message<\"public_api.v1.FileDownloadable\"> & {\n /**\n * @generated from field: string file_url = 1;\n */\n fileUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.FileDownloadable.\n * Use `create(FileDownloadableSchema)` to create a new message.\n */\nexport const FileDownloadableSchema: GenMessage<FileDownloadable> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 71);\n\n/**\n * @generated from message public_api.v1.Audiobook\n */\nexport type Audiobook = Message<\"public_api.v1.Audiobook\"> & {\n /**\n * @generated from field: string app_download_url = 1;\n */\n appDownloadUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 72);\n\n/**\n * @generated from message public_api.v1.Ticket\n */\nexport type Ticket = Message<\"public_api.v1.Ticket\"> & {\n /**\n * @generated from field: string ticket_id = 1;\n */\n ticketId: string;\n\n /**\n * @generated from field: optional string apple_pass_url = 2;\n */\n applePassUrl?: string;\n\n /**\n * @generated from field: optional string google_ticket_url = 3;\n */\n googleTicketUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.Ticket.\n * Use `create(TicketSchema)` to create a new message.\n */\nexport const TicketSchema: GenMessage<Ticket> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 73);\n\n/**\n * @generated from message public_api.v1.UserProduct\n */\nexport type UserProduct = Message<\"public_api.v1.UserProduct\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string project_name = 2;\n */\n projectName: string;\n\n /**\n * @generated from field: string product_id = 3;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 4;\n */\n productName: string;\n\n /**\n * @generated from field: string product_description = 5;\n */\n productDescription: string;\n\n /**\n * @generated from field: string product_image_url = 6;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: public_api.v1.UserProductType product_type = 7;\n */\n productType: UserProductType;\n\n /**\n * @generated from field: string access_id = 8;\n */\n accessId: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 9;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_description = 10;\n */\n projectDescription?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserProduct.\n * Use `create(UserProductSchema)` to create a new message.\n */\nexport const UserProductSchema: GenMessage<UserProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 74);\n\n/**\n * @generated from message public_api.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"public_api.v1.BoolResponse\"> & {\n /**\n * @generated from oneof public_api.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 75);\n\n/**\n * @generated from message public_api.v1.PushEventRequest\n */\nexport type PushEventRequest = Message<\"public_api.v1.PushEventRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string notification_id = 2;\n */\n notificationId: string;\n\n /**\n * @generated from field: common.v1.NotificationEvent event = 3;\n */\n event: NotificationEvent;\n};\n\n/**\n * Describes the message public_api.v1.PushEventRequest.\n * Use `create(PushEventRequestSchema)` to create a new message.\n */\nexport const PushEventRequestSchema: GenMessage<PushEventRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 76);\n\n/**\n * @generated from message public_api.v1.PushSendDeviceTokenRequest\n */\nexport type PushSendDeviceTokenRequest = Message<\"public_api.v1.PushSendDeviceTokenRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: common.v1.PushNotificationDeviceToken payload = 2;\n */\n payload?: PushNotificationDeviceToken;\n\n /**\n * @generated from field: optional bool is_notification_granted = 3;\n */\n isNotificationGranted?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.PushSendDeviceTokenRequest.\n * Use `create(PushSendDeviceTokenRequestSchema)` to create a new message.\n */\nexport const PushSendDeviceTokenRequestSchema: GenMessage<PushSendDeviceTokenRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 77);\n\n/**\n * @generated from message public_api.v1.ProjectTheme\n */\nexport type ProjectTheme = Message<\"public_api.v1.ProjectTheme\"> & {\n /**\n * @generated from field: optional string image_url = 1;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string image_dark_url = 2;\n */\n imageDarkUrl?: string;\n\n /**\n * @generated from field: optional string brand_color = 3;\n */\n brandColor?: string;\n\n /**\n * @generated from field: optional string brand_color_dark = 4;\n */\n brandColorDark?: string;\n};\n\n/**\n * Describes the message public_api.v1.ProjectTheme.\n * Use `create(ProjectThemeSchema)` to create a new message.\n */\nexport const ProjectThemeSchema: GenMessage<ProjectTheme> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 78);\n\n/**\n * Public Order Details Messages\n *\n * @generated from message public_api.v1.GetPublicOrderDetailsRequest\n */\nexport type GetPublicOrderDetailsRequest = Message<\"public_api.v1.GetPublicOrderDetailsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * If provided and matches order, show unobfuscated data\n *\n * @generated from field: optional string email = 3;\n */\n email?: string;\n\n /**\n * If provided, extract email from token for automatic verification\n *\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsRequest.\n * Use `create(GetPublicOrderDetailsRequestSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsRequestSchema: GenMessage<GetPublicOrderDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 79);\n\n/**\n * @generated from message public_api.v1.GetPublicOrderDetailsResponse\n */\nexport type GetPublicOrderDetailsResponse = Message<\"public_api.v1.GetPublicOrderDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetPublicOrderDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderDetails order = 1;\n */\n value: PublicOrderDetails;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetPublicOrderDetailsResponse.\n * Use `create(GetPublicOrderDetailsResponseSchema)` to create a new message.\n */\nexport const GetPublicOrderDetailsResponseSchema: GenMessage<GetPublicOrderDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 80);\n\n/**\n * @generated from message public_api.v1.PublicOrderDetails\n */\nexport type PublicOrderDetails = Message<\"public_api.v1.PublicOrderDetails\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * Always visible (e.g., \"completed\", \"pending\", \"shipped\")\n *\n * @generated from field: string status = 2;\n */\n status: string;\n\n /**\n * Always visible\n *\n * @generated from field: optional string processing_status = 3;\n */\n processingStatus?: string;\n\n /**\n * Obfuscated unless email verified\n *\n * @generated from field: string customer_name = 4;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 5;\n */\n customerEmail: string;\n\n /**\n * @generated from field: optional string customer_phone = 6;\n */\n customerPhone?: string;\n\n /**\n * @generated from field: optional string delivery_address = 7;\n */\n deliveryAddress?: string;\n\n /**\n * @generated from field: optional string delivery_method = 8;\n */\n deliveryMethod?: string;\n\n /**\n * @generated from field: optional string tracking_number = 9;\n */\n trackingNumber?: string;\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderItem items = 10;\n */\n items: PublicOrderItem[];\n\n /**\n * @generated from field: repeated public_api.v1.PublicOrderComment comments = 11;\n */\n comments: PublicOrderComment[];\n\n /**\n * @generated from field: int64 total_amount = 12;\n */\n totalAmount: bigint;\n\n /**\n * @generated from field: string currency = 13;\n */\n currency: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 14;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp updated_at = 15;\n */\n updatedAt?: Timestamp;\n\n /**\n * True if email matched - frontend uses this to show/hide verify form\n *\n * @generated from field: bool is_verified = 16;\n */\n isVerified: boolean;\n\n /**\n * Total non-internal comments count\n *\n * @generated from field: int32 comment_count = 17;\n */\n commentCount: number;\n\n /**\n * Project branding\n *\n * @generated from field: optional public_api.v1.ProjectTheme project_theme = 18;\n */\n projectTheme?: ProjectTheme;\n\n /**\n * @generated from field: optional string project_name = 19;\n */\n projectName?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderDetails.\n * Use `create(PublicOrderDetailsSchema)` to create a new message.\n */\nexport const PublicOrderDetailsSchema: GenMessage<PublicOrderDetails> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 81);\n\n/**\n * @generated from message public_api.v1.PublicOrderItem\n */\nexport type PublicOrderItem = Message<\"public_api.v1.PublicOrderItem\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n\n /**\n * @generated from field: int64 price = 3;\n */\n price: bigint;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n\n /**\n * @generated from field: optional string image_url = 5;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderItem.\n * Use `create(PublicOrderItemSchema)` to create a new message.\n */\nexport const PublicOrderItemSchema: GenMessage<PublicOrderItem> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 82);\n\n/**\n * @generated from message public_api.v1.PublicOrderComment\n */\nexport type PublicOrderComment = Message<\"public_api.v1.PublicOrderComment\"> & {\n /**\n * @generated from field: int32 id = 1;\n */\n id: number;\n\n /**\n * Obfuscated to \"***\" if not verified\n *\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * \"admin\", \"system\", \"customer\"\n *\n * @generated from field: string author_type = 3;\n */\n authorType: string;\n\n /**\n * Obfuscated if not verified\n *\n * @generated from field: optional string author_name = 4;\n */\n authorName?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message public_api.v1.PublicOrderComment.\n * Use `create(PublicOrderCommentSchema)` to create a new message.\n */\nexport const PublicOrderCommentSchema: GenMessage<PublicOrderComment> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 83);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentRequest\n */\nexport type AddPublicOrderCommentRequest = Message<\"public_api.v1.AddPublicOrderCommentRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Lucia session cookie value\n *\n * @generated from field: string access_token = 4;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentRequest.\n * Use `create(AddPublicOrderCommentRequestSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentRequestSchema: GenMessage<AddPublicOrderCommentRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 84);\n\n/**\n * @generated from message public_api.v1.AddPublicOrderCommentResponse\n */\nexport type AddPublicOrderCommentResponse = Message<\"public_api.v1.AddPublicOrderCommentResponse\"> & {\n /**\n * @generated from oneof public_api.v1.AddPublicOrderCommentResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.PublicOrderComment comment = 1;\n */\n value: PublicOrderComment;\n case: \"comment\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.AddPublicOrderCommentResponse.\n * Use `create(AddPublicOrderCommentResponseSchema)` to create a new message.\n */\nexport const AddPublicOrderCommentResponseSchema: GenMessage<AddPublicOrderCommentResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 85);\n\n/**\n * Testimonial Messages\n *\n * @generated from message public_api.v1.GetOrderForTestimonialRequest\n */\nexport type GetOrderForTestimonialRequest = Message<\"public_api.v1.GetOrderForTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialRequest.\n * Use `create(GetOrderForTestimonialRequestSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialRequestSchema: GenMessage<GetOrderForTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 86);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse\n */\nexport type GetOrderForTestimonialResponse = Message<\"public_api.v1.GetOrderForTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.GetOrderForTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.GetOrderForTestimonialResponse.OrderInfo order = 1;\n */\n value: GetOrderForTestimonialResponse_OrderInfo;\n case: \"order\";\n } | {\n /**\n * @generated from field: string failure = 2;\n */\n value: string;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.\n * Use `create(GetOrderForTestimonialResponseSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponseSchema: GenMessage<GetOrderForTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderProduct\n */\nexport type GetOrderForTestimonialResponse_OrderProduct = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderProduct\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_name = 2;\n */\n productName: string;\n\n /**\n * @generated from field: optional string product_image_url = 3;\n */\n productImageUrl?: string;\n\n /**\n * @generated from field: int32 quantity = 4;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderProduct.\n * Use `create(GetOrderForTestimonialResponse_OrderProductSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderProductSchema: GenMessage<GetOrderForTestimonialResponse_OrderProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87, 0);\n\n/**\n * @generated from message public_api.v1.GetOrderForTestimonialResponse.OrderInfo\n */\nexport type GetOrderForTestimonialResponse_OrderInfo = Message<\"public_api.v1.GetOrderForTestimonialResponse.OrderInfo\"> & {\n /**\n * @generated from field: string order_id = 1;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 2;\n */\n customerName: string;\n\n /**\n * @generated from field: string customer_email = 3;\n */\n customerEmail: string;\n\n /**\n * @generated from field: repeated public_api.v1.GetOrderForTestimonialResponse.OrderProduct products = 4;\n */\n products: GetOrderForTestimonialResponse_OrderProduct[];\n\n /**\n * @generated from field: bool already_submitted = 5;\n */\n alreadySubmitted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetOrderForTestimonialResponse.OrderInfo.\n * Use `create(GetOrderForTestimonialResponse_OrderInfoSchema)` to create a new message.\n */\nexport const GetOrderForTestimonialResponse_OrderInfoSchema: GenMessage<GetOrderForTestimonialResponse_OrderInfo> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 87, 1);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialRequest\n */\nexport type SubmitTestimonialRequest = Message<\"public_api.v1.SubmitTestimonialRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string customer_name = 3;\n */\n customerName: string;\n\n /**\n * @generated from field: optional string photo_url = 4;\n */\n photoUrl?: string;\n\n /**\n * @generated from field: int32 rating = 5;\n */\n rating: number;\n\n /**\n * @generated from field: string message = 6;\n */\n message: string;\n\n /**\n * @generated from field: repeated string product_ids = 7;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialRequest.\n * Use `create(SubmitTestimonialRequestSchema)` to create a new message.\n */\nexport const SubmitTestimonialRequestSchema: GenMessage<SubmitTestimonialRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 88);\n\n/**\n * @generated from message public_api.v1.SubmitTestimonialResponse\n */\nexport type SubmitTestimonialResponse = Message<\"public_api.v1.SubmitTestimonialResponse\"> & {\n /**\n * @generated from oneof public_api.v1.SubmitTestimonialResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.SubmitTestimonialResponse.\n * Use `create(SubmitTestimonialResponseSchema)` to create a new message.\n */\nexport const SubmitTestimonialResponseSchema: GenMessage<SubmitTestimonialResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 89);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlRequest\n */\nexport type GetTestimonialUploadUrlRequest = Message<\"public_api.v1.GetTestimonialUploadUrlRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string order_id = 2;\n */\n orderId: string;\n\n /**\n * @generated from field: string filename = 3;\n */\n filename: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlRequest.\n * Use `create(GetTestimonialUploadUrlRequestSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlRequestSchema: GenMessage<GetTestimonialUploadUrlRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 90);\n\n/**\n * @generated from message public_api.v1.GetTestimonialUploadUrlResponse\n */\nexport type GetTestimonialUploadUrlResponse = Message<\"public_api.v1.GetTestimonialUploadUrlResponse\"> & {\n /**\n * @generated from field: string upload_url = 1;\n */\n uploadUrl: string;\n\n /**\n * @generated from field: string public_url = 2;\n */\n publicUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.GetTestimonialUploadUrlResponse.\n * Use `create(GetTestimonialUploadUrlResponseSchema)` to create a new message.\n */\nexport const GetTestimonialUploadUrlResponseSchema: GenMessage<GetTestimonialUploadUrlResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 91);\n\n/**\n * @generated from enum public_api.v1.LoginCodeDeliveryMethod\n */\nexport enum LoginCodeDeliveryMethod {\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_EMAIL = 1;\n */\n EMAIL = 1,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_PUSH = 2;\n */\n PUSH = 2,\n\n /**\n * @generated from enum value: LOGIN_CODE_DELIVERY_METHOD_SMS = 3;\n */\n SMS = 3,\n}\n\n/**\n * Describes the enum public_api.v1.LoginCodeDeliveryMethod.\n */\nexport const LoginCodeDeliveryMethodSchema: GenEnum<LoginCodeDeliveryMethod> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from enum public_api.v1.UserProductType\n */\nexport enum UserProductType {\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_AUDIO = 1;\n */\n AUDIO = 1,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_FILE = 2;\n */\n FILE = 2,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_TICKET = 3;\n */\n TICKET = 3,\n\n /**\n * @generated from enum value: USER_PRODUCT_TYPE_COURSE = 4;\n */\n COURSE = 4,\n}\n\n/**\n * Describes the enum public_api.v1.UserProductType.\n */\nexport const UserProductTypeSchema: GenEnum<UserProductType> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from enum public_api.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_EMAIL_NOT_FOUND = 1;\n */\n EMAIL_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_EMAIL = 2;\n */\n INCORRECT_EMAIL = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CODE = 3;\n */\n INCORRECT_CODE = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_GENERATE_ACCESS_TOKEN_FAILED = 4;\n */\n GENERATE_ACCESS_TOKEN_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_LOGOUT_FAILED = 5;\n */\n LOGOUT_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRDUCTS_NOT_FOUND = 6;\n */\n PRDUCTS_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_AUDIOBOOK_NOT_FOUND = 7;\n */\n AUDIOBOOK_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_AUDIOBOOK = 8;\n */\n INCORRECT_AUDIOBOOK = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNAUTHORIZED = 9;\n */\n UNAUTHORIZED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_TICKET_NOT_FOUND = 10;\n */\n TICKET_NOT_FOUND = 10,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELIVERY_METHOD_UNAVAILABLE = 11;\n */\n DELIVERY_METHOD_UNAVAILABLE = 11,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELIVERY_FAILED = 12;\n */\n DELIVERY_FAILED = 12,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_RATE_LIMITED = 13;\n */\n RATE_LIMITED = 13,\n}\n\n/**\n * Describes the enum public_api.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from enum public_api.v1.NotificationMethod\n */\nexport enum NotificationMethod {\n /**\n * @generated from enum value: NOTIFICATION_METHOD_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_EMAIL = 1;\n */\n EMAIL = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_SMS = 2;\n */\n SMS = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_METHOD_PUSH = 3;\n */\n PUSH = 3,\n}\n\n/**\n * Describes the enum public_api.v1.NotificationMethod.\n */\nexport const NotificationMethodSchema: GenEnum<NotificationMethod> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from service public_api.v1.PublicApiService\n */\nexport const PublicApiService: GenService<{\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\n getOrder: {\n methodKind: \"unary\";\n input: typeof GetOrderRequestSchema;\n output: typeof GetOrderResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\n getOrders: {\n methodKind: \"unary\";\n input: typeof GetOrdersRequestSchema;\n output: typeof GetOrdersResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\n getOrderRetryUrl: {\n methodKind: \"unary\";\n input: typeof GetOrderRetryUrlRequestSchema;\n output: typeof GetOrderRetryUrlResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\n userPanelLogin: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginRequestSchema;\n output: typeof UserPanelLoginResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\n userPanelLoginWithCode: {\n methodKind: \"unary\";\n input: typeof UserPanelLoginWithCodeRequestSchema;\n output: typeof UserPanelLoginWithCodeResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\n userPanelLogout: {\n methodKind: \"unary\";\n input: typeof UserPanelLogoutRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\n userPanelDeleteAccount: {\n methodKind: \"unary\";\n input: typeof UserPanelDeleteAccountRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\n userPanelGetProducts: {\n methodKind: \"unary\";\n input: typeof UserPanelGetProductsRequestSchema;\n output: typeof UserPanelGetProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\n userPanelGetAudiobookDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\n userPanelGetAudiobookDetailsDownloadURLs: {\n methodKind: \"unary\";\n input: typeof UserPanelGetAudiobookDetailsDownloadURLsRequestSchema;\n output: typeof UserPanelGetAudiobookDetailsDownloadURLsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\n userPanelGetFileDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetFileDetailsRequestSchema;\n output: typeof UserPanelGetFileDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\n userPanelGetTicketDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetTicketDetailsRequestSchema;\n output: typeof UserPanelGetTicketDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\n userPanelGetCourseDetails: {\n methodKind: \"unary\";\n input: typeof UserPanelGetCourseDetailsRequestSchema;\n output: typeof UserPanelGetCourseDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\n pushSendDeviceToken: {\n methodKind: \"unary\";\n input: typeof PushSendDeviceTokenRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\n pushEvent: {\n methodKind: \"unary\";\n input: typeof PushEventRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\n shouldShopProducts: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ShouldShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ShouldShowGuestCatalog\n */\n shouldShowGuestCatalog: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof ShouldShowGuestCatalogResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetGuestCatalog\n */\n getGuestCatalog: {\n methodKind: \"unary\";\n input: typeof EmptySchema;\n output: typeof GetGuestCatalogResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelResolveProductAccess\n */\n userPanelResolveProductAccess: {\n methodKind: \"unary\";\n input: typeof UserPanelResolveProductAccessRequestSchema;\n output: typeof UserPanelResolveProductAccessResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\n getShopProducts: {\n methodKind: \"unary\";\n input: typeof GetShopProductsRequestSchema;\n output: typeof GetShopProductsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\n didBuyProduct: {\n methodKind: \"unary\";\n input: typeof DidBuyProductRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreAccountToken\n */\n getAppStoreAccountToken: {\n methodKind: \"unary\";\n input: typeof GetAppStoreAccountTokenRequestSchema;\n output: typeof GetAppStoreAccountTokenResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.VerifyAppStorePurchase\n */\n verifyAppStorePurchase: {\n methodKind: \"unary\";\n input: typeof VerifyAppStorePurchaseRequestSchema;\n output: typeof VerifyAppStorePurchaseResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreEntitlements\n */\n getAppStoreEntitlements: {\n methodKind: \"unary\";\n input: typeof GetAppStoreEntitlementsRequestSchema;\n output: typeof GetAppStoreEntitlementsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.RestoreAppStorePurchases\n */\n restoreAppStorePurchases: {\n methodKind: \"unary\";\n input: typeof RestoreAppStorePurchasesRequestSchema;\n output: typeof RestoreAppStorePurchasesResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ClearAppStoreAccountToken\n */\n clearAppStoreAccountToken: {\n methodKind: \"unary\";\n input: typeof ClearAppStoreAccountTokenRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetStoreKitCatalog\n */\n getStoreKitCatalog: {\n methodKind: \"unary\";\n input: typeof GetStoreKitCatalogRequestSchema;\n output: typeof GetStoreKitCatalogResponseSchema;\n },\n /**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\n getNotificationSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsRequestSchema;\n output: typeof GetNotificationSettingsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\n getNotificationSettingsDetails: {\n methodKind: \"unary\";\n input: typeof GetNotificationSettingsDetailsRequestSchema;\n output: typeof GetNotificationSettingsDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\n updateGlobalNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateGlobalNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\n updateNotificationSettings: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationHistory\n */\n getNotificationHistory: {\n methodKind: \"unary\";\n input: typeof GetNotificationHistoryRequestSchema;\n output: typeof GetNotificationHistoryResponseSchema;\n },\n /**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\n getAvailableCountForProduct: {\n methodKind: \"unary\";\n input: typeof GetAvailableCountForProductRequestSchema;\n output: typeof GetAvailableCountForProductResponseSchema;\n },\n /**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\n isOneClickPaymentAvailable: {\n methodKind: \"unary\";\n input: typeof IsOneClickPaymentAvailableRequestSchema;\n output: typeof IsOneClickPaymentAvailableResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\n getPreOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPreOrderDetailsRequestSchema;\n output: typeof GetPreOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\n applePayValidateMerchant: {\n methodKind: \"unary\";\n input: typeof ApplePayValidateMerchantRequestSchema;\n output: typeof ApplePayValidateMerchantResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\n authorizeOneClickPayment: {\n methodKind: \"unary\";\n input: typeof OneClickAuthorizePaymentRequestSchema;\n output: typeof OneClickAuthorizePaymentResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\n notifyUserAboutProductAvailability: {\n methodKind: \"unary\";\n input: typeof NotifyUserAboutProductAvailabilityRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\n getPublicOrderDetails: {\n methodKind: \"unary\";\n input: typeof GetPublicOrderDetailsRequestSchema;\n output: typeof GetPublicOrderDetailsResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\n addPublicOrderComment: {\n methodKind: \"unary\";\n input: typeof AddPublicOrderCommentRequestSchema;\n output: typeof AddPublicOrderCommentResponseSchema;\n },\n /**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\n getOrderForTestimonial: {\n methodKind: \"unary\";\n input: typeof GetOrderForTestimonialRequestSchema;\n output: typeof GetOrderForTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\n submitTestimonial: {\n methodKind: \"unary\";\n input: typeof SubmitTestimonialRequestSchema;\n output: typeof SubmitTestimonialResponseSchema;\n },\n /**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\n getTestimonialUploadUrl: {\n methodKind: \"unary\";\n input: typeof GetTestimonialUploadUrlRequestSchema;\n output: typeof GetTestimonialUploadUrlResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_public_api, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/address.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/address.proto.\n */\nexport const file_common_v1_address: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvYWRkcmVzcy5wcm90bxIJY29tbW9uLnYxIocBCgdBZGRyZXNzEgwKBG5hbWUYASABKAkSDQoFbGluZTEYAiABKAkSEgoFbGluZTIYAyABKAlIAIgBARIMCgRjaXR5GAQgASgJEg8KB2NvdW50cnkYBSABKAkSFQoIemlwX2NvZGUYBiABKAlIAYgBAUIICgZfbGluZTJCCwoJX3ppcF9jb2RlIq4BCg5CaWxsaW5nQWRkcmVzcxIMCgRuYW1lGAEgASgJEg0KBWxpbmUxGAIgASgJEhIKBWxpbmUyGAMgASgJSACIAQESDAoEY2l0eRgEIAEoCRIPCgdjb3VudHJ5GAUgASgJEhUKCHppcF9jb2RlGAYgASgJSAGIAQESEwoGdGF4X2lkGAcgASgJSAKIAQFCCAoGX2xpbmUyQgsKCV96aXBfY29kZUIJCgdfdGF4X2lkQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from message common.v1.Address\n */\nexport type Address = Message<\"common.v1.Address\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n};\n\n/**\n * Describes the message common.v1.Address.\n * Use `create(AddressSchema)` to create a new message.\n */\nexport const AddressSchema: GenMessage<Address> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 0);\n\n/**\n * @generated from message common.v1.BillingAddress\n */\nexport type BillingAddress = Message<\"common.v1.BillingAddress\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: string line1 = 2;\n */\n line1: string;\n\n /**\n * @generated from field: optional string line2 = 3;\n */\n line2?: string;\n\n /**\n * @generated from field: string city = 4;\n */\n city: string;\n\n /**\n * @generated from field: string country = 5;\n */\n country: string;\n\n /**\n * @generated from field: optional string zip_code = 6;\n */\n zipCode?: string;\n\n /**\n * @generated from field: optional string tax_id = 7;\n */\n taxId?: string;\n};\n\n/**\n * Describes the message common.v1.BillingAddress.\n * Use `create(BillingAddressSchema)` to create a new message.\n */\nexport const BillingAddressSchema: GenMessage<BillingAddress> = /*@__PURE__*/\n messageDesc(file_common_v1_address, 1);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/gateway.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/gateway.proto.\n */\nexport const file_common_v1_gateway: GenFile = /*@__PURE__*/\n fileDesc(\"Chdjb21tb24vdjEvZ2F0ZXdheS5wcm90bxIJY29tbW9uLnYxKs8BCgdHYXRld2F5Eg8KC0dBVEVXQVlfQUxMEAASFwoTR0FURVdBWV9QUlpFTEVXWV8yNBABEhIKDkdBVEVXQVlfU1RSSVBFEAISEAoMR0FURVdBWV9UUEFZEAMSHAoYR0FURVdBWV9DQVNIX09OX0RFTElWRVJZEAQSEAoMR0FURVdBWV9GUkVFEAUSFgoSR0FURVdBWV9JTlBPU1RfUEFZEAYSEAoMR0FURVdBWV9QQVlVEAcSGgoWR0FURVdBWV9NQU5VQUxfUEFZTUVOVBAIQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Gateway\n */\nexport enum Gateway {\n /**\n * @generated from enum value: GATEWAY_ALL = 0;\n */\n ALL = 0,\n\n /**\n * @generated from enum value: GATEWAY_PRZELEWY_24 = 1;\n */\n PRZELEWY_24 = 1,\n\n /**\n * @generated from enum value: GATEWAY_STRIPE = 2;\n */\n STRIPE = 2,\n\n /**\n * @generated from enum value: GATEWAY_TPAY = 3;\n */\n TPAY = 3,\n\n /**\n * @generated from enum value: GATEWAY_CASH_ON_DELIVERY = 4;\n */\n CASH_ON_DELIVERY = 4,\n\n /**\n * @generated from enum value: GATEWAY_FREE = 5;\n */\n FREE = 5,\n\n /**\n * @generated from enum value: GATEWAY_INPOST_PAY = 6;\n */\n INPOST_PAY = 6,\n\n /**\n * @generated from enum value: GATEWAY_PAYU = 7;\n */\n PAYU = 7,\n\n /**\n * @generated from enum value: GATEWAY_MANUAL_PAYMENT = 8;\n */\n MANUAL_PAYMENT = 8,\n}\n\n/**\n * Describes the enum common.v1.Gateway.\n */\nexport const GatewaySchema: GenEnum<Gateway> = /*@__PURE__*/\n enumDesc(file_common_v1_gateway, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/push_notifications.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file common/v1/push_notifications.proto.\n */\nexport const file_common_v1_push_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiJjb21tb24vdjEvcHVzaF9ub3RpZmljYXRpb25zLnByb3RvEgljb21tb24udjEi9gEKG1B1c2hOb3RpZmljYXRpb25EZXZpY2VUb2tlbhIXCgpwdXNoX3Rva2VuGAIgASgJSACIAQESNAoLZXhwaXJlX3RpbWUYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAGIAQESEwoGcDI1NmRoGAQgASgJSAKIAQESFQoIZW5kcG9pbnQYBSABKAlIA4gBARIlCghwbGF0Zm9ybRgGIAEoDjITLmNvbW1vbi52MS5QbGF0Zm9ybUINCgtfcHVzaF90b2tlbkIOCgxfZXhwaXJlX3RpbWVCCQoHX3AyNTZkaEILCglfZW5kcG9pbnQi0AEKF1B1c2hOb3RpZmljYXRpb25QYXlsb2FkEg0KBXRpdGxlGAIgASgJEhUKCG9wZW5fdXJsGAMgASgJSAGIAQESDgoEYm9keRgEIAEoCUgAEjoKBGRhdGEYBSADKAsyLC5jb21tb24udjEuUHVzaE5vdGlmaWNhdGlvblBheWxvYWQuRGF0YUVudHJ5GisKCURhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBQgkKB21lc3NhZ2VCCwoJX29wZW5fdXJsKngKCFBsYXRmb3JtEhgKFFBMQVRGT1JNX1VOU1BFQ0lGSUVEEAASEAoMUExBVEZPUk1fV0VCEAESGAoUUExBVEZPUk1fSU9TX1NBTkRCT1gQAhIQCgxQTEFURk9STV9JT1MQAxIUChBQTEFURk9STV9BTkRST0lEEAQqdAoRTm90aWZpY2F0aW9uRXZlbnQSEQoNRVZFTlRfVU5LTk9XThAAEhIKDkVWRU5UX1JFQ0VJVkVEEAESEAoMRVZFTlRfT1BFTkVEEAISEQoNRVZFTlRfQ0xJQ0tFRBADEhMKD0VWRU5UX0RJU01JU1NFRBAEKpkBChlOb3RpZmljYXRpb25Hcm91cEhvd09mdGVuEicKI05PVElGSUNBVElPTl9HUk9VUF9IT1dfT0ZURU5fUkFSRUxZEAASJgoiTk9USUZJQ0FUSU9OX0dST1VQX0hPV19PRlRFTl9PRlRFThABEisKJ05PVElGSUNBVElPTl9HUk9VUF9IT1dfT0ZURU5fVkVSWV9PRlRFThACQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\", [file_google_protobuf_timestamp]);\n\n/**\n * @generated from message common.v1.PushNotificationDeviceToken\n */\nexport type PushNotificationDeviceToken = Message<\"common.v1.PushNotificationDeviceToken\"> & {\n /**\n * @generated from field: optional string push_token = 2;\n */\n pushToken?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp expire_time = 3;\n */\n expireTime?: Timestamp;\n\n /**\n * @generated from field: optional string p256dh = 4;\n */\n p256dh?: string;\n\n /**\n * @generated from field: optional string endpoint = 5;\n */\n endpoint?: string;\n\n /**\n * @generated from field: common.v1.Platform platform = 6;\n */\n platform: Platform;\n};\n\n/**\n * Describes the message common.v1.PushNotificationDeviceToken.\n * Use `create(PushNotificationDeviceTokenSchema)` to create a new message.\n */\nexport const PushNotificationDeviceTokenSchema: GenMessage<PushNotificationDeviceToken> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from message common.v1.PushNotificationPayload\n */\nexport type PushNotificationPayload = Message<\"common.v1.PushNotificationPayload\"> & {\n /**\n * @generated from field: string title = 2;\n */\n title: string;\n\n /**\n * @generated from field: optional string open_url = 3;\n */\n openUrl?: string;\n\n /**\n * @generated from oneof common.v1.PushNotificationPayload.message\n */\n message: {\n /**\n * @generated from field: string body = 4;\n */\n value: string;\n case: \"body\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: map<string, string> data = 5;\n */\n data: { [key: string]: string };\n};\n\n/**\n * Describes the message common.v1.PushNotificationPayload.\n * Use `create(PushNotificationPayloadSchema)` to create a new message.\n */\nexport const PushNotificationPayloadSchema: GenMessage<PushNotificationPayload> = /*@__PURE__*/\n messageDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.Platform\n */\nexport enum Platform {\n /**\n * @generated from enum value: PLATFORM_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: PLATFORM_WEB = 1;\n */\n WEB = 1,\n\n /**\n * @generated from enum value: PLATFORM_IOS_SANDBOX = 2;\n */\n IOS_SANDBOX = 2,\n\n /**\n * @generated from enum value: PLATFORM_IOS = 3;\n */\n IOS = 3,\n\n /**\n * @generated from enum value: PLATFORM_ANDROID = 4;\n */\n ANDROID = 4,\n}\n\n/**\n * Describes the enum common.v1.Platform.\n */\nexport const PlatformSchema: GenEnum<Platform> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 0);\n\n/**\n * @generated from enum common.v1.NotificationEvent\n */\nexport enum NotificationEvent {\n /**\n * @generated from enum value: EVENT_UNKNOWN = 0;\n */\n EVENT_UNKNOWN = 0,\n\n /**\n * @generated from enum value: EVENT_RECEIVED = 1;\n */\n EVENT_RECEIVED = 1,\n\n /**\n * @generated from enum value: EVENT_OPENED = 2;\n */\n EVENT_OPENED = 2,\n\n /**\n * @generated from enum value: EVENT_CLICKED = 3;\n */\n EVENT_CLICKED = 3,\n\n /**\n * @generated from enum value: EVENT_DISMISSED = 4;\n */\n EVENT_DISMISSED = 4,\n}\n\n/**\n * Describes the enum common.v1.NotificationEvent.\n */\nexport const NotificationEventSchema: GenEnum<NotificationEvent> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 1);\n\n/**\n * @generated from enum common.v1.NotificationGroupHowOften\n */\nexport enum NotificationGroupHowOften {\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_RARELY = 0;\n */\n RARELY = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_OFTEN = 1;\n */\n OFTEN = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_GROUP_HOW_OFTEN_VERY_OFTEN = 2;\n */\n VERY_OFTEN = 2,\n}\n\n/**\n * Describes the enum common.v1.NotificationGroupHowOften.\n */\nexport const NotificationGroupHowOftenSchema: GenEnum<NotificationGroupHowOften> = /*@__PURE__*/\n enumDesc(file_common_v1_push_notifications, 2);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/audiobooks.proto (package dashboard.audiobooks.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/audiobooks.proto.\n */\nexport const file_dashboard_v1_audiobooks: GenF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YXJkLmF1ZGlvYm9va3MudjEuQ3JlYXRlT3JVcGRhdGVBdWRpb2Jvb2tSZXF1ZXN0GjguZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQ3JlYXRlT3JVcGRhdGVBdWRpb2Jvb2tSZXNwb25zZRJpCg9EZWxldGVBdWRpb2Jvb2sSLy5kYXNoYm9hcmQuYXVkaW9ib29rcy52MS5EZWxldGVBdWRpb2Jvb2tSZXF1ZXN0GiUuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQm9vbFJlc3BvbnNlEo8BChhHZXRBdWRpb2Jvb2tBY2Nlc3NFbWFpbHMSOC5kYXNoYm9hcmQuYXVkaW9ib29rcy52MS5HZXRBdWRpb2Jvb2tBY2Nlc3NFbWFpbHNSZXF1ZXN0GjkuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuR2V0QXVkaW9ib29rQWNjZXNzRW1haWxzUmVzcG9uc2USdQoVQ3JlYXRlQXVkaW9ib29rQWNjZXNzEjUuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQ3JlYXRlQXVkaW9ib29rQWNjZXNzUmVxdWVzdBolLmRhc2hib2FyZC5hdWRpb2Jvb2tzLnYxLkJvb2xSZXNwb25zZRJ1ChVEZWxldGVBdWRpb2Jvb2tBY2Nlc3MSNS5kYXNoYm9hcmQuYXVkaW9ib29rcy52MS5EZWxldGVBdWRpb2Jvb2tBY2Nlc3NSZXF1ZXN0GiUuZGFzaGJvYXJkLmF1ZGlvYm9va3MudjEuQm9vbFJlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_timestamp, file_google_protobuf_empty]);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobooksRequest\n */\nexport type GetAudiobooksRequest = Message<\"dashboard.audiobooks.v1.GetAudiobooksRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksRequest.\n * Use `create(GetAudiobooksRequestSchema)` to create a new message.\n */\nexport const GetAudiobooksRequestSchema: GenMessage<GetAudiobooksRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookRequest\n */\nexport type GetAudiobookRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookRequest.\n * Use `create(GetAudiobookRequestSchema)` to create a new message.\n */\nexport const GetAudiobookRequestSchema: GenMessage<GetAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Chapter\n */\nexport type Chapter = Message<\"dashboard.audiobooks.v1.Chapter\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string multimedia_id = 4;\n */\n multimediaId?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 5;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Chapter.\n * Use `create(ChapterSchema)` to create a new message.\n */\nexport const ChapterSchema: GenMessage<Chapter> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 2);\n\n/**\n * @generated from message dashboard.audiobooks.v1.Audiobook\n */\nexport type Audiobook = Message<\"dashboard.audiobooks.v1.Audiobook\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * @generated from field: string description = 4;\n */\n description: string;\n\n /**\n * @generated from field: string cover_image = 5;\n */\n coverImage: string;\n\n /**\n * @generated from field: string thumbnail_image = 6;\n */\n thumbnailImage: string;\n\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Chapter chapters = 7;\n */\n chapters: Chapter[];\n\n /**\n * @generated from field: bool is_downloadable = 8;\n */\n isDownloadable: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 9;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_browser_downloadable = 10;\n */\n isBrowserDownloadable?: boolean;\n\n /**\n * @generated from field: optional string accent_color = 11;\n */\n accentColor?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.Audiobook.\n * Use `create(AudiobookSchema)` to create a new message.\n */\nexport const AudiobookSchema: GenMessage<Audiobook> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 3);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobooksResponse\n */\nexport type GetAudiobooksResponse = Message<\"dashboard.audiobooks.v1.GetAudiobooksResponse\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.Audiobook audiobooks = 1;\n */\n audiobooks: Audiobook[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobooksResponse.\n * Use `create(GetAudiobooksResponseSchema)` to create a new message.\n */\nexport const GetAudiobooksResponseSchema: GenMessage<GetAudiobooksResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 4);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookResponse\n */\nexport type GetAudiobookResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookResponse\"> & {\n /**\n * @generated from field: optional dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookResponse.\n * Use `create(GetAudiobookResponseSchema)` to create a new message.\n */\nexport const GetAudiobookResponseSchema: GenMessage<GetAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 5);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\n */\nexport type CreateOrUpdateAudiobookRequest = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest\"> & {\n /**\n * @generated from field: dashboard.audiobooks.v1.Audiobook audiobook = 1;\n */\n audiobook?: Audiobook;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookRequest.\n * Use `create(CreateOrUpdateAudiobookRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookRequestSchema: GenMessage<CreateOrUpdateAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 6);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\n */\nexport type CreateOrUpdateAudiobookResponse = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result success = 1;\n */\n value: CreateOrUpdateAudiobookResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.\n * Use `create(CreateOrUpdateAudiobookResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponseSchema: GenMessage<CreateOrUpdateAudiobookResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\n */\nexport type CreateOrUpdateAudiobookResponse_Result = Message<\"dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateOrUpdateAudiobookResponse.Result.\n * Use `create(CreateOrUpdateAudiobookResponse_ResultSchema)` to create a new message.\n */\nexport const CreateOrUpdateAudiobookResponse_ResultSchema: GenMessage<CreateOrUpdateAudiobookResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 7, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookRequest\n */\nexport type DeleteAudiobookRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookRequest.\n * Use `create(DeleteAudiobookRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookRequestSchema: GenMessage<DeleteAudiobookRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 8);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\n */\nexport type GetAudiobookAccessEmailsRequest = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: optional string email = 2;\n */\n email?: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsRequest.\n * Use `create(GetAudiobookAccessEmailsRequestSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsRequestSchema: GenMessage<GetAudiobookAccessEmailsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 9);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\n */\nexport type GetAudiobookAccessEmailsResponse = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result success = 1;\n */\n value: GetAudiobookAccessEmailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.\n * Use `create(GetAudiobookAccessEmailsResponseSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponseSchema: GenMessage<GetAudiobookAccessEmailsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\n */\nexport type GetAudiobookAccessEmailsResponse_AccessEmail = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail.\n * Use `create(GetAudiobookAccessEmailsResponse_AccessEmailSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_AccessEmailSchema: GenMessage<GetAudiobookAccessEmailsResponse_AccessEmail> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 0);\n\n/**\n * @generated from message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\n */\nexport type GetAudiobookAccessEmailsResponse_Result = Message<\"dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.AccessEmail emails = 1;\n */\n emails: GetAudiobookAccessEmailsResponse_AccessEmail[];\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.GetAudiobookAccessEmailsResponse.Result.\n * Use `create(GetAudiobookAccessEmailsResponse_ResultSchema)` to create a new message.\n */\nexport const GetAudiobookAccessEmailsResponse_ResultSchema: GenMessage<GetAudiobookAccessEmailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 10, 1);\n\n/**\n * @generated from message dashboard.audiobooks.v1.CreateAudiobookAccessRequest\n */\nexport type CreateAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.CreateAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.CreateAudiobookAccessRequest.\n * Use `create(CreateAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const CreateAudiobookAccessRequestSchema: GenMessage<CreateAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 11);\n\n/**\n * @generated from message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\n */\nexport type DeleteAudiobookAccessRequest = Message<\"dashboard.audiobooks.v1.DeleteAudiobookAccessRequest\"> & {\n /**\n * @generated from field: string system_access_id = 1;\n */\n systemAccessId: string;\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.DeleteAudiobookAccessRequest.\n * Use `create(DeleteAudiobookAccessRequestSchema)` to create a new message.\n */\nexport const DeleteAudiobookAccessRequestSchema: GenMessage<DeleteAudiobookAccessRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 12);\n\n/**\n * @generated from message dashboard.audiobooks.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.audiobooks.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.audiobooks.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.audiobooks.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.audiobooks.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_audiobooks, 13);\n\n/**\n * @generated from enum dashboard.audiobooks.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CHAPTER_NOT_FOUND = 2;\n */\n CHAPTER_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INCORRECT_CHAPTER_FORMAT = 3;\n */\n INCORRECT_CHAPTER_FORMAT = 3,\n}\n\n/**\n * Describes the enum dashboard.audiobooks.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_audiobooks, 0);\n\n/**\n * @generated from service dashboard.audiobooks.v1.AudiobooksService\n */\nexport const AudiobooksService: GenService<{\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobooks\n */\n getAudiobooks: {\n methodKind: \"unary\";\n input: typeof GetAudiobooksRequestSchema;\n output: typeof GetAudiobooksResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobook\n */\n getAudiobook: {\n methodKind: \"unary\";\n input: typeof GetAudiobookRequestSchema;\n output: typeof GetAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateOrUpdateAudiobook\n */\n createOrUpdateAudiobook: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateAudiobookRequestSchema;\n output: typeof CreateOrUpdateAudiobookResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobook\n */\n deleteAudiobook: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.GetAudiobookAccessEmails\n */\n getAudiobookAccessEmails: {\n methodKind: \"unary\";\n input: typeof GetAudiobookAccessEmailsRequestSchema;\n output: typeof GetAudiobookAccessEmailsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.CreateAudiobookAccess\n */\n createAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof CreateAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.audiobooks.v1.AudiobooksService.DeleteAudiobookAccess\n */\n deleteAudiobookAccess: {\n methodKind: \"unary\";\n input: typeof DeleteAudiobookAccessRequestSchema;\n output: typeof BoolResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_audiobooks, 0);\n\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport {\n useEffect,\n useState,\n type ChangeEvent,\n type CSSProperties,\n type FormEvent,\n} from \"react\";\nimport { cn } from \"../../lib/utils\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from \"../../ui/card\";\nimport { Input } from \"../../ui/input\";\nimport {\n InputOTP,\n InputOTPGroup,\n InputOTPSeparator,\n InputOTPSlot,\n} from \"../../ui/input-otp\";\nimport { REGEXP_ONLY_DIGITS } from \"input-otp\";\nimport { Label } from \"../../ui/label\";\nimport LoadingIndicator from \"../LoadingIndicator\";\nimport {\n getAllowedReturnOrigins,\n setAllowedReturnOrigins,\n} from \"../config\";\nimport { usePanelConfig } from \"../PanelProvider\";\nimport {\n buildAccessTokenRedirect,\n getReturnURLFromSearch,\n persistReturnURL,\n readPersistedReturnURL,\n} from \"../return-url\";\nimport { getPanelSession, savePanelSession } from \"../session-storage\";\n\ntype LoginResponseStatus = \"success\" | \"error\" | \"default\";\n\nif (typeof window !== \"undefined\") {\n const currentOrigin = window.location.origin;\n const knownSiblings = [\n currentOrigin,\n \"https://bitsnap.pl\",\n \"https://kursy.bitsnap.pl\",\n ];\n if (getAllowedReturnOrigins().length === 0) {\n setAllowedReturnOrigins(Array.from(new Set(knownSiblings)));\n }\n}\n\ninterface LoginUserPanelProps {\n projectID?: string;\n host?: string;\n reveal: () => void;\n email: string;\n setEmail: (input: string) => void;\n loginUser: () => void;\n isLoginLoading: boolean;\n errMsg: string;\n}\n\ninterface VerifyCodePanelProps {\n projectID?: string;\n host?: string;\n email: string;\n reveal: () => void;\n setEmail: (input: string) => void;\n loginUser: () => void;\n isLoginLoading: boolean;\n loginUserResponse: {\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null;\n setLoginUserResponse: (\n response: {\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null,\n ) => void;\n responseStatus: LoginResponseStatus;\n setResponseStatus: (status: LoginResponseStatus) => void;\n errMsg: string;\n}\n\nconst LoginUserPanel = ({\n projectID,\n host,\n reveal,\n email,\n setEmail,\n loginUser,\n isLoginLoading,\n errMsg,\n}: LoginUserPanelProps) => {\n const { projectID: configuredProjectID, host: configuredHost } = usePanelConfig();\n if (\n typeof window !== \"undefined\" &&\n getPanelSession(projectID ?? configuredProjectID, host ?? configuredHost) != null\n ) {\n // @ts-ignore\n window.location.href = window.location.href.replaceAll(\"login\", \"\");\n return null;\n }\n\n const [isValidEmail, setIsValidEmail] = useState<boolean>(false);\n\n const emailValidation = (input: string) => {\n const emailPattern =\n /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\n if (emailPattern.test(input.trim())) {\n return setIsValidEmail(true);\n }\n\n return setIsValidEmail(false);\n };\n\n const handleInputChange = (e: ChangeEvent<HTMLInputElement>) => {\n const { value } = e.target;\n emailValidation(value);\n setEmail(value);\n };\n\n function goToVerifyCode() {\n reveal();\n }\n\n function onSubmit(e: FormEvent<HTMLFormElement>) {\n e.preventDefault();\n void loginUser();\n }\n\n return (\n <main className=\"mx-auto flex max-w-sm flex-1 flex-col justify-center space-y-12\">\n <div className={cn(\"flex min-w-sm flex-col gap-6\")}>\n <Card>\n <CardHeader>\n <CardTitle className=\"text-2xl\">Zaloguj się</CardTitle>\n <CardDescription>\n Wyślemy do Ciebie kod na maila, dzięki któremu się zalogujesz.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form onSubmit={onSubmit}>\n <div className=\"flex flex-col gap-6\">\n <div className=\"grid gap-2\">\n <Label htmlFor=\"email\">Email</Label>\n <Input\n id=\"email\"\n onChange={handleInputChange}\n type=\"email\"\n placeholder=\"m@example.com\"\n required\n />\n <span\n className={cn(\n !isValidEmail && email.length > 0\n ? \"font-bold text-red-500\"\n : \"text-neutral-700 dark:text-neutral-400\",\n \"text-xs\",\n )}\n >\n {!isValidEmail && email.length > 0\n ? \"Nieprawidłowy adres email\"\n : \"Wpisz swój adres email\"}\n </span>\n </div>\n\n <div>\n <Button\n type=\"submit\"\n disabled={isLoginLoading}\n className=\"relative w-full\"\n onClick={loginUser}\n >\n {isLoginLoading && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <LoadingIndicator />\n </div>\n )}\n Zaloguj się\n </Button>\n {errMsg.length > 0 && (\n <p className=\"text-xs font-medium text-red-500\">{errMsg}</p>\n )}\n </div>\n </div>\n <div className=\"mt-4 text-center text-sm\">\n Masz już kod?{\" \"}\n <button\n type=\"button\"\n onClick={goToVerifyCode}\n className=\"underline underline-offset-4\"\n >\n Mam już kod\n </button>\n </div>\n </form>\n </CardContent>\n </Card>\n </div>\n </main>\n );\n};\n\nconst VerifyCodePanel = ({\n projectID,\n host,\n email,\n reveal,\n setEmail,\n isLoginLoading,\n loginUserResponse,\n setLoginUserResponse,\n setResponseStatus,\n errMsg,\n}: VerifyCodePanelProps) => {\n const { mutateAsync: verifyCodeAsync, isPending: isVerifyLoading } =\n useMutation(rpcProvider.publicApi.userPanelLoginWithCode);\n\n const [code, setCode] = useState<string>(\"\");\n const [isValidCode, setIsValidCode] = useState<boolean>(false);\n const [isSubmitted, setIsSubmitted] = useState<boolean>(false);\n const [retryIn, setRetryIn] = useState(0);\n\n const codeValidation = (input: string) => {\n const codePattern = /^\\d+$/;\n\n if (codePattern.test(input.trim())) {\n return setIsValidCode(true);\n }\n\n return setIsValidCode(false);\n };\n\n const handleInputChange = (value: string) => {\n codeValidation(value);\n setCode(value);\n };\n\n async function login() {\n setIsSubmitted(true);\n if (code.length == 0) {\n setIsValidCode(false);\n return;\n }\n const codeValue = parseInt(code);\n\n const verifyCodeResult = await verifyCodeAsync({\n code: codeValue,\n });\n\n let status, message, accessToken;\n\n if (verifyCodeResult.result.case === \"accessToken\") {\n setIsValidCode(true);\n status = \"ok\";\n message = undefined;\n accessToken = verifyCodeResult.result.value;\n } else {\n setIsValidCode(false);\n status = \"error\";\n message = verifyCodeResult.result.value;\n accessToken = undefined;\n }\n\n if (status === \"error\") {\n setIsValidCode(false);\n console.warn(\"error:\", `Kod błędu: ${message}`);\n console.warn(\"Nieprawidłowy kod, spróbuj ponownie.\");\n }\n\n if (status === \"ok\") {\n if (accessToken) {\n savePanelSession(projectID, accessToken, email, host);\n }\n const returnURL = typeof window !== \"undefined\"\n ? readPersistedReturnURL()\n : null;\n setTimeout(() => {\n if (accessToken && returnURL) {\n window.location.href = buildAccessTokenRedirect(returnURL, accessToken);\n return;\n }\n window.location.reload();\n }, 100);\n }\n }\n\n function handleRetryInTime() {\n const intervalId = setInterval(() => {\n setRetryIn((prevRetryIn) => {\n if (prevRetryIn > 0) {\n return prevRetryIn - 1;\n } else {\n clearInterval(intervalId);\n return 0;\n }\n });\n }, 1000);\n\n return () => {\n clearInterval(intervalId);\n };\n }\n\n useEffect(() => {\n if (loginUserResponse?.status === \"ok\" && loginUserResponse?.retryIn > 0) {\n setRetryIn(loginUserResponse.retryIn);\n handleRetryInTime();\n }\n }, [loginUserResponse]);\n\n function backToLoginComponent() {\n setEmail(\"\");\n setLoginUserResponse(null);\n setResponseStatus(\"default\");\n reveal();\n }\n\n function onCodeSubmit(e: FormEvent<HTMLFormElement>) {\n e.preventDefault();\n void login();\n }\n\n return (\n <main className=\"mx-auto flex max-w-md flex-1 flex-col justify-center space-y-8\">\n <div className={cn(\"flex min-w-sm flex-col gap-6\")}>\n <Card>\n <CardHeader>\n <CardTitle className=\"text-2xl\">Wpisz kod z maila</CardTitle>\n <CardDescription>\n Sprawdź czy przypadkiem nie wylądował w spamie.\n </CardDescription>\n </CardHeader>\n <CardContent>\n <form onSubmit={onCodeSubmit} className=\"flex flex-col gap-6\">\n <div className=\"grid gap-2\">\n <div className=\"my-5 flex w-full items-center justify-center\">\n <div className=\"flex flex-col gap-2\">\n <InputOTP\n id=\"verify-code\"\n maxLength={6}\n pattern={REGEXP_ONLY_DIGITS}\n onChange={(newValue) => {\n handleInputChange(newValue);\n }}\n >\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n <InputOTPSlot index={2} />\n </InputOTPGroup>\n <InputOTPSeparator />\n <InputOTPGroup>\n <InputOTPSlot index={3} />\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n <span\n className={cn(\n !isValidCode && isSubmitted\n ? \"text-red-500\"\n : \"text-neutral-700 dark:text-neutral-400\",\n \"text-xs\",\n )}\n >\n {!isValidCode && isSubmitted\n ? code.length == 0\n ? \"Kod nie może być pusty\"\n : \"Kod musi składać się z cyfr\"\n : \"Wpisz kod z maila\"}\n </span>\n </div>\n </div>\n </div>\n\n <div>\n <Button\n type=\"submit\"\n disabled={isLoginLoading || isVerifyLoading}\n className=\"relative w-full\"\n >\n {(isLoginLoading || isVerifyLoading) && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <LoadingIndicator />\n </div>\n )}\n Zaloguj się\n </Button>\n {errMsg.length > 0 && (\n <p className=\"text-xs font-medium text-red-500\">{errMsg}</p>\n )}\n </div>\n </form>\n <div className=\"mt-4 text-center text-sm\">\n Nie masz kodu?{\" \"}\n <button\n type=\"button\"\n onClick={backToLoginComponent}\n className=\"underline underline-offset-4\"\n >\n Wróć\n </button>\n </div>\n </CardContent>\n </Card>\n </div>\n </main>\n );\n};\n\nconst PanelLoginComponentWrapper = () => {\n const { theme, allowedReturnOrigins, projectID, host } = usePanelConfig();\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#FFFFFF\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#FFFFFF\",\n } as CSSProperties;\n\n type Screen = \"login\" | \"verifyCode\";\n\n const [activeScreen, setActiveScreen] = useState<Screen>(\"login\");\n const [parent] = useAutoAnimate({\n duration: 300,\n easing: \"ease-in-out\",\n disrespectUserMotionPreference: false,\n });\n\n const reveal = () =>\n setActiveScreen((prevScreen) =>\n prevScreen === \"login\" ? \"verifyCode\" : \"login\",\n );\n\n const [email, setEmail] = useState<string>(\"\");\n const [responseStatus, setResponseStatus] =\n useState<LoginResponseStatus>(\"default\");\n const [loginUserResponse, setLoginUserResponse] = useState<{\n status: \"error\" | \"ok\";\n retryIn: number;\n message?: string | undefined;\n } | null>(null);\n const { mutateAsync: loginUserAsync, isPending: isLoginLoading } =\n useMutation(rpcProvider.publicApi.userPanelLogin);\n\n const [errMsg, setErrMsg] = useState(\"\");\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n if (window.parent !== window) return;\n\n const queryReturnURL = getReturnURLFromSearch(window.location.search);\n if (queryReturnURL) {\n persistReturnURL(queryReturnURL);\n }\n\n const returnURL = queryReturnURL ?? readPersistedReturnURL();\n if (!returnURL) return;\n\n const existingToken = getPanelSession(projectID, host);\n if (!existingToken) return;\n\n window.location.href = buildAccessTokenRedirect(returnURL, existingToken);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [allowedReturnOrigins, projectID, host]);\n\n async function loginUser() {\n setErrMsg(\"\");\n setResponseStatus(\"default\");\n const loginUserResult = await loginUserAsync({\n email: email,\n });\n\n const status = loginUserResult.result.case === \"success\" ? \"ok\" : \"error\";\n let retryIn = 0;\n let message = undefined;\n\n if (loginUserResult.result.case === \"success\") {\n retryIn = loginUserResult.result.value.retryIn;\n }\n\n if (status === \"error\") {\n message = \"Nieprawidłowy adres email, spróbuj ponownie.\";\n }\n\n setLoginUserResponse({\n status: status,\n retryIn: retryIn,\n message: message,\n });\n\n if (status === \"ok\" && activeScreen === \"login\") {\n reveal();\n } else if (status === \"ok\" && activeScreen === \"verifyCode\") {\n setResponseStatus(\"success\");\n } else if (status === \"error\") {\n setErrMsg(message ?? \"Nieprawidłowy adres email, spróbuj ponownie.\");\n }\n }\n\n return (\n <div className=\"bg-white text-black dark:bg-black dark:text-white\">\n <div\n className=\"font-inter flex h-screen w-screen flex-col p-4\"\n style={styles}\n ref={parent}\n >\n <header>\n {theme?.logoDarkURL && (\n <img\n src={theme?.logoDarkURL}\n className=\"hidden dark:inline\"\n alt=\"Company Logo\"\n draggable={false}\n />\n )}\n {theme?.logoURL && (\n <img\n src={theme?.logoURL}\n className=\"dark:hidden\"\n alt=\"Company Logo\"\n draggable={false}\n />\n )}\n </header>\n {activeScreen === \"login\" && (\n <LoginUserPanel\n projectID={projectID}\n host={host}\n reveal={reveal}\n email={email}\n setEmail={setEmail}\n loginUser={loginUser}\n isLoginLoading={isLoginLoading}\n errMsg={errMsg}\n />\n )}\n {activeScreen === \"verifyCode\" && (\n <VerifyCodePanel\n projectID={projectID}\n host={host}\n email={email}\n reveal={reveal}\n setEmail={setEmail}\n loginUser={loginUser}\n isLoginLoading={isLoginLoading}\n loginUserResponse={loginUserResponse}\n setLoginUserResponse={setLoginUserResponse}\n responseStatus={responseStatus}\n setResponseStatus={setResponseStatus}\n errMsg={errMsg}\n />\n )}\n </div>\n </div>\n );\n};\n\nexport const PanelLogin = () => {\n return <PanelLoginComponentWrapper />;\n};\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport type Modify<T, R> = Omit<T, keyof R> & R;\n\nexport type Partial<T> = {\n [P in keyof T]?: T[P];\n};\n","import {\n TransportProvider,\n useMutation as um,\n useQuery as uq,\n} from \"@connectrpc/connect-query\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport React, { useState } from \"react\";\n\nimport { Transport } from \"@connectrpc/connect\";\nimport { HOST, setCustomHost } from \"./components/checkout/constants\";\nimport * as notificationsRouter from \"./gen/proto/dashboard/v1/notifications-NotificationsService_connectquery\";\nimport * as publicApiRouter from \"./gen/proto/public/v1/public_api-PublicApiService_connectquery\";\nimport * as returnsRouter from \"./gen/proto/public/v1/returns-ReturnsService_connectquery\";\n\nlet currentFinalTransportHost: string | undefined;\nlet finalTransport: Transport | undefined;\n\n// @ts-ignore\nBigInt.prototype.toJSON = function () {\n return this.toString();\n};\n\nexport const rpcProvider = {\n publicApi: publicApiRouter,\n notifications: notificationsRouter,\n returns: returnsRouter,\n};\n\nexport const useQuery = uq;\nexport const useMutation = um;\n\nlet customHost: string | undefined;\n\nexport function setHost(host: string): void {\n customHost = host;\n setCustomHost(host);\n}\n\nfunction getTransportHost(): string {\n return customHost ?? HOST;\n}\n\nexport const RpcProvider: React.FC<{\n children: React.ReactNode;\n}> = ({ children }) => {\n const transportHost = getTransportHost();\n\n if (finalTransport == null || currentFinalTransportHost !== transportHost) {\n currentFinalTransportHost = transportHost;\n finalTransport = createConnectTransport({\n baseUrl: transportHost + \"/api/rpc\",\n useBinaryFormat: true,\n // @ts-ignore\n fetch: async (input, init?) => {\n return fetch(input, {\n ...init,\n keepalive: false,\n credentials: \"include\",\n });\n },\n });\n }\n\n const [queryClient] = useState(\n () =>\n new QueryClient({\n defaultOptions: { queries: { staleTime: 5000 } },\n }),\n );\n\n return (\n <TransportProvider transport={finalTransport}>\n <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>\n </TransportProvider>\n );\n};\n","export let HOST = \"https://bitsnap.pl\";\n\nexport function setCustomHost(host: string) {\n console.log(\"setCustomHost\", host);\n HOST = host;\n}\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { NotificationsService } from \"./notifications_pb\";\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\nexport const createNotificationSetting = NotificationsService.method.createNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\nexport const readNotificationSetting = NotificationsService.method.readNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\nexport const updateNotificationSetting = NotificationsService.method.updateNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\nexport const deleteNotificationSetting = NotificationsService.method.deleteNotificationSetting;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\nexport const createNotificationGroup = NotificationsService.method.createNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\nexport const readNotificationGroups = NotificationsService.method.readNotificationGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\nexport const updateNotificationGroup = NotificationsService.method.updateNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\nexport const deleteNotificationGroup = NotificationsService.method.deleteNotificationGroup;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\nexport const createNotificationUser = NotificationsService.method.createNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\nexport const readNotificationUsers = NotificationsService.method.readNotificationUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\nexport const updateNotificationUser = NotificationsService.method.updateNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\nexport const deleteNotificationUser = NotificationsService.method.deleteNotificationUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\nexport const createNotificationGroupUser = NotificationsService.method.createNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\nexport const readNotificationGroupUsers = NotificationsService.method.readNotificationGroupUsers;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\nexport const updateNotificationGroupUser = NotificationsService.method.updateNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\nexport const deleteNotificationGroupUser = NotificationsService.method.deleteNotificationGroupUser;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\nexport const createNotificationMessage = NotificationsService.method.createNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\nexport const readNotificationMessages = NotificationsService.method.readNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\nexport const getSentNotificationMessages = NotificationsService.method.getSentNotificationMessages;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\nexport const updateNotificationMessage = NotificationsService.method.updateNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\nexport const deleteNotificationMessage = NotificationsService.method.deleteNotificationMessage;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\nexport const createNotificationMessageJob = NotificationsService.method.createNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\nexport const readNotificationMessageJobs = NotificationsService.method.readNotificationMessageJobs;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\nexport const updateNotificationMessageJob = NotificationsService.method.updateNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\nexport const deleteNotificationMessageJob = NotificationsService.method.deleteNotificationMessageJob;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\nexport const readNotificationProducts = NotificationsService.method.readNotificationProducts;\n\n/**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\nexport const getNotificationUserSettings = NotificationsService.method.getNotificationUserSettings;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\nexport const verifyUserEmail = NotificationsService.method.verifyUserEmail;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\nexport const getUserGroups = NotificationsService.method.getUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\nexport const updateUserGroups = NotificationsService.method.updateUserGroups;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\nexport const getProjectedRecipientCount = NotificationsService.method.getProjectedRecipientCount;\n\n/**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationStats\n */\nexport const getNotificationStats = NotificationsService.method.getNotificationStats;\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file dashboard/v1/notifications.proto (package dashboard.notifications.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { SearchProductsResponseSchema } from \"./product_pb\";\nimport { file_dashboard_v1_product } from \"./product_pb\";\nimport type { NotificationGroupHowOften } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/notifications.proto.\n */\nexport const file_dashboard_v1_notifications: GenFile = /*@__PURE__*/\n fileDesc(\"CiBkYXNoYm9hcmQvdjEvbm90aWZpY2F0aW9ucy5wcm90bxIaZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEiYAoWVmVyaWZ5VXNlckVtYWlsUmVxdWVzdBISCgVlbWFpbBgBIAEoCUgAiAEBEhEKBGNvZGUYAiABKAlIAYgBARIMCgRzbHVnGAMgASgJQggKBl9lbWFpbEIHCgVfY29kZSJ/ChdWZXJpZnlVc2VyRW1haWxSZXNwb25zZRIPCgJvaxgBIAEoCEgAiAEBEhkKDGFjY2Vzc190b2tlbhgCIAEoCUgBiAEBEhQKB3VzZXJfaWQYAyABKAlIAogBAUIFCgNfb2tCDwoNX2FjY2Vzc190b2tlbkIKCghfdXNlcl9pZCJQChRHZXRVc2VyR3JvdXBzUmVxdWVzdBIMCgRzbHVnGAEgASgJEhkKDGFjY2Vzc190b2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XF1ZXN0Gj8uZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuR2V0Tm90aWZpY2F0aW9uVXNlclNldHRpbmdzUmVzcG9uc2USegoPVmVyaWZ5VXNlckVtYWlsEjIuZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuVmVyaWZ5VXNlckVtYWlsUmVxdWVzdBozLmRhc2hib2FyZC5ub3RpZmljYXRpb25zLnYxLlZlcmlmeVVzZXJFbWFpbFJlc3BvbnNlEnQKDUdldFVzZXJHcm91cHMSMC5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXRVc2VyR3JvdXBzUmVxdWVzdBoxLmRhc2hib2FyZC5ub3RpZmljYXRpb25zLnYxLkdldFVzZXJHcm91cHNSZXNwb25zZRJfChBVcGRhdGVVc2VyR3JvdXBzEjMuZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuVXBkYXRlVXNlckdyb3Vwc1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkSmwEKGkdldFByb2plY3RlZFJlY2lwaWVudENvdW50Ej0uZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuR2V0UHJvamVjdGVkUmVjaXBpZW50Q291bnRSZXF1ZXN0Gj4uZGFzaGJvYXJkLm5vdGlmaWNhdGlvbnMudjEuR2V0UHJvamVjdGVkUmVjaXBpZW50Q291bnRSZXNwb25zZRKJAQoUR2V0Tm90aWZpY2F0aW9uU3RhdHMSNy5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXROb3RpZmljYXRpb25TdGF0c1JlcXVlc3QaOC5kYXNoYm9hcmQubm90aWZpY2F0aW9ucy52MS5HZXROb3RpZmljYXRpb25TdGF0c1Jlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_timestamp, file_google_protobuf_empty, file_dashboard_v1_product, file_common_v1_push_notifications]);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailRequest\n */\nexport type VerifyUserEmailRequest = Message<\"dashboard.notifications.v1.VerifyUserEmailRequest\"> & {\n /**\n * @generated from field: optional string email = 1;\n */\n email?: string;\n\n /**\n * @generated from field: optional string code = 2;\n */\n code?: string;\n\n /**\n * @generated from field: string slug = 3;\n */\n slug: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailRequest.\n * Use `create(VerifyUserEmailRequestSchema)` to create a new message.\n */\nexport const VerifyUserEmailRequestSchema: GenMessage<VerifyUserEmailRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.VerifyUserEmailResponse\n */\nexport type VerifyUserEmailResponse = Message<\"dashboard.notifications.v1.VerifyUserEmailResponse\"> & {\n /**\n * @generated from field: optional bool ok = 1;\n */\n ok?: boolean;\n\n /**\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 3;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.VerifyUserEmailResponse.\n * Use `create(VerifyUserEmailResponseSchema)` to create a new message.\n */\nexport const VerifyUserEmailResponseSchema: GenMessage<VerifyUserEmailResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsRequest\n */\nexport type GetUserGroupsRequest = Message<\"dashboard.notifications.v1.GetUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * if access token is not provided, all groups are off and user needs to check which groups are for him.\n *\n * @generated from field: optional string access_token = 2;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsRequest.\n * Use `create(GetUserGroupsRequestSchema)` to create a new message.\n */\nexport const GetUserGroupsRequestSchema: GenMessage<GetUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse\n */\nexport type GetUserGroupsResponse = Message<\"dashboard.notifications.v1.GetUserGroupsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.GetUserGroupsResponse.Group groups = 1;\n */\n groups: GetUserGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.\n * Use `create(GetUserGroupsResponseSchema)` to create a new message.\n */\nexport const GetUserGroupsResponseSchema: GenMessage<GetUserGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3);\n\n/**\n * @generated from message dashboard.notifications.v1.GetUserGroupsResponse.Group\n */\nexport type GetUserGroupsResponse_Group = Message<\"dashboard.notifications.v1.GetUserGroupsResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool is_on = 4;\n */\n isOn: boolean;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften?: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetUserGroupsResponse.Group.\n * Use `create(GetUserGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const GetUserGroupsResponse_GroupSchema: GenMessage<GetUserGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 3, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateUserGroupsRequest\n */\nexport type UpdateUserGroupsRequest = Message<\"dashboard.notifications.v1.UpdateUserGroupsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: repeated string group_ids = 3;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string access_token = 4;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateUserGroupsRequest.\n * Use `create(UpdateUserGroupsRequestSchema)` to create a new message.\n */\nexport const UpdateUserGroupsRequestSchema: GenMessage<UpdateUserGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 4);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsRequest\n */\nexport type GetNotificationUserSettingsRequest = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string user_id = 2;\n */\n userId: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsRequest.\n * Use `create(GetNotificationUserSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsRequestSchema: GenMessage<GetNotificationUserSettingsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 5);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse\n */\nexport type GetNotificationUserSettingsResponse = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetNotificationUserSettingsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result success = 1;\n */\n value: GetNotificationUserSettingsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.\n * Use `create(GetNotificationUserSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponseSchema: GenMessage<GetNotificationUserSettingsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\n */\nexport type GetNotificationUserSettingsResponse_Result = Message<\"dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * it can be unavailable for certain of reasons.\n *\n * @generated from field: bool email_notification_available = 6;\n */\n emailNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool sms_notification_available = 7;\n */\n smsNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool mobile_notification_available = 8;\n */\n mobileNotificationAvailable: boolean;\n\n /**\n * @generated from field: bool has_user_installed_app = 9;\n */\n hasUserInstalledApp: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationUserSettingsResponse.Result.\n * Use `create(GetNotificationUserSettingsResponse_ResultSchema)` to create a new message.\n */\nexport const GetNotificationUserSettingsResponse_ResultSchema: GenMessage<GetNotificationUserSettingsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 6, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationSettingRequest\n */\nexport type CreateNotificationSettingRequest = Message<\"dashboard.notifications.v1.CreateNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationSettingRequest.\n * Use `create(CreateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const CreateNotificationSettingRequestSchema: GenMessage<CreateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 7);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingRequest\n */\nexport type ReadNotificationSettingRequest = Message<\"dashboard.notifications.v1.ReadNotificationSettingRequest\"> & {\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingRequest.\n * Use `create(ReadNotificationSettingRequestSchema)` to create a new message.\n */\nexport const ReadNotificationSettingRequestSchema: GenMessage<ReadNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 8);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationSettingRequest\n */\nexport type UpdateNotificationSettingRequest = Message<\"dashboard.notifications.v1.UpdateNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationSettingRequest.\n * Use `create(UpdateNotificationSettingRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingRequestSchema: GenMessage<UpdateNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 9);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationSettingRequest\n */\nexport type DeleteNotificationSettingRequest = Message<\"dashboard.notifications.v1.DeleteNotificationSettingRequest\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationSettingRequest.\n * Use `create(DeleteNotificationSettingRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationSettingRequestSchema: GenMessage<DeleteNotificationSettingRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 10);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse\n */\nexport type ReadNotificationSettingResponse = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationSettingResponse.Result success = 1;\n */\n value: ReadNotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.\n * Use `create(ReadNotificationSettingResponseSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponseSchema: GenMessage<ReadNotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationSettingResponse.Result\n */\nexport type ReadNotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n\n /**\n * @generated from field: string subscription_slug = 2;\n */\n subscriptionSlug: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 3;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 4;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 5;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationSettingResponse.Result.\n * Use `create(ReadNotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationSettingResponse_ResultSchema: GenMessage<ReadNotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 11, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse\n */\nexport type NotificationSettingResponse = Message<\"dashboard.notifications.v1.NotificationSettingResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationSettingResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationSettingResponse.Result success = 1;\n */\n value: NotificationSettingResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.\n * Use `create(NotificationSettingResponseSchema)` to create a new message.\n */\nexport const NotificationSettingResponseSchema: GenMessage<NotificationSettingResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationSettingResponse.Result\n */\nexport type NotificationSettingResponse_Result = Message<\"dashboard.notifications.v1.NotificationSettingResponse.Result\"> & {\n /**\n * @generated from field: string notification_setting_id = 1;\n */\n notificationSettingId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationSettingResponse.Result.\n * Use `create(NotificationSettingResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationSettingResponse_ResultSchema: GenMessage<NotificationSettingResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 12, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupRequest\n */\nexport type CreateNotificationGroupRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 2;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 3;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 4;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupRequest.\n * Use `create(CreateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupRequestSchema: GenMessage<CreateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 13);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsRequest\n */\nexport type ReadNotificationGroupsRequest = Message<\"dashboard.notifications.v1.ReadNotificationGroupsRequest\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n\n /**\n * @generated from field: optional string group_name = 2;\n */\n groupName?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsRequest.\n * Use `create(ReadNotificationGroupsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsRequestSchema: GenMessage<ReadNotificationGroupsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 14);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupRequest\n */\nexport type UpdateNotificationGroupRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: optional bool is_public = 5;\n */\n isPublic?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupRequest.\n * Use `create(UpdateNotificationGroupRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupRequestSchema: GenMessage<UpdateNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 15);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupRequest\n */\nexport type DeleteNotificationGroupRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupRequest.\n * Use `create(DeleteNotificationGroupRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupRequestSchema: GenMessage<DeleteNotificationGroupRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 16);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse\n */\nexport type ReadNotificationGroupsResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupsResponse.Result success = 1;\n */\n value: ReadNotificationGroupsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.\n * Use `create(ReadNotificationGroupsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponseSchema: GenMessage<ReadNotificationGroupsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\n */\nexport type ReadNotificationGroupsResponse_Group = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Group\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional common.v1.NotificationGroupHowOften how_often = 4;\n */\n howOften?: NotificationGroupHowOften;\n\n /**\n * @generated from field: int32 users = 5;\n */\n users: number;\n\n /**\n * @generated from field: bool is_public = 6;\n */\n isPublic: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Group.\n * Use `create(ReadNotificationGroupsResponse_GroupSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_GroupSchema: GenMessage<ReadNotificationGroupsResponse_Group> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\n */\nexport type ReadNotificationGroupsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationGroupsResponse.Group groups = 1;\n */\n groups: ReadNotificationGroupsResponse_Group[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupsResponse.Result.\n * Use `create(ReadNotificationGroupsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupsResponse_ResultSchema: GenMessage<ReadNotificationGroupsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 17, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse\n */\nexport type NotificationGroupResponse = Message<\"dashboard.notifications.v1.NotificationGroupResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupResponse.Result success = 1;\n */\n value: NotificationGroupResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.\n * Use `create(NotificationGroupResponseSchema)` to create a new message.\n */\nexport const NotificationGroupResponseSchema: GenMessage<NotificationGroupResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupResponse.Result\n */\nexport type NotificationGroupResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupResponse.Result.\n * Use `create(NotificationGroupResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupResponse_ResultSchema: GenMessage<NotificationGroupResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 18, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationUserRequest\n */\nexport type CreateNotificationUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: repeated string groups = 3;\n */\n groups: string[];\n\n /**\n * @generated from field: optional string phone = 4;\n */\n phone?: string;\n\n /**\n * @generated from field: optional string first_name = 5;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 6;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 7;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 8;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 9;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationUserRequest.\n * Use `create(CreateNotificationUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationUserRequestSchema: GenMessage<CreateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 19);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersRequest\n */\nexport type ReadNotificationUsersRequest = Message<\"dashboard.notifications.v1.ReadNotificationUsersRequest\"> & {\n /**\n * @generated from field: repeated string user_ids = 1;\n */\n userIds: string[];\n\n /**\n * @generated from field: optional string user_email = 2;\n */\n userEmail?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersRequest.\n * Use `create(ReadNotificationUsersRequestSchema)` to create a new message.\n */\nexport const ReadNotificationUsersRequestSchema: GenMessage<ReadNotificationUsersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 20);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationUserRequest\n */\nexport type UpdateNotificationUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationUserRequest\"> & {\n /**\n * @generated from field: string slug = 1;\n */\n slug: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string access_token = 8;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationUserRequest.\n * Use `create(UpdateNotificationUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationUserRequestSchema: GenMessage<UpdateNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 21);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationUserRequest\n */\nexport type DeleteNotificationUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationUserRequest\"> & {\n /**\n * @generated from field: string user_id = 1;\n */\n userId: string;\n\n /**\n * @generated from field: string slug = 2;\n */\n slug: string;\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationUserRequest.\n * Use `create(DeleteNotificationUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationUserRequestSchema: GenMessage<DeleteNotificationUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 22);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse\n */\nexport type ReadNotificationUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationUsersResponse.Result success = 1;\n */\n value: ReadNotificationUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.\n * Use `create(ReadNotificationUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponseSchema: GenMessage<ReadNotificationUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationUsersResponse.Result\n */\nexport type ReadNotificationUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationUsersResponse.Result.\n * Use `create(ReadNotificationUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationUsersResponse_ResultSchema: GenMessage<ReadNotificationUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 23, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse\n */\nexport type NotificationUserResponse = Message<\"dashboard.notifications.v1.NotificationUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationUserResponse.Result success = 1;\n */\n value: NotificationUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: optional string access_token = 3;\n */\n accessToken?: string;\n\n /**\n * @generated from field: optional string user_id = 4;\n */\n userId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.\n * Use `create(NotificationUserResponseSchema)` to create a new message.\n */\nexport const NotificationUserResponseSchema: GenMessage<NotificationUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationUserResponse.Result\n */\nexport type NotificationUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationUserResponse.Result.\n * Use `create(NotificationUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationUserResponse_ResultSchema: GenMessage<NotificationUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 24, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationGroupUserRequest\n */\nexport type CreateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.CreateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_id = 1;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 2;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationGroupUserRequest.\n * Use `create(CreateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const CreateNotificationGroupUserRequestSchema: GenMessage<CreateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 25);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersRequests\n */\nexport type ReadNotificationGroupUsersRequests = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersRequests\"> & {\n /**\n * @generated from field: repeated string group_ids = 1;\n */\n groupIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersRequests.\n * Use `create(ReadNotificationGroupUsersRequestsSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersRequestsSchema: GenMessage<ReadNotificationGroupUsersRequests> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 26);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationGroupUserRequest\n */\nexport type UpdateNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.UpdateNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n\n /**\n * @generated from field: string notification_group_id = 2;\n */\n notificationGroupId: string;\n\n /**\n * @generated from field: string notification_user_id = 3;\n */\n notificationUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationGroupUserRequest.\n * Use `create(UpdateNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationGroupUserRequestSchema: GenMessage<UpdateNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 27);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationGroupUserRequest\n */\nexport type DeleteNotificationGroupUserRequest = Message<\"dashboard.notifications.v1.DeleteNotificationGroupUserRequest\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationGroupUserRequest.\n * Use `create(DeleteNotificationGroupUserRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationGroupUserRequestSchema: GenMessage<DeleteNotificationGroupUserRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 28);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse\n */\nexport type ReadNotificationGroupUsersResponse = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationGroupUsersResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result success = 1;\n */\n value: ReadNotificationGroupUsersResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.\n * Use `create(ReadNotificationGroupUsersResponseSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponseSchema: GenMessage<ReadNotificationGroupUsersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\n */\nexport type ReadNotificationGroupUsersResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.User users = 1;\n */\n users: User[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationGroupUsersResponse.Result.\n * Use `create(ReadNotificationGroupUsersResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationGroupUsersResponse_ResultSchema: GenMessage<ReadNotificationGroupUsersResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 29, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse\n */\nexport type NotificationGroupUserResponse = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationGroupUserResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationGroupUserResponse.Result success = 1;\n */\n value: NotificationGroupUserResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.\n * Use `create(NotificationGroupUserResponseSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponseSchema: GenMessage<NotificationGroupUserResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationGroupUserResponse.Result\n */\nexport type NotificationGroupUserResponse_Result = Message<\"dashboard.notifications.v1.NotificationGroupUserResponse.Result\"> & {\n /**\n * @generated from field: string notification_group_user_id = 1;\n */\n notificationGroupUserId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationGroupUserResponse.Result.\n * Use `create(NotificationGroupUserResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationGroupUserResponse_ResultSchema: GenMessage<NotificationGroupUserResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 30, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessage\n */\nexport type NotificationMessage = Message<\"dashboard.notifications.v1.NotificationMessage\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 15;\n */\n openUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessage.\n * Use `create(NotificationMessageSchema)` to create a new message.\n */\nexport const NotificationMessageSchema: GenMessage<NotificationMessage> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 31);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageRequest\n */\nexport type CreateNotificationMessageRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 1;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 2;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 3;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 4;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 5;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 6;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: optional string open_url = 13;\n */\n openUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 7;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 8;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 9;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 10;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 11;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 12;\n */\n smsNotificationEnabled: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageRequest.\n * Use `create(CreateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageRequestSchema: GenMessage<CreateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 32);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesRequest\n */\nexport type GetSentNotificationMessagesRequest = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp start_time = 2;\n */\n startTime?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_time = 3;\n */\n endTime?: Timestamp;\n\n /**\n * @generated from field: optional bool include_export_data = 4;\n */\n includeExportData?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesRequest.\n * Use `create(GetSentNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesRequestSchema: GenMessage<GetSentNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 33);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse\n */\nexport type GetSentNotificationMessagesResponse = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetSentNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result success = 1;\n */\n value: GetSentNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.\n * Use `create(GetSentNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponseSchema: GenMessage<GetSentNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\n */\nexport type GetSentNotificationMessagesResponse_NotificationMessageStats = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats\"> & {\n /**\n * @generated from field: int32 sent = 1;\n */\n sent: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats.\n * Use `create(GetSentNotificationMessagesResponse_NotificationMessageStatsSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_NotificationMessageStatsSchema: GenMessage<GetSentNotificationMessagesResponse_NotificationMessageStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\n */\nexport type GetSentNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n\n /**\n * @generated from field: dashboard.notifications.v1.GetSentNotificationMessagesResponse.NotificationMessageStats stats = 2;\n */\n stats?: GetSentNotificationMessagesResponse_NotificationMessageStats;\n\n /**\n * @generated from field: optional bytes export_data = 3;\n */\n exportData?: Uint8Array;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetSentNotificationMessagesResponse.Result.\n * Use `create(GetSentNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const GetSentNotificationMessagesResponse_ResultSchema: GenMessage<GetSentNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 34, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesRequest\n */\nexport type ReadNotificationMessagesRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessagesRequest\"> & {\n /**\n * @generated from field: optional string notification_message_id = 1;\n */\n notificationMessageId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesRequest.\n * Use `create(ReadNotificationMessagesRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesRequestSchema: GenMessage<ReadNotificationMessagesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 35);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageRequest\n */\nexport type UpdateNotificationMessageRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageStatus status = 2;\n */\n status: NotificationMessageStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp send_at = 3;\n */\n sendAt?: Timestamp;\n\n /**\n * @generated from field: string title = 4;\n */\n title: string;\n\n /**\n * @generated from field: optional string subtitle = 5;\n */\n subtitle?: string;\n\n /**\n * @generated from field: optional string message = 6;\n */\n message?: string;\n\n /**\n * @generated from field: optional string image_url = 7;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: repeated string groups = 8;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 9;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 10;\n */\n users: string[];\n\n /**\n * @generated from field: bool mobile_notification_enabled = 11;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 12;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 13;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: optional string error_message = 14;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageRequest.\n * Use `create(UpdateNotificationMessageRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageRequestSchema: GenMessage<UpdateNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 36);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageRequest\n */\nexport type DeleteNotificationMessageRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageRequest\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageRequest.\n * Use `create(DeleteNotificationMessageRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageRequestSchema: GenMessage<DeleteNotificationMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 37);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse\n */\nexport type ReadNotificationMessagesResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessagesResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessagesResponse.Result success = 1;\n */\n value: ReadNotificationMessagesResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.\n * Use `create(ReadNotificationMessagesResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponseSchema: GenMessage<ReadNotificationMessagesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\n */\nexport type ReadNotificationMessagesResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessagesResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.NotificationMessage notification_messages = 1;\n */\n notificationMessages: NotificationMessage[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessagesResponse.Result.\n * Use `create(ReadNotificationMessagesResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessagesResponse_ResultSchema: GenMessage<ReadNotificationMessagesResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 38, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse\n */\nexport type NotificationMessageResponse = Message<\"dashboard.notifications.v1.NotificationMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageResponse.Result success = 1;\n */\n value: NotificationMessageResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.\n * Use `create(NotificationMessageResponseSchema)` to create a new message.\n */\nexport const NotificationMessageResponseSchema: GenMessage<NotificationMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageResponse.Result\n */\nexport type NotificationMessageResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_id = 1;\n */\n notificationMessageId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageResponse.Result.\n * Use `create(NotificationMessageResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageResponse_ResultSchema: GenMessage<NotificationMessageResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 39, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.CreateNotificationMessageJobRequest\n */\nexport type CreateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.CreateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 1;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 2;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 3;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 4;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 5;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 6;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.CreateNotificationMessageJobRequest.\n * Use `create(CreateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const CreateNotificationMessageJobRequestSchema: GenMessage<CreateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 40);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsRequest\n */\nexport type ReadNotificationMessageJobsRequest = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsRequest\"> & {\n /**\n * @generated from field: optional string notification_message_job_id = 1;\n */\n notificationMessageJobId?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsRequest.\n * Use `create(ReadNotificationMessageJobsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsRequestSchema: GenMessage<ReadNotificationMessageJobsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 41);\n\n/**\n * @generated from message dashboard.notifications.v1.UpdateNotificationMessageJobRequest\n */\nexport type UpdateNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.UpdateNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: optional string error_message = 4;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.UpdateNotificationMessageJobRequest.\n * Use `create(UpdateNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationMessageJobRequestSchema: GenMessage<UpdateNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 42);\n\n/**\n * @generated from message dashboard.notifications.v1.DeleteNotificationMessageJobRequest\n */\nexport type DeleteNotificationMessageJobRequest = Message<\"dashboard.notifications.v1.DeleteNotificationMessageJobRequest\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.DeleteNotificationMessageJobRequest.\n * Use `create(DeleteNotificationMessageJobRequestSchema)` to create a new message.\n */\nexport const DeleteNotificationMessageJobRequestSchema: GenMessage<DeleteNotificationMessageJobRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 43);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse\n */\nexport type ReadNotificationMessageJobsResponse = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.ReadNotificationMessageJobsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result success = 1;\n */\n value: ReadNotificationMessageJobsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.\n * Use `create(ReadNotificationMessageJobsResponseSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponseSchema: GenMessage<ReadNotificationMessageJobsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\n */\nexport type ReadNotificationMessageJobsResponse_NotificationMessageJob = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobStatus status = 2;\n */\n status: NotificationMessageJobStatus;\n\n /**\n * @generated from field: google.protobuf.Timestamp sent_at = 3;\n */\n sentAt?: Timestamp;\n\n /**\n * @generated from field: string customer_id = 4;\n */\n customerId: string;\n\n /**\n * @generated from field: string notification_message_id = 5;\n */\n notificationMessageId: string;\n\n /**\n * @generated from field: repeated string priority = 6;\n */\n priority: string[];\n\n /**\n * @generated from field: optional string error_message = 7;\n */\n errorMessage?: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob.\n * Use `create(ReadNotificationMessageJobsResponse_NotificationMessageJobSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_NotificationMessageJobSchema: GenMessage<ReadNotificationMessageJobsResponse_NotificationMessageJob> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\n */\nexport type ReadNotificationMessageJobsResponse_Result = Message<\"dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.notifications.v1.ReadNotificationMessageJobsResponse.NotificationMessageJob notification_message_jobs = 1;\n */\n notificationMessageJobs: ReadNotificationMessageJobsResponse_NotificationMessageJob[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationMessageJobsResponse.Result.\n * Use `create(ReadNotificationMessageJobsResponse_ResultSchema)` to create a new message.\n */\nexport const ReadNotificationMessageJobsResponse_ResultSchema: GenMessage<ReadNotificationMessageJobsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 44, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse\n */\nexport type NotificationMessageJobResponse = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.NotificationMessageJobResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.NotificationMessageJobResponse.Result success = 1;\n */\n value: NotificationMessageJobResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.\n * Use `create(NotificationMessageJobResponseSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponseSchema: GenMessage<NotificationMessageJobResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45);\n\n/**\n * @generated from message dashboard.notifications.v1.NotificationMessageJobResponse.Result\n */\nexport type NotificationMessageJobResponse_Result = Message<\"dashboard.notifications.v1.NotificationMessageJobResponse.Result\"> & {\n /**\n * @generated from field: string notification_message_job_id = 1;\n */\n notificationMessageJobId: string;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.NotificationMessageJobResponse.Result.\n * Use `create(NotificationMessageJobResponse_ResultSchema)` to create a new message.\n */\nexport const NotificationMessageJobResponse_ResultSchema: GenMessage<NotificationMessageJobResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 45, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.User\n */\nexport type User = Message<\"dashboard.notifications.v1.User\"> & {\n /**\n * @generated from field: string notification_user_id = 1;\n */\n notificationUserId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional string first_name = 3;\n */\n firstName?: string;\n\n /**\n * @generated from field: optional string last_name = 4;\n */\n lastName?: string;\n\n /**\n * @generated from field: bool mobile_notification_enabled = 5;\n */\n mobileNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool email_notification_enabled = 6;\n */\n emailNotificationEnabled: boolean;\n\n /**\n * @generated from field: bool sms_notification_enabled = 7;\n */\n smsNotificationEnabled: boolean;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: optional bool is_app_installed = 9;\n */\n isAppInstalled?: boolean;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.User.\n * Use `create(UserSchema)` to create a new message.\n */\nexport const UserSchema: GenMessage<User> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 46);\n\n/**\n * @generated from message dashboard.notifications.v1.ReadNotificationProductsRequest\n */\nexport type ReadNotificationProductsRequest = Message<\"dashboard.notifications.v1.ReadNotificationProductsRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.ReadNotificationProductsRequest.\n * Use `create(ReadNotificationProductsRequestSchema)` to create a new message.\n */\nexport const ReadNotificationProductsRequestSchema: GenMessage<ReadNotificationProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 47);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountRequest\n */\nexport type GetProjectedRecipientCountRequest = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountRequest\"> & {\n /**\n * @generated from field: repeated string groups = 1;\n */\n groups: string[];\n\n /**\n * @generated from field: repeated string products = 2;\n */\n products: string[];\n\n /**\n * @generated from field: repeated string users = 3;\n */\n users: string[];\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountRequest.\n * Use `create(GetProjectedRecipientCountRequestSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountRequestSchema: GenMessage<GetProjectedRecipientCountRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 48);\n\n/**\n * @generated from message dashboard.notifications.v1.GetProjectedRecipientCountResponse\n */\nexport type GetProjectedRecipientCountResponse = Message<\"dashboard.notifications.v1.GetProjectedRecipientCountResponse\"> & {\n /**\n * @generated from field: int32 total = 1;\n */\n total: number;\n\n /**\n * @generated from field: int32 email_count = 2;\n */\n emailCount: number;\n\n /**\n * @generated from field: int32 sms_count = 3;\n */\n smsCount: number;\n\n /**\n * @generated from field: int32 mobile_count = 4;\n */\n mobileCount: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetProjectedRecipientCountResponse.\n * Use `create(GetProjectedRecipientCountResponseSchema)` to create a new message.\n */\nexport const GetProjectedRecipientCountResponseSchema: GenMessage<GetProjectedRecipientCountResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 49);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsRequest\n */\nexport type GetNotificationStatsRequest = Message<\"dashboard.notifications.v1.GetNotificationStatsRequest\"> & {\n /**\n * @generated from field: optional google.protobuf.Timestamp start_time = 1;\n */\n startTime?: Timestamp;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp end_time = 2;\n */\n endTime?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsRequest.\n * Use `create(GetNotificationStatsRequestSchema)` to create a new message.\n */\nexport const GetNotificationStatsRequestSchema: GenMessage<GetNotificationStatsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 50);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse\n */\nexport type GetNotificationStatsResponse = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse\"> & {\n /**\n * @generated from oneof dashboard.notifications.v1.GetNotificationStatsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.Result success = 1;\n */\n value: GetNotificationStatsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.notifications.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.\n * Use `create(GetNotificationStatsResponseSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponseSchema: GenMessage<GetNotificationStatsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown\n */\nexport type GetNotificationStatsResponse_StatusBreakdown = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown\"> & {\n /**\n * @generated from field: int32 drafts = 1;\n */\n drafts: number;\n\n /**\n * @generated from field: int32 planned = 2;\n */\n planned: number;\n\n /**\n * @generated from field: int32 in_progress = 3;\n */\n inProgress: number;\n\n /**\n * @generated from field: int32 sent = 4;\n */\n sent: number;\n\n /**\n * @generated from field: int32 error = 5;\n */\n error: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown.\n * Use `create(GetNotificationStatsResponse_StatusBreakdownSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_StatusBreakdownSchema: GenMessage<GetNotificationStatsResponse_StatusBreakdown> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 0);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown\n */\nexport type GetNotificationStatsResponse_ChannelBreakdown = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown\"> & {\n /**\n * @generated from field: int32 mobile = 1;\n */\n mobile: number;\n\n /**\n * @generated from field: int32 email = 2;\n */\n email: number;\n\n /**\n * @generated from field: int32 sms = 3;\n */\n sms: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown.\n * Use `create(GetNotificationStatsResponse_ChannelBreakdownSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_ChannelBreakdownSchema: GenMessage<GetNotificationStatsResponse_ChannelBreakdown> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 1);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint\n */\nexport type GetNotificationStatsResponse_TimelinePoint = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint\"> & {\n /**\n * @generated from field: string date = 1;\n */\n date: string;\n\n /**\n * @generated from field: int32 count = 2;\n */\n count: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint.\n * Use `create(GetNotificationStatsResponse_TimelinePointSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_TimelinePointSchema: GenMessage<GetNotificationStatsResponse_TimelinePoint> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 2);\n\n/**\n * @generated from message dashboard.notifications.v1.GetNotificationStatsResponse.Result\n */\nexport type GetNotificationStatsResponse_Result = Message<\"dashboard.notifications.v1.GetNotificationStatsResponse.Result\"> & {\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.StatusBreakdown status_breakdown = 1;\n */\n statusBreakdown?: GetNotificationStatsResponse_StatusBreakdown;\n\n /**\n * @generated from field: dashboard.notifications.v1.GetNotificationStatsResponse.ChannelBreakdown channel_breakdown = 2;\n */\n channelBreakdown?: GetNotificationStatsResponse_ChannelBreakdown;\n\n /**\n * @generated from field: repeated dashboard.notifications.v1.GetNotificationStatsResponse.TimelinePoint timeline = 3;\n */\n timeline: GetNotificationStatsResponse_TimelinePoint[];\n\n /**\n * @generated from field: int32 total_subscribers = 4;\n */\n totalSubscribers: number;\n};\n\n/**\n * Describes the message dashboard.notifications.v1.GetNotificationStatsResponse.Result.\n * Use `create(GetNotificationStatsResponse_ResultSchema)` to create a new message.\n */\nexport const GetNotificationStatsResponse_ResultSchema: GenMessage<GetNotificationStatsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_notifications, 51, 3);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageStatus\n */\nexport enum NotificationMessageStatus {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: PLANNED = 1;\n */\n PLANNED = 1,\n\n /**\n * @generated from enum value: IN_PROGRESS = 2;\n */\n IN_PROGRESS = 2,\n\n /**\n * @generated from enum value: SENT = 3;\n */\n SENT = 3,\n\n /**\n * @generated from enum value: ERROR = 4;\n */\n ERROR = 4,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageStatus.\n */\nexport const NotificationMessageStatusSchema: GenEnum<NotificationMessageStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 0);\n\n/**\n * @generated from enum dashboard.notifications.v1.NotificationMessageJobStatus\n */\nexport enum NotificationMessageJobStatus {\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_TODO = 0;\n */\n TODO = 0,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_IN_PROGRESS = 1;\n */\n IN_PROGRESS = 1,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_SENT = 2;\n */\n SENT = 2,\n\n /**\n * @generated from enum value: NOTIFICATION_MESSAGE_JOB_STATUS_ERROR = 3;\n */\n ERROR = 3,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.NotificationMessageJobStatus.\n */\nexport const NotificationMessageJobStatusSchema: GenEnum<NotificationMessageJobStatus> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 1);\n\n/**\n * @generated from enum dashboard.notifications.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_NOT_FOUND = 2;\n */\n NOTIFICATION_SETTING_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_SETTING_FAILED = 3;\n */\n CREATE_NOTIFICATION_SETTING_FAILED = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_SETTING_FAILED = 4;\n */\n UPDATE_NOTIFICATION_SETTING_FAILED = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_SETTING_FAILED = 5;\n */\n DELETE_NOTIFICATION_SETTING_FAILED = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_NOT_FOUND = 6;\n */\n NOTIFICATION_GROUP_NOT_FOUND = 6,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUPS_NOT_FOUND = 7;\n */\n NOTIFICATION_GROUPS_NOT_FOUND = 7,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_FAILED = 8;\n */\n CREATE_NOTIFICATION_GROUP_FAILED = 8,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_FAILED = 9;\n */\n UPDATE_NOTIFICATION_GROUP_FAILED = 9,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_FAILED = 10;\n */\n DELETE_NOTIFICATION_GROUP_FAILED = 10,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_NOT_FOUND = 11;\n */\n NOTIFICATION_USER_NOT_FOUND = 11,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USERS_NOT_FOUND = 12;\n */\n NOTIFICATION_USERS_NOT_FOUND = 12,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_USER_FAILED = 13;\n */\n CREATE_NOTIFICATION_USER_FAILED = 13,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_USER_FAILED = 14;\n */\n UPDATE_NOTIFICATION_USER_FAILED = 14,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_USER_FAILED = 15;\n */\n DELETE_NOTIFICATION_USER_FAILED = 15,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_USER_NOT_FOUND = 16;\n */\n NOTIFICATION_GROUP_USER_NOT_FOUND = 16,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_GROUP_USER_FAILED = 17;\n */\n CREATE_NOTIFICATION_GROUP_USER_FAILED = 17,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18;\n */\n UPDATE_NOTIFICATION_GROUP_USER_FAILED = 18,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_GROUP_USER_FAILED = 19;\n */\n DELETE_NOTIFICATION_GROUP_USER_FAILED = 19,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_NOT_FOUND = 20;\n */\n NOTIFICATION_MESSAGE_NOT_FOUND = 20,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGES_NOT_FOUND = 21;\n */\n NOTIFICATION_MESSAGES_NOT_FOUND = 21,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_FAILED = 22;\n */\n CREATE_NOTIFICATION_MESSAGE_FAILED = 22,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_FAILED = 23;\n */\n UPDATE_NOTIFICATION_MESSAGE_FAILED = 23,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_FAILED = 24;\n */\n DELETE_NOTIFICATION_MESSAGE_FAILED = 24,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25;\n */\n NOTIFICATION_MESSAGE_JOB_NOT_FOUND = 25,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26;\n */\n NOTIFICATION_MESSAGE_JOBS_NOT_FOUND = 26,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27;\n */\n CREATE_NOTIFICATION_MESSAGE_JOB_FAILED = 27,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28;\n */\n UPDATE_NOTIFICATION_MESSAGE_JOB_FAILED = 28,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29;\n */\n DELETE_NOTIFICATION_MESSAGE_JOB_FAILED = 29,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_ALREADY_EXIST = 30;\n */\n NOTIFICATION_SETTING_ALREADY_EXIST = 30,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31;\n */\n NOTIFICATION_SETTING_SLUG_ALREADY_TAKEN = 31,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_USER_ALREADY_EXIST = 32;\n */\n NOTIFICATION_USER_ALREADY_EXIST = 32,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NOTIFICATION_GROUP_ALREADY_EXIST = 33;\n */\n NOTIFICATION_GROUP_ALREADY_EXIST = 33,\n}\n\n/**\n * Describes the enum dashboard.notifications.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_notifications, 2);\n\n/**\n * @generated from service dashboard.notifications.v1.NotificationsService\n */\nexport const NotificationsService: GenService<{\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationSetting\n */\n createNotificationSetting: {\n methodKind: \"unary\";\n input: typeof CreateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationSetting\n */\n readNotificationSetting: {\n methodKind: \"unary\";\n input: typeof ReadNotificationSettingRequestSchema;\n output: typeof ReadNotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationSetting\n */\n updateNotificationSetting: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationSetting\n */\n deleteNotificationSetting: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationSettingRequestSchema;\n output: typeof NotificationSettingResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroup\n */\n createNotificationGroup: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroups\n */\n readNotificationGroups: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupsRequestSchema;\n output: typeof ReadNotificationGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroup\n */\n updateNotificationGroup: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroup\n */\n deleteNotificationGroup: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupRequestSchema;\n output: typeof NotificationGroupResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationUser\n */\n createNotificationUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationUsers\n */\n readNotificationUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationUsersRequestSchema;\n output: typeof ReadNotificationUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationUser\n */\n updateNotificationUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationUser\n */\n deleteNotificationUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationUserRequestSchema;\n output: typeof NotificationUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationGroupUser\n */\n createNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof CreateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationGroupUsers\n */\n readNotificationGroupUsers: {\n methodKind: \"unary\";\n input: typeof ReadNotificationGroupUsersRequestsSchema;\n output: typeof ReadNotificationGroupUsersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationGroupUser\n */\n updateNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationGroupUser\n */\n deleteNotificationGroupUser: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationGroupUserRequestSchema;\n output: typeof NotificationGroupUserResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessage\n */\n createNotificationMessage: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessages\n */\n readNotificationMessages: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessagesRequestSchema;\n output: typeof ReadNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetSentNotificationMessages\n */\n getSentNotificationMessages: {\n methodKind: \"unary\";\n input: typeof GetSentNotificationMessagesRequestSchema;\n output: typeof GetSentNotificationMessagesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessage\n */\n updateNotificationMessage: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessage\n */\n deleteNotificationMessage: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageRequestSchema;\n output: typeof NotificationMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.CreateNotificationMessageJob\n */\n createNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof CreateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationMessageJobs\n */\n readNotificationMessageJobs: {\n methodKind: \"unary\";\n input: typeof ReadNotificationMessageJobsRequestSchema;\n output: typeof ReadNotificationMessageJobsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateNotificationMessageJob\n */\n updateNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof UpdateNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.DeleteNotificationMessageJob\n */\n deleteNotificationMessageJob: {\n methodKind: \"unary\";\n input: typeof DeleteNotificationMessageJobRequestSchema;\n output: typeof NotificationMessageJobResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.ReadNotificationProducts\n */\n readNotificationProducts: {\n methodKind: \"unary\";\n input: typeof ReadNotificationProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * Public endpoints\n *\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationUserSettings\n */\n getNotificationUserSettings: {\n methodKind: \"unary\";\n input: typeof GetNotificationUserSettingsRequestSchema;\n output: typeof GetNotificationUserSettingsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.VerifyUserEmail\n */\n verifyUserEmail: {\n methodKind: \"unary\";\n input: typeof VerifyUserEmailRequestSchema;\n output: typeof VerifyUserEmailResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetUserGroups\n */\n getUserGroups: {\n methodKind: \"unary\";\n input: typeof GetUserGroupsRequestSchema;\n output: typeof GetUserGroupsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.UpdateUserGroups\n */\n updateUserGroups: {\n methodKind: \"unary\";\n input: typeof UpdateUserGroupsRequestSchema;\n output: typeof EmptySchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetProjectedRecipientCount\n */\n getProjectedRecipientCount: {\n methodKind: \"unary\";\n input: typeof GetProjectedRecipientCountRequestSchema;\n output: typeof GetProjectedRecipientCountResponseSchema;\n },\n /**\n * @generated from rpc dashboard.notifications.v1.NotificationsService.GetNotificationStats\n */\n getNotificationStats: {\n methodKind: \"unary\";\n input: typeof GetNotificationStatsRequestSchema;\n output: typeof GetNotificationStatsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_notifications, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file dashboard/v1/product.proto (package dashboard.product.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Empty, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file dashboard/v1/product.proto.\n */\nexport const file_dashboard_v1_product: GenFile = /*@__PURE__*/\n fileDesc(\"ChpkYXNoYm9hcmQvdjEvcHJvZHVjdC5wcm90bxIUZGFzaGJvYXJkLnByb2R1Y3Q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XVlc3QaKC5kYXNoYm9hcmQucHJvZHVjdC52MS5HZXRQcm9kdWN0UmVzcG9uc2UShgEKF0dldEd1ZXN0Q2F0YWxvZ1NldHRpbmdzEjQuZGFzaGJvYXJkLnByb2R1Y3QudjEuR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXF1ZXN0GjUuZGFzaGJvYXJkLnByb2R1Y3QudjEuR2V0R3Vlc3RDYXRhbG9nU2V0dGluZ3NSZXNwb25zZRKAAQoUU2V0R3Vlc3RDYXRhbG9nRW50cnkSMS5kYXNoYm9hcmQucHJvZHVjdC52MS5TZXRHdWVzdENhdGFsb2dFbnRyeVJlcXVlc3QaNS5kYXNoYm9hcmQucHJvZHVjdC52MS5HZXRHdWVzdENhdGFsb2dTZXR0aW5nc1Jlc3BvbnNlYgZwcm90bzM\", [file_google_protobuf_empty, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message dashboard.product.v1.GetGuestCatalogSettingsRequest\n */\nexport type GetGuestCatalogSettingsRequest = Message<\"dashboard.product.v1.GetGuestCatalogSettingsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetGuestCatalogSettingsRequest.\n * Use `create(GetGuestCatalogSettingsRequestSchema)` to create a new message.\n */\nexport const GetGuestCatalogSettingsRequestSchema: GenMessage<GetGuestCatalogSettingsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from message dashboard.product.v1.SetGuestCatalogEntryRequest\n */\nexport type SetGuestCatalogEntryRequest = Message<\"dashboard.product.v1.SetGuestCatalogEntryRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_type = 2;\n */\n productType: string;\n\n /**\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * @generated from field: int32 sort_order = 4;\n */\n sortOrder: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.SetGuestCatalogEntryRequest.\n * Use `create(SetGuestCatalogEntryRequestSchema)` to create a new message.\n */\nexport const SetGuestCatalogEntryRequestSchema: GenMessage<SetGuestCatalogEntryRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetGuestCatalogSettingsResponse\n */\nexport type GetGuestCatalogSettingsResponse = Message<\"dashboard.product.v1.GetGuestCatalogSettingsResponse\"> & {\n /**\n * @generated from field: bool can_manage = 1;\n */\n canManage: boolean;\n\n /**\n * @generated from field: bool guest_catalog_enabled = 2;\n */\n guestCatalogEnabled: boolean;\n\n /**\n * @generated from field: repeated dashboard.product.v1.GuestCatalogEntry entries = 3;\n */\n entries: GuestCatalogEntry[];\n\n /**\n * @generated from field: repeated string available_product_ids = 4;\n */\n availableProductIds: string[];\n\n /**\n * @generated from field: repeated dashboard.product.v1.GuestCatalogProductOption product_options = 5;\n */\n productOptions: GuestCatalogProductOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetGuestCatalogSettingsResponse.\n * Use `create(GetGuestCatalogSettingsResponseSchema)` to create a new message.\n */\nexport const GetGuestCatalogSettingsResponseSchema: GenMessage<GetGuestCatalogSettingsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 2);\n\n/**\n * @generated from message dashboard.product.v1.GuestCatalogProductOption\n */\nexport type GuestCatalogProductOption = Message<\"dashboard.product.v1.GuestCatalogProductOption\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string display_name = 2;\n */\n displayName: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GuestCatalogProductOption.\n * Use `create(GuestCatalogProductOptionSchema)` to create a new message.\n */\nexport const GuestCatalogProductOptionSchema: GenMessage<GuestCatalogProductOption> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 3);\n\n/**\n * @generated from message dashboard.product.v1.GuestCatalogEntry\n */\nexport type GuestCatalogEntry = Message<\"dashboard.product.v1.GuestCatalogEntry\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string product_type = 2;\n */\n productType: string;\n\n /**\n * @generated from field: bool enabled = 3;\n */\n enabled: boolean;\n\n /**\n * @generated from field: int32 sort_order = 4;\n */\n sortOrder: number;\n\n /**\n * @generated from field: string eligibility_reason = 5;\n */\n eligibilityReason: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GuestCatalogEntry.\n * Use `create(GuestCatalogEntrySchema)` to create a new message.\n */\nexport const GuestCatalogEntrySchema: GenMessage<GuestCatalogEntry> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 4);\n\n/**\n * @generated from message dashboard.product.v1.ArchiveProductRequest\n */\nexport type ArchiveProductRequest = Message<\"dashboard.product.v1.ArchiveProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.ArchiveProductRequest.\n * Use `create(ArchiveProductRequestSchema)` to create a new message.\n */\nexport const ArchiveProductRequestSchema: GenMessage<ArchiveProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 5);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductRequest\n */\nexport type DuplicateProductRequest = Message<\"dashboard.product.v1.DuplicateProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductRequest.\n * Use `create(DuplicateProductRequestSchema)` to create a new message.\n */\nexport const DuplicateProductRequestSchema: GenMessage<DuplicateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 6);\n\n/**\n * @generated from message dashboard.product.v1.DuplicateProductResponse\n */\nexport type DuplicateProductResponse = Message<\"dashboard.product.v1.DuplicateProductResponse\"> & {\n /**\n * @generated from field: string duplicated_product_id = 1;\n */\n duplicatedProductId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DuplicateProductResponse.\n * Use `create(DuplicateProductResponseSchema)` to create a new message.\n */\nexport const DuplicateProductResponseSchema: GenMessage<DuplicateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 7);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesRequest\n */\nexport type ExchangeProductIDsToNamesRequest = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesRequest\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesRequest.\n * Use `create(ExchangeProductIDsToNamesRequestSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesRequestSchema: GenMessage<ExchangeProductIDsToNamesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 8);\n\n/**\n * @generated from message dashboard.product.v1.ExchangeProductIDsToNamesResponse\n */\nexport type ExchangeProductIDsToNamesResponse = Message<\"dashboard.product.v1.ExchangeProductIDsToNamesResponse\"> & {\n /**\n * @generated from field: map<string, string> product_names = 1;\n */\n productNames: { [key: string]: string };\n};\n\n/**\n * Describes the message dashboard.product.v1.ExchangeProductIDsToNamesResponse.\n * Use `create(ExchangeProductIDsToNamesResponseSchema)` to create a new message.\n */\nexport const ExchangeProductIDsToNamesResponseSchema: GenMessage<ExchangeProductIDsToNamesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 9);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersRequest\n */\nexport type GetFileAccessMembersRequest = Message<\"dashboard.product.v1.GetFileAccessMembersRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional string variant_id = 3;\n */\n variantId?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersRequest.\n * Use `create(GetFileAccessMembersRequestSchema)` to create a new message.\n */\nexport const GetFileAccessMembersRequestSchema: GenMessage<GetFileAccessMembersRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 10);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse\n */\nexport type GetFileAccessMembersResponse = Message<\"dashboard.product.v1.GetFileAccessMembersResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetFileAccessMembersResponse.Value members = 1;\n */\n members: GetFileAccessMembersResponse_Value[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.\n * Use `create(GetFileAccessMembersResponseSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponseSchema: GenMessage<GetFileAccessMembersResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 11);\n\n/**\n * @generated from message dashboard.product.v1.GetFileAccessMembersResponse.Value\n */\nexport type GetFileAccessMembersResponse_Value = Message<\"dashboard.product.v1.GetFileAccessMembersResponse.Value\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp created_at = 3;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetFileAccessMembersResponse.Value.\n * Use `create(GetFileAccessMembersResponse_ValueSchema)` to create a new message.\n */\nexport const GetFileAccessMembersResponse_ValueSchema: GenMessage<GetFileAccessMembersResponse_Value> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 11, 0);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileRequest\n */\nexport type GiveAccessToFileRequest = Message<\"dashboard.product.v1.GiveAccessToFileRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: optional string variant_id = 2;\n */\n variantId?: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileRequest.\n * Use `create(GiveAccessToFileRequestSchema)` to create a new message.\n */\nexport const GiveAccessToFileRequestSchema: GenMessage<GiveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 12);\n\n/**\n * @generated from message dashboard.product.v1.GiveAccessToFileResponse\n */\nexport type GiveAccessToFileResponse = Message<\"dashboard.product.v1.GiveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GiveAccessToFileResponse.\n * Use `create(GiveAccessToFileResponseSchema)` to create a new message.\n */\nexport const GiveAccessToFileResponseSchema: GenMessage<GiveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 13);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileRequest\n */\nexport type RemoveAccessToFileRequest = Message<\"dashboard.product.v1.RemoveAccessToFileRequest\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileRequest.\n * Use `create(RemoveAccessToFileRequestSchema)` to create a new message.\n */\nexport const RemoveAccessToFileRequestSchema: GenMessage<RemoveAccessToFileRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 14);\n\n/**\n * @generated from message dashboard.product.v1.RemoveAccessToFileResponse\n */\nexport type RemoveAccessToFileResponse = Message<\"dashboard.product.v1.RemoveAccessToFileResponse\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.RemoveAccessToFileResponse.\n * Use `create(RemoveAccessToFileResponseSchema)` to create a new message.\n */\nexport const RemoveAccessToFileResponseSchema: GenMessage<RemoveAccessToFileResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 15);\n\n/**\n * @generated from message dashboard.product.v1.SendTestEmailWithMessageRequest\n */\nexport type SendTestEmailWithMessageRequest = Message<\"dashboard.product.v1.SendTestEmailWithMessageRequest\"> & {\n /**\n * @generated from field: string email = 1;\n */\n email: string;\n\n /**\n * @generated from field: string html_message = 2;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SendTestEmailWithMessageRequest.\n * Use `create(SendTestEmailWithMessageRequestSchema)` to create a new message.\n */\nexport const SendTestEmailWithMessageRequestSchema: GenMessage<SendTestEmailWithMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 16);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsRequest\n */\nexport type GetProductVariantsRequest = Message<\"dashboard.product.v1.GetProductVariantsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsRequest.\n * Use `create(GetProductVariantsRequestSchema)` to create a new message.\n */\nexport const GetProductVariantsRequestSchema: GenMessage<GetProductVariantsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 17);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse\n */\nexport type GetProductVariantsResponse = Message<\"dashboard.product.v1.GetProductVariantsResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductVariantsResponse.SingleVariant variants = 1;\n */\n variants: GetProductVariantsResponse_SingleVariant[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.\n * Use `create(GetProductVariantsResponseSchema)` to create a new message.\n */\nexport const GetProductVariantsResponseSchema: GenMessage<GetProductVariantsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 18);\n\n/**\n * @generated from message dashboard.product.v1.GetProductVariantsResponse.SingleVariant\n */\nexport type GetProductVariantsResponse_SingleVariant = Message<\"dashboard.product.v1.GetProductVariantsResponse.SingleVariant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductVariantsResponse.SingleVariant.\n * Use `create(GetProductVariantsResponse_SingleVariantSchema)` to create a new message.\n */\nexport const GetProductVariantsResponse_SingleVariantSchema: GenMessage<GetProductVariantsResponse_SingleVariant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 18, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\n */\nexport type UpdateProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string message = 2;\n */\n message: string;\n\n /**\n * @generated from field: string html_message = 3;\n */\n htmlMessage: string;\n\n /**\n * @generated from field: optional string title = 4;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAfterPurchaseMessageRequest.\n * Use `create(UpdateProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const UpdateProductAfterPurchaseMessageRequestSchema: GenMessage<UpdateProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 19);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageRequest\n */\nexport type GetProductAfterPurchaseMessageRequest = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageRequest.\n * Use `create(GetProductAfterPurchaseMessageRequestSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageRequestSchema: GenMessage<GetProductAfterPurchaseMessageRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 20);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse\n */\nexport type GetProductAfterPurchaseMessageResponse = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAfterPurchaseMessageResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success success = 1;\n */\n value: GetProductAfterPurchaseMessageResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.\n * Use `create(GetProductAfterPurchaseMessageResponseSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponseSchema: GenMessage<GetProductAfterPurchaseMessageResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\n */\nexport type GetProductAfterPurchaseMessageResponse_Success = Message<\"dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success\"> & {\n /**\n * @generated from field: optional string message = 1;\n */\n message?: string;\n\n /**\n * @generated from field: optional string html_message = 2;\n */\n htmlMessage?: string;\n\n /**\n * @generated from field: optional string title = 3;\n */\n title?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAfterPurchaseMessageResponse.Success.\n * Use `create(GetProductAfterPurchaseMessageResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAfterPurchaseMessageResponse_SuccessSchema: GenMessage<GetProductAfterPurchaseMessageResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 21, 0);\n\n/**\n * @generated from message dashboard.product.v1.PublishProductIfNeededRequest\n */\nexport type PublishProductIfNeededRequest = Message<\"dashboard.product.v1.PublishProductIfNeededRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.PublishProductIfNeededRequest.\n * Use `create(PublishProductIfNeededRequestSchema)` to create a new message.\n */\nexport const PublishProductIfNeededRequestSchema: GenMessage<PublishProductIfNeededRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 22);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\n */\nexport type UpdateProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: bool send_ticket_after_purchase = 2;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductSendTicketAfterPurchaseRequest.\n * Use `create(UpdateProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductSendTicketAfterPurchaseRequestSchema: GenMessage<UpdateProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 23);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\n */\nexport type UpdateProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string audiobook_id = 2;\n */\n audiobookId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductAudiobookAfterPurchaseRequest.\n * Use `create(UpdateProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const UpdateProductAudiobookAfterPurchaseRequestSchema: GenMessage<UpdateProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 24);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\n */\nexport type GetProductSendTicketAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseRequest.\n * Use `create(GetProductSendTicketAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseRequestSchema: GenMessage<GetProductSendTicketAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 25);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\n */\nexport type GetProductSendTicketAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductSendTicketAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.\n * Use `create(GetProductSendTicketAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponseSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 26);\n\n/**\n * @generated from message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\n */\nexport type GetProductSendTicketAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: bool send_ticket_after_purchase = 1;\n */\n sendTicketAfterPurchase: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductSendTicketAfterPurchaseResponse.Success.\n * Use `create(GetProductSendTicketAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductSendTicketAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductSendTicketAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 26, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\n */\nexport type GetProductAudiobookAfterPurchaseRequest = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseRequest.\n * Use `create(GetProductAudiobookAfterPurchaseRequestSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseRequestSchema: GenMessage<GetProductAudiobookAfterPurchaseRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 27);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\n */\nexport type GetProductAudiobookAfterPurchaseResponse = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success success = 1;\n */\n value: GetProductAudiobookAfterPurchaseResponse_Success;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.\n * Use `create(GetProductAudiobookAfterPurchaseResponseSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponseSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 28);\n\n/**\n * @generated from message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\n */\nexport type GetProductAudiobookAfterPurchaseResponse_Success = Message<\"dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success\"> & {\n /**\n * @generated from field: string audiobook_id = 1;\n */\n audiobookId: string;\n\n /**\n * @generated from field: string audiobook_title = 2;\n */\n audiobookTitle: string;\n\n /**\n * @generated from field: string audiobook_image_url = 3;\n */\n audiobookImageUrl: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductAudiobookAfterPurchaseResponse.Success.\n * Use `create(GetProductAudiobookAfterPurchaseResponse_SuccessSchema)` to create a new message.\n */\nexport const GetProductAudiobookAfterPurchaseResponse_SuccessSchema: GenMessage<GetProductAudiobookAfterPurchaseResponse_Success> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 28, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsRequest\n */\nexport type SearchProductsRequest = Message<\"dashboard.product.v1.SearchProductsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsRequest.\n * Use `create(SearchProductsRequestSchema)` to create a new message.\n */\nexport const SearchProductsRequestSchema: GenMessage<SearchProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 29);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse\n */\nexport type SearchProductsResponse = Message<\"dashboard.product.v1.SearchProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.SearchProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.SearchProductsResponse.Result success = 1;\n */\n value: SearchProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.\n * Use `create(SearchProductsResponseSchema)` to create a new message.\n */\nexport const SearchProductsResponseSchema: GenMessage<SearchProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.SingleProduct\n */\nexport type SearchProductsResponse_SingleProduct = Message<\"dashboard.product.v1.SearchProductsResponse.SingleProduct\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string image_url = 3;\n */\n imageUrl?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.SingleProduct.\n * Use `create(SearchProductsResponse_SingleProductSchema)` to create a new message.\n */\nexport const SearchProductsResponse_SingleProductSchema: GenMessage<SearchProductsResponse_SingleProduct> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30, 0);\n\n/**\n * @generated from message dashboard.product.v1.SearchProductsResponse.Result\n */\nexport type SearchProductsResponse_Result = Message<\"dashboard.product.v1.SearchProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.SearchProductsResponse.SingleProduct products = 1;\n */\n products: SearchProductsResponse_SingleProduct[];\n};\n\n/**\n * Describes the message dashboard.product.v1.SearchProductsResponse.Result.\n * Use `create(SearchProductsResponse_ResultSchema)` to create a new message.\n */\nexport const SearchProductsResponse_ResultSchema: GenMessage<SearchProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 30, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesRequest\n */\nexport type GetProductBoughtArticlesRequest = Message<\"dashboard.product.v1.GetProductBoughtArticlesRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesRequest.\n * Use `create(GetProductBoughtArticlesRequestSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesRequestSchema: GenMessage<GetProductBoughtArticlesRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 31);\n\n/**\n * @generated from message dashboard.product.v1.GetProductBoughtArticlesResponse\n */\nexport type GetProductBoughtArticlesResponse = Message<\"dashboard.product.v1.GetProductBoughtArticlesResponse\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.ProductBoughtArticle articles = 1;\n */\n articles: ProductBoughtArticle[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductBoughtArticlesResponse.\n * Use `create(GetProductBoughtArticlesResponseSchema)` to create a new message.\n */\nexport const GetProductBoughtArticlesResponseSchema: GenMessage<GetProductBoughtArticlesResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 32);\n\n/**\n * @generated from message dashboard.product.v1.ProductBoughtArticle\n */\nexport type ProductBoughtArticle = Message<\"dashboard.product.v1.ProductBoughtArticle\"> & {\n /**\n * empty string if new.\n *\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: optional string content = 3;\n */\n content?: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 8;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductBoughtArticle.\n * Use `create(ProductBoughtArticleSchema)` to create a new message.\n */\nexport const ProductBoughtArticleSchema: GenMessage<ProductBoughtArticle> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 33);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductBoughtArticleRequest\n */\nexport type UpdateProductBoughtArticleRequest = Message<\"dashboard.product.v1.UpdateProductBoughtArticleRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductBoughtArticle article = 1;\n */\n article?: ProductBoughtArticle;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductBoughtArticleRequest.\n * Use `create(UpdateProductBoughtArticleRequestSchema)` to create a new message.\n */\nexport const UpdateProductBoughtArticleRequestSchema: GenMessage<UpdateProductBoughtArticleRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 34);\n\n/**\n * @generated from message dashboard.product.v1.GetProductRequest\n */\nexport type GetProductRequest = Message<\"dashboard.product.v1.GetProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductRequest.\n * Use `create(GetProductRequestSchema)` to create a new message.\n */\nexport const GetProductRequestSchema: GenMessage<GetProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 35);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse\n */\nexport type GetProductResponse = Message<\"dashboard.product.v1.GetProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n value: ProductV2;\n case: \"product\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductResponse.SellStats sell_stats = 3;\n */\n sellStats: GetProductResponse_SellStats[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.\n * Use `create(GetProductResponseSchema)` to create a new message.\n */\nexport const GetProductResponseSchema: GenMessage<GetProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 36);\n\n/**\n * @generated from message dashboard.product.v1.GetProductResponse.SellStats\n */\nexport type GetProductResponse_SellStats = Message<\"dashboard.product.v1.GetProductResponse.SellStats\"> & {\n /**\n * @generated from field: string productID = 1;\n */\n productID: string;\n\n /**\n * @generated from field: int32 sold = 2;\n */\n sold: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductResponse.SellStats.\n * Use `create(GetProductResponse_SellStatsSchema)` to create a new message.\n */\nexport const GetProductResponse_SellStatsSchema: GenMessage<GetProductResponse_SellStats> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 36, 0);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductRequest\n */\nexport type CreateOrUpdateProductRequest = Message<\"dashboard.product.v1.CreateOrUpdateProductRequest\"> & {\n /**\n * @generated from field: dashboard.product.v1.ProductV2 product = 1;\n */\n product?: ProductV2;\n\n /**\n * @generated from field: bool is_description_different = 2;\n */\n isDescriptionDifferent: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductRequest.\n * Use `create(CreateOrUpdateProductRequestSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductRequestSchema: GenMessage<CreateOrUpdateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 37);\n\n/**\n * @generated from message dashboard.product.v1.UpdateProductUniqueSlugRequest\n */\nexport type UpdateProductUniqueSlugRequest = Message<\"dashboard.product.v1.UpdateProductUniqueSlugRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: string new_unique_slug = 2;\n */\n newUniqueSlug: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateProductUniqueSlugRequest.\n * Use `create(UpdateProductUniqueSlugRequestSchema)` to create a new message.\n */\nexport const UpdateProductUniqueSlugRequestSchema: GenMessage<UpdateProductUniqueSlugRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 38);\n\n/**\n * @generated from message dashboard.product.v1.ProductV2\n */\nexport type ProductV2 = Message<\"dashboard.product.v1.ProductV2\"> & {\n /**\n * @generated from field: optional string id = 1;\n */\n id?: string;\n\n /**\n * @generated from field: string unique_slug = 2;\n */\n uniqueSlug: string;\n\n /**\n * @generated from field: string project_id = 3;\n */\n projectId: string;\n\n /**\n * @generated from field: dashboard.product.v1.ProductV2.Status status = 4;\n */\n status: ProductV2_Status;\n\n /**\n * @generated from field: optional bool is_recurring = 5;\n */\n isRecurring?: boolean;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 6;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: string name = 7;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 8;\n */\n description?: string;\n\n /**\n * @generated from field: optional string html_description = 9;\n */\n htmlDescription?: string;\n\n /**\n * @generated from field: optional string short_description = 10;\n */\n shortDescription?: string;\n\n /**\n * @generated from field: optional int32 price_amount = 11;\n */\n priceAmount?: number;\n\n /**\n * @generated from field: optional string price_currency = 12;\n */\n priceCurrency?: string;\n\n /**\n * @generated from field: optional float tax = 13;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 14;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: map<string, string> features = 15;\n */\n features: { [key: string]: string };\n\n /**\n * @generated from field: repeated string images = 16;\n */\n images: string[];\n\n /**\n * @generated from field: optional string thumbnail_image = 17;\n */\n thumbnailImage?: string;\n\n /**\n * @generated from field: optional string main_image = 18;\n */\n mainImage?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.Variant variants = 19;\n */\n variants: Variant[];\n\n /**\n * @generated from field: optional bool send_ticket_after_purchase = 20;\n */\n sendTicketAfterPurchase?: boolean;\n\n /**\n * @generated from field: optional bool is_product_visible_on_list = 21;\n */\n isProductVisibleOnList?: boolean;\n\n /**\n * @generated from field: optional bool is_deliverable = 24;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional bool force_manual_payment = 29;\n */\n forceManualPayment?: boolean;\n\n /**\n * @generated from field: optional int32 weight_grams = 30;\n */\n weightGrams?: number;\n\n /**\n * @generated from field: optional int32 width_millimeters = 31;\n */\n widthMillimeters?: number;\n\n /**\n * @generated from field: optional int32 height_millimeters = 32;\n */\n heightMillimeters?: number;\n\n /**\n * @generated from field: int64 created_at = 25;\n */\n createdAt: bigint;\n\n /**\n * @generated from field: int64 updated_at = 26;\n */\n updatedAt: bigint;\n\n /**\n * @generated from field: optional int64 deleted_at = 27;\n */\n deletedAt?: bigint;\n\n /**\n * @generated from field: optional bool archived = 28;\n */\n archived?: boolean;\n\n /**\n * Monotonic conditional-save token. Clients must send the revision they read.\n *\n * @generated from field: int32 revision = 33;\n */\n revision: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.ProductV2.\n * Use `create(ProductV2Schema)` to create a new message.\n */\nexport const ProductV2Schema: GenMessage<ProductV2> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 39);\n\n/**\n * @generated from enum dashboard.product.v1.ProductV2.Status\n */\nexport enum ProductV2_Status {\n /**\n * @generated from enum value: DRAFT = 0;\n */\n DRAFT = 0,\n\n /**\n * @generated from enum value: UNPUBLISHED = 1;\n */\n UNPUBLISHED = 1,\n\n /**\n * @generated from enum value: PUBLISHED = 2;\n */\n PUBLISHED = 2,\n}\n\n/**\n * Describes the enum dashboard.product.v1.ProductV2.Status.\n */\nexport const ProductV2_StatusSchema: GenEnum<ProductV2_Status> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 39, 0);\n\n/**\n * @generated from message dashboard.product.v1.Recurring\n */\nexport type Recurring = Message<\"dashboard.product.v1.Recurring\"> & {\n /**\n * @generated from field: dashboard.product.v1.BillingPeriod billingPeriod = 1;\n */\n billingPeriod: BillingPeriod;\n\n /**\n * @generated from field: optional int32 trial_days = 2;\n */\n trialDays?: number;\n\n /**\n * @generated from field: optional int32 number_of_payments = 3;\n */\n numberOfPayments?: number;\n\n /**\n * @generated from field: optional bool change_amount_for_currentSubscribers = 4;\n */\n changeAmountForCurrentSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool remove_access_for_cancelled_subscribers = 5;\n */\n removeAccessForCancelledSubscribers?: boolean;\n\n /**\n * @generated from field: optional bool should_send_trial_period_reminder = 6;\n */\n shouldSendTrialPeriodReminder?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.Recurring.\n * Use `create(RecurringSchema)` to create a new message.\n */\nexport const RecurringSchema: GenMessage<Recurring> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 40);\n\n/**\n * @generated from message dashboard.product.v1.VariantDiscount\n */\nexport type VariantDiscount = Message<\"dashboard.product.v1.VariantDiscount\"> & {\n /**\n * @generated from field: dashboard.product.v1.VariantDiscount.Type type = 1;\n */\n type: VariantDiscount_Type;\n\n /**\n * Minor units for FIXED; basis points (10000 = 100%) for PERCENTAGE.\n *\n * @generated from field: int32 amount = 2;\n */\n amount: number;\n\n /**\n * Kept at field 3 for wire compatibility with the original discount model.\n *\n * @generated from field: optional google.protobuf.Timestamp end_date = 3;\n */\n endDate?: Timestamp;\n\n /**\n * @generated from field: optional string id = 4;\n */\n id?: string;\n\n /**\n * @generated from field: bool enabled = 5;\n */\n enabled: boolean;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp start_date = 6;\n */\n startDate?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.VariantDiscount.\n * Use `create(VariantDiscountSchema)` to create a new message.\n */\nexport const VariantDiscountSchema: GenMessage<VariantDiscount> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 41);\n\n/**\n * @generated from enum dashboard.product.v1.VariantDiscount.Type\n */\nexport enum VariantDiscount_Type {\n /**\n * @generated from enum value: FIXED = 0;\n */\n FIXED = 0,\n\n /**\n * @generated from enum value: PERCENTAGE = 1;\n */\n PERCENTAGE = 1,\n}\n\n/**\n * Describes the enum dashboard.product.v1.VariantDiscount.Type.\n */\nexport const VariantDiscount_TypeSchema: GenEnum<VariantDiscount_Type> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 41, 0);\n\n/**\n * @generated from message dashboard.product.v1.Variant\n */\nexport type Variant = Message<\"dashboard.product.v1.Variant\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string image_url = 4;\n */\n imageUrl?: string;\n\n /**\n * @generated from field: int32 price_amount = 5;\n */\n priceAmount: number;\n\n /**\n * @generated from field: string price_currency = 6;\n */\n priceCurrency: string;\n\n /**\n * @generated from field: optional int32 tax = 7;\n */\n tax?: number;\n\n /**\n * @generated from field: optional int32 available_quantity = 8;\n */\n availableQuantity?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.Recurring recurring = 9;\n */\n recurring?: Recurring;\n\n /**\n * @generated from field: optional bool is_deliverable = 10;\n */\n isDeliverable?: boolean;\n\n /**\n * @generated from field: optional int32 lowest_price_30_days = 11;\n */\n lowestPrice30Days?: number;\n\n /**\n * @generated from field: optional dashboard.product.v1.VariantDiscount discount = 12;\n */\n discount?: VariantDiscount;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp estimated_delivery_at = 13;\n */\n estimatedDeliveryAt?: Timestamp;\n\n /**\n * @generated from field: int32 regular_price_amount = 14;\n */\n regularPriceAmount: number;\n\n /**\n * @generated from field: int32 effective_price_amount = 15;\n */\n effectivePriceAmount: number;\n\n /**\n * @generated from field: optional int32 reference_price_amount = 16;\n */\n referencePriceAmount?: number;\n\n /**\n * @generated from field: bool reference_history_available = 17;\n */\n referenceHistoryAvailable: boolean;\n\n /**\n * @generated from field: int64 price_version = 18;\n */\n priceVersion: bigint;\n\n /**\n * @generated from field: optional google.protobuf.Timestamp next_price_change_at = 19;\n */\n nextPriceChangeAt?: Timestamp;\n};\n\n/**\n * Describes the message dashboard.product.v1.Variant.\n * Use `create(VariantSchema)` to create a new message.\n */\nexport const VariantSchema: GenMessage<Variant> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 42);\n\n/**\n * @generated from message dashboard.product.v1.CreateOrUpdateProductResponse\n */\nexport type CreateOrUpdateProductResponse = Message<\"dashboard.product.v1.CreateOrUpdateProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.CreateOrUpdateProductResponse.result\n */\n result: {\n /**\n * @generated from field: string product_id = 1;\n */\n value: string;\n case: \"productId\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateOrUpdateProductResponse.\n * Use `create(CreateOrUpdateProductResponseSchema)` to create a new message.\n */\nexport const CreateOrUpdateProductResponseSchema: GenMessage<CreateOrUpdateProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 43);\n\n/**\n * @generated from message dashboard.product.v1.BoolResponse\n */\nexport type BoolResponse = Message<\"dashboard.product.v1.BoolResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.BoolResponse.result\n */\n result: {\n /**\n * @generated from field: google.protobuf.Empty success = 1;\n */\n value: Empty;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.BoolResponse.\n * Use `create(BoolResponseSchema)` to create a new message.\n */\nexport const BoolResponseSchema: GenMessage<BoolResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 44);\n\n/**\n * Plain bool result message for non-success/failure RPCs\n *\n * @generated from message dashboard.product.v1.OperationResult\n */\nexport type OperationResult = Message<\"dashboard.product.v1.OperationResult\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.OperationResult.\n * Use `create(OperationResultSchema)` to create a new message.\n */\nexport const OperationResultSchema: GenMessage<OperationResult> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 45);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsRequest\n */\nexport type GetProductsRequest = Message<\"dashboard.product.v1.GetProductsRequest\"> & {\n /**\n * @generated from field: optional string search = 1;\n */\n search?: string;\n\n /**\n * @generated from field: optional string type = 2;\n */\n type?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsRequest.\n * Use `create(GetProductsRequestSchema)` to create a new message.\n */\nexport const GetProductsRequestSchema: GenMessage<GetProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 46);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsResponse\n */\nexport type GetProductsResponse = Message<\"dashboard.product.v1.GetProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductsResponse.Result success = 1;\n */\n value: GetProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsResponse.\n * Use `create(GetProductsResponseSchema)` to create a new message.\n */\nexport const GetProductsResponseSchema: GenMessage<GetProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 47);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsResponse.Result\n */\nexport type GetProductsResponse_Result = Message<\"dashboard.product.v1.GetProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsResponse.Result.\n * Use `create(GetProductsResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductsResponse_ResultSchema: GenMessage<GetProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 47, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsRequest\n */\nexport type GetProductsByIdsRequest = Message<\"dashboard.product.v1.GetProductsByIdsRequest\"> & {\n /**\n * @generated from field: repeated string ids = 1;\n */\n ids: string[];\n\n /**\n * @generated from field: optional string currency = 2;\n */\n currency?: string;\n\n /**\n * @generated from field: optional string lang = 3;\n */\n lang?: string;\n\n /**\n * @generated from field: optional bool group_variants = 4;\n */\n groupVariants?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsRequest.\n * Use `create(GetProductsByIdsRequestSchema)` to create a new message.\n */\nexport const GetProductsByIdsRequestSchema: GenMessage<GetProductsByIdsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 48);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse\n */\nexport type GetProductsByIdsResponse = Message<\"dashboard.product.v1.GetProductsByIdsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductsByIdsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductsByIdsResponse.Result success = 1;\n */\n value: GetProductsByIdsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.\n * Use `create(GetProductsByIdsResponseSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponseSchema: GenMessage<GetProductsByIdsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse.Product\n */\nexport type GetProductsByIdsResponse_Product = Message<\"dashboard.product.v1.GetProductsByIdsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: int32 price = 3;\n */\n price: number;\n\n /**\n * @generated from field: string currency = 4;\n */\n currency: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.Product.\n * Use `create(GetProductsByIdsResponse_ProductSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponse_ProductSchema: GenMessage<GetProductsByIdsResponse_Product> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetProductsByIdsResponse.Result\n */\nexport type GetProductsByIdsResponse_Result = Message<\"dashboard.product.v1.GetProductsByIdsResponse.Result\"> & {\n /**\n * @generated from field: repeated dashboard.product.v1.GetProductsByIdsResponse.Product products = 1;\n */\n products: GetProductsByIdsResponse_Product[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductsByIdsResponse.Result.\n * Use `create(GetProductsByIdsResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductsByIdsResponse_ResultSchema: GenMessage<GetProductsByIdsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 49, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridRequest\n */\nexport type GetProductGridRequest = Message<\"dashboard.product.v1.GetProductGridRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional string currency = 3;\n */\n currency?: string;\n\n /**\n * @generated from field: optional bool group_variants = 4;\n */\n groupVariants?: boolean;\n\n /**\n * @generated from field: optional int32 offset = 5;\n */\n offset?: number;\n\n /**\n * @generated from field: optional int32 limit = 6;\n */\n limit?: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridRequest.\n * Use `create(GetProductGridRequestSchema)` to create a new message.\n */\nexport const GetProductGridRequestSchema: GenMessage<GetProductGridRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 50);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridResponse\n */\nexport type GetProductGridResponse = Message<\"dashboard.product.v1.GetProductGridResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetProductGridResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetProductGridResponse.Result success = 1;\n */\n value: GetProductGridResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridResponse.\n * Use `create(GetProductGridResponseSchema)` to create a new message.\n */\nexport const GetProductGridResponseSchema: GenMessage<GetProductGridResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 51);\n\n/**\n * @generated from message dashboard.product.v1.GetProductGridResponse.Result\n */\nexport type GetProductGridResponse_Result = Message<\"dashboard.product.v1.GetProductGridResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductGridResponse.Result.\n * Use `create(GetProductGridResponse_ResultSchema)` to create a new message.\n */\nexport const GetProductGridResponse_ResultSchema: GenMessage<GetProductGridResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 51, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsRequest\n */\nexport type GetMainPageProductsRequest = Message<\"dashboard.product.v1.GetMainPageProductsRequest\"> & {\n /**\n * @generated from field: optional string project_id = 1;\n */\n projectId?: string;\n\n /**\n * @generated from field: optional string search = 2;\n */\n search?: string;\n\n /**\n * @generated from field: optional int32 limit = 3;\n */\n limit?: number;\n\n /**\n * @generated from field: optional int32 offset = 4;\n */\n offset?: number;\n\n /**\n * @generated from field: optional bool include_archived = 5;\n */\n includeArchived?: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsRequest.\n * Use `create(GetMainPageProductsRequestSchema)` to create a new message.\n */\nexport const GetMainPageProductsRequestSchema: GenMessage<GetMainPageProductsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 52);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsResponse\n */\nexport type GetMainPageProductsResponse = Message<\"dashboard.product.v1.GetMainPageProductsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetMainPageProductsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetMainPageProductsResponse.Result success = 1;\n */\n value: GetMainPageProductsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsResponse.\n * Use `create(GetMainPageProductsResponseSchema)` to create a new message.\n */\nexport const GetMainPageProductsResponseSchema: GenMessage<GetMainPageProductsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 53);\n\n/**\n * @generated from message dashboard.product.v1.GetMainPageProductsResponse.Result\n */\nexport type GetMainPageProductsResponse_Result = Message<\"dashboard.product.v1.GetMainPageProductsResponse.Result\"> & {\n /**\n * @generated from field: repeated string product_ids = 1;\n */\n productIds: string[];\n\n /**\n * @generated from field: optional int32 total_count = 2;\n */\n totalCount?: number;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetMainPageProductsResponse.Result.\n * Use `create(GetMainPageProductsResponse_ResultSchema)` to create a new message.\n */\nexport const GetMainPageProductsResponse_ResultSchema: GenMessage<GetMainPageProductsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 53, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugRequest\n */\nexport type GetPublicProductByUniqueSlugRequest = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugRequest\"> & {\n /**\n * @generated from field: string unique_slug = 1;\n */\n uniqueSlug: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugRequest.\n * Use `create(GetPublicProductByUniqueSlugRequestSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugRequestSchema: GenMessage<GetPublicProductByUniqueSlugRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 54);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugResponse\n */\nexport type GetPublicProductByUniqueSlugResponse = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetPublicProductByUniqueSlugResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result success = 1;\n */\n value: GetPublicProductByUniqueSlugResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.\n * Use `create(GetPublicProductByUniqueSlugResponseSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugResponseSchema: GenMessage<GetPublicProductByUniqueSlugResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 55);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result\n */\nexport type GetPublicProductByUniqueSlugResponse_Result = Message<\"dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: string project_id = 3;\n */\n projectId: string;\n\n /**\n * @generated from field: string id = 4;\n */\n id: string;\n\n /**\n * @generated from field: string name = 5;\n */\n name: string;\n\n /**\n * @generated from field: optional string short_description = 6;\n */\n shortDescription?: string;\n\n /**\n * @generated from field: optional int32 price_amount = 7;\n */\n priceAmount?: number;\n\n /**\n * @generated from field: optional string price_currency = 8;\n */\n priceCurrency?: string;\n\n /**\n * @generated from field: optional string main_image = 9;\n */\n mainImage?: string;\n\n /**\n * @generated from field: optional string thumbnail_image = 10;\n */\n thumbnailImage?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicProductByUniqueSlugResponse.Result.\n * Use `create(GetPublicProductByUniqueSlugResponse_ResultSchema)` to create a new message.\n */\nexport const GetPublicProductByUniqueSlugResponse_ResultSchema: GenMessage<GetPublicProductByUniqueSlugResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 55, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsRequest\n */\nexport type GetPublicAgreementsRequest = Message<\"dashboard.product.v1.GetPublicAgreementsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string product_ids = 2;\n */\n productIds: string[];\n\n /**\n * @generated from field: bool contains_recurring = 3;\n */\n containsRecurring: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsRequest.\n * Use `create(GetPublicAgreementsRequestSchema)` to create a new message.\n */\nexport const GetPublicAgreementsRequestSchema: GenMessage<GetPublicAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 56);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse\n */\nexport type GetPublicAgreementsResponse = Message<\"dashboard.product.v1.GetPublicAgreementsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetPublicAgreementsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetPublicAgreementsResponse.Result success = 1;\n */\n value: GetPublicAgreementsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.\n * Use `create(GetPublicAgreementsResponseSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponseSchema: GenMessage<GetPublicAgreementsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse.Agreement\n */\nexport type GetPublicAgreementsResponse_Agreement = Message<\"dashboard.product.v1.GetPublicAgreementsResponse.Agreement\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: bool required = 2;\n */\n required: boolean;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.Agreement.\n * Use `create(GetPublicAgreementsResponse_AgreementSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponse_AgreementSchema: GenMessage<GetPublicAgreementsResponse_Agreement> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57, 0);\n\n/**\n * @generated from message dashboard.product.v1.GetPublicAgreementsResponse.Result\n */\nexport type GetPublicAgreementsResponse_Result = Message<\"dashboard.product.v1.GetPublicAgreementsResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.GetPublicAgreementsResponse.Agreement result = 3;\n */\n result: GetPublicAgreementsResponse_Agreement[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetPublicAgreementsResponse.Result.\n * Use `create(GetPublicAgreementsResponse_ResultSchema)` to create a new message.\n */\nexport const GetPublicAgreementsResponse_ResultSchema: GenMessage<GetPublicAgreementsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 57, 1);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductRequest\n */\nexport type GetEProductsAddedForThisProductRequest = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductRequest.\n * Use `create(GetEProductsAddedForThisProductRequestSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductRequestSchema: GenMessage<GetEProductsAddedForThisProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 58);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductResponse\n */\nexport type GetEProductsAddedForThisProductResponse = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetEProductsAddedForThisProductResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result success = 1;\n */\n value: GetEProductsAddedForThisProductResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductResponse.\n * Use `create(GetEProductsAddedForThisProductResponseSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductResponseSchema: GenMessage<GetEProductsAddedForThisProductResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 59);\n\n/**\n * @generated from message dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result\n */\nexport type GetEProductsAddedForThisProductResponse_Result = Message<\"dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result\"> & {\n /**\n * @generated from field: repeated string eproduct_ids = 1;\n */\n eproductIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetEProductsAddedForThisProductResponse.Result.\n * Use `create(GetEProductsAddedForThisProductResponse_ResultSchema)` to create a new message.\n */\nexport const GetEProductsAddedForThisProductResponse_ResultSchema: GenMessage<GetEProductsAddedForThisProductResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 59, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateEProductsAddedForThisProductRequest\n */\nexport type UpdateEProductsAddedForThisProductRequest = Message<\"dashboard.product.v1.UpdateEProductsAddedForThisProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: repeated string eproduct_ids = 2;\n */\n eproductIds: string[];\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateEProductsAddedForThisProductRequest.\n * Use `create(UpdateEProductsAddedForThisProductRequestSchema)` to create a new message.\n */\nexport const UpdateEProductsAddedForThisProductRequestSchema: GenMessage<UpdateEProductsAddedForThisProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 60);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsRequest\n */\nexport type GetListOfAdditionalAgreementsRequest = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsRequest.\n * Use `create(GetListOfAdditionalAgreementsRequestSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsRequestSchema: GenMessage<GetListOfAdditionalAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 61);\n\n/**\n * @generated from message dashboard.product.v1.AgreementOption\n */\nexport type AgreementOption = Message<\"dashboard.product.v1.AgreementOption\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n\n /**\n * @generated from field: bool is_required = 2;\n */\n isRequired: boolean;\n\n /**\n * @generated from field: optional string link = 3;\n */\n link?: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.AgreementOption.\n * Use `create(AgreementOptionSchema)` to create a new message.\n */\nexport const AgreementOptionSchema: GenMessage<AgreementOption> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 62);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsResponse\n */\nexport type GetListOfAdditionalAgreementsResponse = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsResponse\"> & {\n /**\n * @generated from oneof dashboard.product.v1.GetListOfAdditionalAgreementsResponse.result\n */\n result: {\n /**\n * @generated from field: dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result success = 1;\n */\n value: GetListOfAdditionalAgreementsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: dashboard.product.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.\n * Use `create(GetListOfAdditionalAgreementsResponseSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsResponseSchema: GenMessage<GetListOfAdditionalAgreementsResponse> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 63);\n\n/**\n * @generated from message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result\n */\nexport type GetListOfAdditionalAgreementsResponse_Result = Message<\"dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result\"> & {\n /**\n * @generated from field: bool success = 1;\n */\n success: boolean;\n\n /**\n * @generated from field: optional string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.AgreementOption result = 3;\n */\n result: AgreementOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.GetListOfAdditionalAgreementsResponse.Result.\n * Use `create(GetListOfAdditionalAgreementsResponse_ResultSchema)` to create a new message.\n */\nexport const GetListOfAdditionalAgreementsResponse_ResultSchema: GenMessage<GetListOfAdditionalAgreementsResponse_Result> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 63, 0);\n\n/**\n * @generated from message dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest\n */\nexport type UpdateListOfAdditionalAgreementsRequest = Message<\"dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n\n /**\n * @generated from field: repeated dashboard.product.v1.AgreementOption agreements = 2;\n */\n agreements: AgreementOption[];\n};\n\n/**\n * Describes the message dashboard.product.v1.UpdateListOfAdditionalAgreementsRequest.\n * Use `create(UpdateListOfAdditionalAgreementsRequestSchema)` to create a new message.\n */\nexport const UpdateListOfAdditionalAgreementsRequestSchema: GenMessage<UpdateListOfAdditionalAgreementsRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 64);\n\n/**\n * @generated from message dashboard.product.v1.CreateProductRequest\n */\nexport type CreateProductRequest = Message<\"dashboard.product.v1.CreateProductRequest\"> & {\n /**\n * @generated from field: string name = 1;\n */\n name: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.CreateProductRequest.\n * Use `create(CreateProductRequestSchema)` to create a new message.\n */\nexport const CreateProductRequestSchema: GenMessage<CreateProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 65);\n\n/**\n * @generated from message dashboard.product.v1.DeleteProductRequest\n */\nexport type DeleteProductRequest = Message<\"dashboard.product.v1.DeleteProductRequest\"> & {\n /**\n * @generated from field: string product_id = 1;\n */\n productId: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.DeleteProductRequest.\n * Use `create(DeleteProductRequestSchema)` to create a new message.\n */\nexport const DeleteProductRequestSchema: GenMessage<DeleteProductRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 66);\n\n/**\n * @generated from message dashboard.product.v1.GetProductByIdRequest\n */\nexport type GetProductByIdRequest = Message<\"dashboard.product.v1.GetProductByIdRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string id = 2;\n */\n id: string;\n};\n\n/**\n * Describes the message dashboard.product.v1.GetProductByIdRequest.\n * Use `create(GetProductByIdRequestSchema)` to create a new message.\n */\nexport const GetProductByIdRequestSchema: GenMessage<GetProductByIdRequest> = /*@__PURE__*/\n messageDesc(file_dashboard_v1_product, 67);\n\n/**\n * @generated from enum dashboard.product.v1.BillingPeriod\n */\nexport enum BillingPeriod {\n /**\n * @generated from enum value: BILLING_PERIOD_DAILY = 0;\n */\n DAILY = 0,\n\n /**\n * @generated from enum value: BILLING_PERIOD_WEEKLY = 1;\n */\n WEEKLY = 1,\n\n /**\n * @generated from enum value: BILLING_PERIOD_MONTHLY = 2;\n */\n MONTHLY = 2,\n\n /**\n * @generated from enum value: BILLING_PERIOD_QUARTERLY = 3;\n */\n QUARTERLY = 3,\n\n /**\n * @generated from enum value: BILLING_PERIOD_SEMI_ANNUALLY = 4;\n */\n SEMI_ANNUALLY = 4,\n\n /**\n * @generated from enum value: BILLING_PERIOD_ANNUALLY = 5;\n */\n ANNUALLY = 5,\n}\n\n/**\n * Describes the enum dashboard.product.v1.BillingPeriod.\n */\nexport const BillingPeriodSchema: GenEnum<BillingPeriod> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 0);\n\n/**\n * @generated from enum dashboard.product.v1.FailureMessage\n */\nexport enum FailureMessage {\n /**\n * @generated from enum value: FAILURE_MESSAGE_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_PRODUCT_NOT_FOUND = 2;\n */\n PRODUCT_NOT_FOUND = 2,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_INVALID_PRODUCT_ID = 3;\n */\n INVALID_PRODUCT_ID = 3,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_SLUG_ALREADY_TAKEN = 4;\n */\n SLUG_ALREADY_TAKEN = 4,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_CANNOT_CREATE_PRODUCT = 5;\n */\n CANNOT_CREATE_PRODUCT = 5,\n\n /**\n * @generated from enum value: FAILURE_MESSAGE_NO_ACCESS = 6;\n */\n NO_ACCESS = 6,\n}\n\n/**\n * Describes the enum dashboard.product.v1.FailureMessage.\n */\nexport const FailureMessageSchema: GenEnum<FailureMessage> = /*@__PURE__*/\n enumDesc(file_dashboard_v1_product, 1);\n\n/**\n * @generated from service dashboard.product.v1.ProductRouter\n */\nexport const ProductRouter: GenService<{\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.CreateOrUpdateProduct\n */\n createOrUpdateProduct: {\n methodKind: \"unary\";\n input: typeof CreateOrUpdateProductRequestSchema;\n output: typeof CreateOrUpdateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.DuplicateProduct\n */\n duplicateProduct: {\n methodKind: \"unary\";\n input: typeof DuplicateProductRequestSchema;\n output: typeof DuplicateProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductUniqueSlug\n */\n updateProductUniqueSlug: {\n methodKind: \"unary\";\n input: typeof UpdateProductUniqueSlugRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProduct\n */\n getProduct: {\n methodKind: \"unary\";\n input: typeof GetProductRequestSchema;\n output: typeof GetProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductSendTicketAfterPurchase\n */\n getProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductSendTicketAfterPurchaseRequestSchema;\n output: typeof GetProductSendTicketAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAudiobookAfterPurchase\n */\n getProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof GetProductAudiobookAfterPurchaseRequestSchema;\n output: typeof GetProductAudiobookAfterPurchaseResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductSendTicketAfterPurchase\n */\n updateProductSendTicketAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductSendTicketAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAudiobookAfterPurchase\n */\n updateProductAudiobookAfterPurchase: {\n methodKind: \"unary\";\n input: typeof UpdateProductAudiobookAfterPurchaseRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.PublishProductIfNeeded\n */\n publishProductIfNeeded: {\n methodKind: \"unary\";\n input: typeof PublishProductIfNeededRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductAfterPurchaseMessage\n */\n getProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof GetProductAfterPurchaseMessageRequestSchema;\n output: typeof GetProductAfterPurchaseMessageResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductAfterPurchaseMessage\n */\n updateProductAfterPurchaseMessage: {\n methodKind: \"unary\";\n input: typeof UpdateProductAfterPurchaseMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductVariants\n */\n getProductVariants: {\n methodKind: \"unary\";\n input: typeof GetProductVariantsRequestSchema;\n output: typeof GetProductVariantsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SendTestEmailWithMessage\n */\n sendTestEmailWithMessage: {\n methodKind: \"unary\";\n input: typeof SendTestEmailWithMessageRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SearchProducts\n */\n searchProducts: {\n methodKind: \"unary\";\n input: typeof SearchProductsRequestSchema;\n output: typeof SearchProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ExchangeProductIDsToNames\n */\n exchangeProductIDsToNames: {\n methodKind: \"unary\";\n input: typeof ExchangeProductIDsToNamesRequestSchema;\n output: typeof ExchangeProductIDsToNamesResponseSchema;\n },\n /**\n * After product buy methods\n *\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductBoughtArticles\n */\n getProductBoughtArticles: {\n methodKind: \"unary\";\n input: typeof GetProductBoughtArticlesRequestSchema;\n output: typeof GetProductBoughtArticlesResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateProductBoughtArticle\n */\n updateProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof UpdateProductBoughtArticleRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.AddProductBoughtArticle\n */\n addProductBoughtArticle: {\n methodKind: \"unary\";\n input: typeof ProductBoughtArticleSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetFileAccessMembers\n */\n getFileAccessMembers: {\n methodKind: \"unary\";\n input: typeof GetFileAccessMembersRequestSchema;\n output: typeof GetFileAccessMembersResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GiveAccessToFile\n */\n giveAccessToFile: {\n methodKind: \"unary\";\n input: typeof GiveAccessToFileRequestSchema;\n output: typeof GiveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.RemoveAccessToFile\n */\n removeAccessToFile: {\n methodKind: \"unary\";\n input: typeof RemoveAccessToFileRequestSchema;\n output: typeof RemoveAccessToFileResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.ArchiveProduct\n */\n archiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UnarchiveProduct\n */\n unarchiveProduct: {\n methodKind: \"unary\";\n input: typeof ArchiveProductRequestSchema;\n output: typeof BoolResponseSchema;\n },\n /**\n * Dashboard product procedures (ported from tRPC)\n *\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProducts\n */\n getProducts: {\n methodKind: \"unary\";\n input: typeof GetProductsRequestSchema;\n output: typeof GetProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductsByIds\n */\n getProductsByIds: {\n methodKind: \"unary\";\n input: typeof GetProductsByIdsRequestSchema;\n output: typeof GetProductsByIdsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductGrid\n */\n getProductGrid: {\n methodKind: \"unary\";\n input: typeof GetProductGridRequestSchema;\n output: typeof GetProductGridResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetMainPageProducts\n */\n getMainPageProducts: {\n methodKind: \"unary\";\n input: typeof GetMainPageProductsRequestSchema;\n output: typeof GetMainPageProductsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetPublicProductByUniqueSlug\n */\n getPublicProductByUniqueSlug: {\n methodKind: \"unary\";\n input: typeof GetPublicProductByUniqueSlugRequestSchema;\n output: typeof GetPublicProductByUniqueSlugResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetPublicAgreements\n */\n getPublicAgreements: {\n methodKind: \"unary\";\n input: typeof GetPublicAgreementsRequestSchema;\n output: typeof GetPublicAgreementsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetEProductsAddedForThisProduct\n */\n getEProductsAddedForThisProduct: {\n methodKind: \"unary\";\n input: typeof GetEProductsAddedForThisProductRequestSchema;\n output: typeof GetEProductsAddedForThisProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateEProductsAddedForThisProduct\n */\n updateEProductsAddedForThisProduct: {\n methodKind: \"unary\";\n input: typeof UpdateEProductsAddedForThisProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetListOfAdditionalAgreements\n */\n getListOfAdditionalAgreements: {\n methodKind: \"unary\";\n input: typeof GetListOfAdditionalAgreementsRequestSchema;\n output: typeof GetListOfAdditionalAgreementsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.UpdateListOfAdditionalAgreements\n */\n updateListOfAdditionalAgreements: {\n methodKind: \"unary\";\n input: typeof UpdateListOfAdditionalAgreementsRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.CreateProduct\n */\n createProduct: {\n methodKind: \"unary\";\n input: typeof CreateProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.DeleteProduct\n */\n deleteProduct: {\n methodKind: \"unary\";\n input: typeof DeleteProductRequestSchema;\n output: typeof OperationResultSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetProductById\n */\n getProductById: {\n methodKind: \"unary\";\n input: typeof GetProductByIdRequestSchema;\n output: typeof GetProductResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.GetGuestCatalogSettings\n */\n getGuestCatalogSettings: {\n methodKind: \"unary\";\n input: typeof GetGuestCatalogSettingsRequestSchema;\n output: typeof GetGuestCatalogSettingsResponseSchema;\n },\n /**\n * @generated from rpc dashboard.product.v1.ProductRouter.SetGuestCatalogEntry\n */\n setGuestCatalogEntry: {\n methodKind: \"unary\";\n input: typeof SetGuestCatalogEntryRequestSchema;\n output: typeof GetGuestCatalogSettingsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_dashboard_v1_product, 0);\n\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { PublicApiService } from \"./public_api_pb\";\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrder\n */\nexport const getOrder = PublicApiService.method.getOrder;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrders\n */\nexport const getOrders = PublicApiService.method.getOrders;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetOrderRetryUrl\n */\nexport const getOrderRetryUrl = PublicApiService.method.getOrderRetryUrl;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogin\n */\nexport const userPanelLogin = PublicApiService.method.userPanelLogin;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLoginWithCode\n */\nexport const userPanelLoginWithCode = PublicApiService.method.userPanelLoginWithCode;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelLogout\n */\nexport const userPanelLogout = PublicApiService.method.userPanelLogout;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelDeleteAccount\n */\nexport const userPanelDeleteAccount = PublicApiService.method.userPanelDeleteAccount;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetProducts\n */\nexport const userPanelGetProducts = PublicApiService.method.userPanelGetProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetails\n */\nexport const userPanelGetAudiobookDetails = PublicApiService.method.userPanelGetAudiobookDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetAudiobookDetailsDownloadURLs\n */\nexport const userPanelGetAudiobookDetailsDownloadURLs = PublicApiService.method.userPanelGetAudiobookDetailsDownloadURLs;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetFileDetails\n */\nexport const userPanelGetFileDetails = PublicApiService.method.userPanelGetFileDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetTicketDetails\n */\nexport const userPanelGetTicketDetails = PublicApiService.method.userPanelGetTicketDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelGetCourseDetails\n */\nexport const userPanelGetCourseDetails = PublicApiService.method.userPanelGetCourseDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushSendDeviceToken\n */\nexport const pushSendDeviceToken = PublicApiService.method.pushSendDeviceToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.PushEvent\n */\nexport const pushEvent = PublicApiService.method.pushEvent;\n\n/**\n * iOS SHOP methods\n *\n * @generated from rpc public_api.v1.PublicApiService.ShouldShopProducts\n */\nexport const shouldShopProducts = PublicApiService.method.shouldShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ShouldShowGuestCatalog\n */\nexport const shouldShowGuestCatalog = PublicApiService.method.shouldShowGuestCatalog;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetGuestCatalog\n */\nexport const getGuestCatalog = PublicApiService.method.getGuestCatalog;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UserPanelResolveProductAccess\n */\nexport const userPanelResolveProductAccess = PublicApiService.method.userPanelResolveProductAccess;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetShopProducts\n */\nexport const getShopProducts = PublicApiService.method.getShopProducts;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.DidBuyProduct\n */\nexport const didBuyProduct = PublicApiService.method.didBuyProduct;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreAccountToken\n */\nexport const getAppStoreAccountToken = PublicApiService.method.getAppStoreAccountToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.VerifyAppStorePurchase\n */\nexport const verifyAppStorePurchase = PublicApiService.method.verifyAppStorePurchase;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetAppStoreEntitlements\n */\nexport const getAppStoreEntitlements = PublicApiService.method.getAppStoreEntitlements;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.RestoreAppStorePurchases\n */\nexport const restoreAppStorePurchases = PublicApiService.method.restoreAppStorePurchases;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ClearAppStoreAccountToken\n */\nexport const clearAppStoreAccountToken = PublicApiService.method.clearAppStoreAccountToken;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetStoreKitCatalog\n */\nexport const getStoreKitCatalog = PublicApiService.method.getStoreKitCatalog;\n\n/**\n * Notification settings\n *\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettings\n */\nexport const getNotificationSettings = PublicApiService.method.getNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationSettingsDetails\n */\nexport const getNotificationSettingsDetails = PublicApiService.method.getNotificationSettingsDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateGlobalNotificationSettings\n */\nexport const updateGlobalNotificationSettings = PublicApiService.method.updateGlobalNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.UpdateNotificationSettings\n */\nexport const updateNotificationSettings = PublicApiService.method.updateNotificationSettings;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetNotificationHistory\n */\nexport const getNotificationHistory = PublicApiService.method.getNotificationHistory;\n\n/**\n * Product V2 requests\n *\n * @generated from rpc public_api.v1.PublicApiService.GetAvailableCountForProduct\n */\nexport const getAvailableCountForProduct = PublicApiService.method.getAvailableCountForProduct;\n\n/**\n * Checkout requests\n *\n * @generated from rpc public_api.v1.PublicApiService.IsOneClickPaymentAvailable\n */\nexport const isOneClickPaymentAvailable = PublicApiService.method.isOneClickPaymentAvailable;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetPreOrderDetails\n */\nexport const getPreOrderDetails = PublicApiService.method.getPreOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.ApplePayValidateMerchant\n */\nexport const applePayValidateMerchant = PublicApiService.method.applePayValidateMerchant;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AuthorizeOneClickPayment\n */\nexport const authorizeOneClickPayment = PublicApiService.method.authorizeOneClickPayment;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.NotifyUserAboutProductAvailability\n */\nexport const notifyUserAboutProductAvailability = PublicApiService.method.notifyUserAboutProductAvailability;\n\n/**\n * Public order details (with obfuscation)\n *\n * @generated from rpc public_api.v1.PublicApiService.GetPublicOrderDetails\n */\nexport const getPublicOrderDetails = PublicApiService.method.getPublicOrderDetails;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.AddPublicOrderComment\n */\nexport const addPublicOrderComment = PublicApiService.method.addPublicOrderComment;\n\n/**\n * Testimonials\n *\n * @generated from rpc public_api.v1.PublicApiService.GetOrderForTestimonial\n */\nexport const getOrderForTestimonial = PublicApiService.method.getOrderForTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.SubmitTestimonial\n */\nexport const submitTestimonial = PublicApiService.method.submitTestimonial;\n\n/**\n * @generated from rpc public_api.v1.PublicApiService.GetTestimonialUploadUrl\n */\nexport const getTestimonialUploadUrl = PublicApiService.method.getTestimonialUploadUrl;\n","// @generated by protoc-gen-connect-query v2.2.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/returns.proto (package public.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ReturnsService } from \"./returns_pb\";\n\n/**\n * @generated from rpc public.v1.ReturnsService.StartReturnSession\n */\nexport const startReturnSession = ReturnsService.method.startReturnSession;\n\n/**\n * @generated from rpc public.v1.ReturnsService.VerifyReturnSession\n */\nexport const verifyReturnSession = ReturnsService.method.verifyReturnSession;\n\n/**\n * @generated from rpc public.v1.ReturnsService.ListReturnOrders\n */\nexport const listReturnOrders = ReturnsService.method.listReturnOrders;\n\n/**\n * @generated from rpc public.v1.ReturnsService.GetReturnableOrder\n */\nexport const getReturnableOrder = ReturnsService.method.getReturnableOrder;\n\n/**\n * @generated from rpc public.v1.ReturnsService.CreateReturnRequest\n */\nexport const createReturnRequest = ReturnsService.method.createReturnRequest;\n\n/**\n * @generated from rpc public.v1.ReturnsService.ListMyReturns\n */\nexport const listMyReturns = ReturnsService.method.listMyReturns;\n\n/**\n * @generated from rpc public.v1.ReturnsService.GetMyReturn\n */\nexport const getMyReturn = ReturnsService.method.getMyReturn;\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts,ts_nocheck=true\"\n// @generated from file public/v1/returns.proto (package public.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Environment } from \"../../common/v1/environment_pb\";\nimport { file_common_v1_environment } from \"../../common/v1/environment_pb\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/returns.proto.\n */\nexport const file_public_v1_returns: GenFile = /*@__PURE__*/\n fileDesc(\"ChdwdWJsaWMvdjEvcmV0dXJucy5wcm90bxIJcHVibGljLnYxImsKGVN0YXJ0UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRINCgVlbWFpbBgCIAEoCRIrCgtlbnZpcm9ubWVudBgDIAEoDjIWLmNvbW1vbi52MS5FbnZpcm9ubWVudCJhChpTdGFydFJldHVyblNlc3Npb25SZXNwb25zZRIUCgxjaGFsbGVuZ2VfaWQYASABKAkSHAoUcmVzZW5kX2FmdGVyX3NlY29uZHMYAiABKAUSDwoHbWVzc2FnZRgDIAEoCSKBAQoaVmVyaWZ5UmV0dXJuU2Vzc2lvblJlcXVlc3QSEgoKcHJvamVjdF9pZBgBIAEoCRIUCgxjaGFsbGVuZ2VfaWQYAiABKAkSDAoEY29kZRgDIAEoCRIrCgtlbnZpcm9ubWVudBgEIAEoDjIWLmNvbW1vbi52MS5FbnZpcm9ubWVudCJkChtWZXJpZnlSZXR1cm5TZXNzaW9uUmVzcG9uc2USFQoNc2Vzc2lvbl90b2tlbhgBIAEo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kZXJSZXNwb25zZRJkChNDcmVhdGVSZXR1cm5SZXF1ZXN0EiUucHVibGljLnYxLkNyZWF0ZVJldHVyblJlcXVlc3RSZXF1ZXN0GiYucHVibGljLnYxLkNyZWF0ZVJldHVyblJlcXVlc3RSZXNwb25zZRJSCg1MaXN0TXlSZXR1cm5zEh8ucHVibGljLnYxLkxpc3RNeVJldHVybnNSZXF1ZXN0GiAucHVibGljLnYxLkxpc3RNeVJldHVybnNSZXNwb25zZRJMCgtHZXRNeVJldHVybhIdLnB1YmxpYy52MS5HZXRNeVJldHVyblJlcXVlc3QaHi5wdWJsaWMudjEuR2V0TXlSZXR1cm5SZXNwb25zZWIGcHJvdG8z\", [file_common_v1_environment, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message public.v1.StartReturnSessionRequest\n */\nexport type StartReturnSessionRequest = Message<\"public.v1.StartReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 3;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionRequest.\n * Use `create(StartReturnSessionRequestSchema)` to create a new message.\n */\nexport const StartReturnSessionRequestSchema: GenMessage<StartReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 0);\n\n/**\n * @generated from message public.v1.StartReturnSessionResponse\n */\nexport type StartReturnSessionResponse = Message<\"public.v1.StartReturnSessionResponse\"> & {\n /**\n * @generated from field: string challenge_id = 1;\n */\n challengeId: string;\n\n /**\n * @generated from field: int32 resend_after_seconds = 2;\n */\n resendAfterSeconds: number;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n};\n\n/**\n * Describes the message public.v1.StartReturnSessionResponse.\n * Use `create(StartReturnSessionResponseSchema)` to create a new message.\n */\nexport const StartReturnSessionResponseSchema: GenMessage<StartReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 1);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionRequest\n */\nexport type VerifyReturnSessionRequest = Message<\"public.v1.VerifyReturnSessionRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string challenge_id = 2;\n */\n challengeId: string;\n\n /**\n * @generated from field: string code = 3;\n */\n code: string;\n\n /**\n * @generated from field: common.v1.Environment environment = 4;\n */\n environment: Environment;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionRequest.\n * Use `create(VerifyReturnSessionRequestSchema)` to create a new message.\n */\nexport const VerifyReturnSessionRequestSchema: GenMessage<VerifyReturnSessionRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 2);\n\n/**\n * @generated from message public.v1.VerifyReturnSessionResponse\n */\nexport type VerifyReturnSessionResponse = Message<\"public.v1.VerifyReturnSessionResponse\"> & {\n /**\n * @generated from field: string session_token = 1;\n */\n sessionToken: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp expires_at = 2;\n */\n expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message public.v1.VerifyReturnSessionResponse.\n * Use `create(VerifyReturnSessionResponseSchema)` to create a new message.\n */\nexport const VerifyReturnSessionResponseSchema: GenMessage<VerifyReturnSessionResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 3);\n\n/**\n * @generated from message public.v1.ReturnPage\n */\nexport type ReturnPage = Message<\"public.v1.ReturnPage\"> & {\n /**\n * @generated from field: int32 page_size = 1;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ReturnPage.\n * Use `create(ReturnPageSchema)` to create a new message.\n */\nexport const ReturnPageSchema: GenMessage<ReturnPage> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 4);\n\n/**\n * @generated from message public.v1.ReturnOrderSummary\n */\nexport type ReturnOrderSummary = Message<\"public.v1.ReturnOrderSummary\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: int32 returnable_line_count = 7;\n */\n returnableLineCount: number;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderSummary.\n * Use `create(ReturnOrderSummarySchema)` to create a new message.\n */\nexport const ReturnOrderSummarySchema: GenMessage<ReturnOrderSummary> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 5);\n\n/**\n * @generated from message public.v1.ListReturnOrdersRequest\n */\nexport type ListReturnOrdersRequest = Message<\"public.v1.ListReturnOrdersRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersRequest.\n * Use `create(ListReturnOrdersRequestSchema)` to create a new message.\n */\nexport const ListReturnOrdersRequestSchema: GenMessage<ListReturnOrdersRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 6);\n\n/**\n * @generated from message public.v1.ListReturnOrdersResponse\n */\nexport type ListReturnOrdersResponse = Message<\"public.v1.ListReturnOrdersResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnOrderSummary orders = 1;\n */\n orders: ReturnOrderSummary[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListReturnOrdersResponse.\n * Use `create(ListReturnOrdersResponseSchema)` to create a new message.\n */\nexport const ListReturnOrdersResponseSchema: GenMessage<ListReturnOrdersResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 7);\n\n/**\n * @generated from message public.v1.ReturnOrderLine\n */\nexport type ReturnOrderLine = Message<\"public.v1.ReturnOrderLine\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string variant_id = 3;\n */\n variantId: string;\n\n /**\n * @generated from field: string name = 4;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 5;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 purchased_quantity = 6;\n */\n purchasedQuantity: number;\n\n /**\n * @generated from field: int32 reserved_quantity = 7;\n */\n reservedQuantity: number;\n\n /**\n * @generated from field: int32 returned_quantity = 8;\n */\n returnedQuantity: number;\n\n /**\n * @generated from field: int32 available_quantity = 9;\n */\n availableQuantity: number;\n\n /**\n * @generated from field: int64 regular_unit_minor = 10;\n */\n regularUnitMinor: bigint;\n\n /**\n * @generated from field: int64 paid_unit_minor = 11;\n */\n paidUnitMinor: bigint;\n\n /**\n * @generated from field: string currency = 12;\n */\n currency: string;\n\n /**\n * @generated from field: bool eligible = 13;\n */\n eligible: boolean;\n\n /**\n * @generated from field: string exclusion_reason = 14;\n */\n exclusionReason: string;\n\n /**\n * @generated from field: int64 paid_line_total_minor = 15;\n */\n paidLineTotalMinor: bigint;\n\n /**\n * @generated from field: int64 coupon_allocation_minor = 16;\n */\n couponAllocationMinor: bigint;\n\n /**\n * @generated from field: string access_source = 17;\n */\n accessSource: string;\n\n /**\n * @generated from field: string access_reference = 18;\n */\n accessReference: string;\n};\n\n/**\n * Describes the message public.v1.ReturnOrderLine.\n * Use `create(ReturnOrderLineSchema)` to create a new message.\n */\nexport const ReturnOrderLineSchema: GenMessage<ReturnOrderLine> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 8);\n\n/**\n * @generated from message public.v1.ReturnOrderDetail\n */\nexport type ReturnOrderDetail = Message<\"public.v1.ReturnOrderDetail\"> & {\n /**\n * @generated from field: string canonical_order_id = 1;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string display_reference = 2;\n */\n displayReference: string;\n\n /**\n * @generated from field: string gateway = 3;\n */\n gateway: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp purchased_at = 4;\n */\n purchasedAt?: Timestamp;\n\n /**\n * @generated from field: int64 total_minor = 5;\n */\n totalMinor: bigint;\n\n /**\n * @generated from field: string currency = 6;\n */\n currency: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnOrderLine lines = 7;\n */\n lines: ReturnOrderLine[];\n};\n\n/**\n * Describes the message public.v1.ReturnOrderDetail.\n * Use `create(ReturnOrderDetailSchema)` to create a new message.\n */\nexport const ReturnOrderDetailSchema: GenMessage<ReturnOrderDetail> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 9);\n\n/**\n * @generated from message public.v1.ReturnRequestLineInput\n */\nexport type ReturnRequestLineInput = Message<\"public.v1.ReturnRequestLineInput\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: int32 quantity = 2;\n */\n quantity: number;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineInput.\n * Use `create(ReturnRequestLineInputSchema)` to create a new message.\n */\nexport const ReturnRequestLineInputSchema: GenMessage<ReturnRequestLineInput> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 10);\n\n/**\n * @generated from message public.v1.ReturnHistoryEntry\n */\nexport type ReturnHistoryEntry = Message<\"public.v1.ReturnHistoryEntry\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string status = 3;\n */\n status: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 4;\n */\n createdAt?: Timestamp;\n};\n\n/**\n * Describes the message public.v1.ReturnHistoryEntry.\n * Use `create(ReturnHistoryEntrySchema)` to create a new message.\n */\nexport const ReturnHistoryEntrySchema: GenMessage<ReturnHistoryEntry> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 11);\n\n/**\n * @generated from message public.v1.ReturnRequestLineView\n */\nexport type ReturnRequestLineView = Message<\"public.v1.ReturnRequestLineView\"> & {\n /**\n * @generated from field: string line_id = 1;\n */\n lineId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string fulfillment_type = 3;\n */\n fulfillmentType: string;\n\n /**\n * @generated from field: int32 requested_quantity = 4;\n */\n requestedQuantity: number;\n\n /**\n * @generated from field: int32 approved_quantity = 5;\n */\n approvedQuantity: number;\n\n /**\n * @generated from field: int32 received_quantity = 6;\n */\n receivedQuantity: number;\n\n /**\n * @generated from field: string access_status = 7;\n */\n accessStatus: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestLineView.\n * Use `create(ReturnRequestLineViewSchema)` to create a new message.\n */\nexport const ReturnRequestLineViewSchema: GenMessage<ReturnRequestLineView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 12);\n\n/**\n * @generated from message public.v1.ReturnRequestView\n */\nexport type ReturnRequestView = Message<\"public.v1.ReturnRequestView\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string reference = 2;\n */\n reference: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: string status = 4;\n */\n status: string;\n\n /**\n * @generated from field: string refund_status = 5;\n */\n refundStatus: string;\n\n /**\n * @generated from field: int64 refund_amount_minor = 6;\n */\n refundAmountMinor: bigint;\n\n /**\n * @generated from field: string currency = 7;\n */\n currency: string;\n\n /**\n * @generated from field: string customer_note = 8;\n */\n customerNote: string;\n\n /**\n * @generated from field: int64 version = 9;\n */\n version: bigint;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 10;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineView lines = 11;\n */\n lines: ReturnRequestLineView[];\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry history = 12;\n */\n history: ReturnHistoryEntry[];\n\n /**\n * @generated from field: string return_instructions = 13;\n */\n returnInstructions: string;\n};\n\n/**\n * Describes the message public.v1.ReturnRequestView.\n * Use `create(ReturnRequestViewSchema)` to create a new message.\n */\nexport const ReturnRequestViewSchema: GenMessage<ReturnRequestView> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 13);\n\n/**\n * @generated from message public.v1.GetReturnableOrderRequest\n */\nexport type GetReturnableOrderRequest = Message<\"public.v1.GetReturnableOrderRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderRequest.\n * Use `create(GetReturnableOrderRequestSchema)` to create a new message.\n */\nexport const GetReturnableOrderRequestSchema: GenMessage<GetReturnableOrderRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 14);\n\n/**\n * @generated from message public.v1.GetReturnableOrderResponse\n */\nexport type GetReturnableOrderResponse = Message<\"public.v1.GetReturnableOrderResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnOrderDetail order = 1;\n */\n order?: ReturnOrderDetail;\n\n /**\n * @generated from field: repeated public.v1.ReturnHistoryEntry return_history = 2;\n */\n returnHistory: ReturnHistoryEntry[];\n};\n\n/**\n * Describes the message public.v1.GetReturnableOrderResponse.\n * Use `create(GetReturnableOrderResponseSchema)` to create a new message.\n */\nexport const GetReturnableOrderResponseSchema: GenMessage<GetReturnableOrderResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 15);\n\n/**\n * @generated from message public.v1.CreateReturnRequestRequest\n */\nexport type CreateReturnRequestRequest = Message<\"public.v1.CreateReturnRequestRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string canonical_order_id = 3;\n */\n canonicalOrderId: string;\n\n /**\n * @generated from field: repeated public.v1.ReturnRequestLineInput items = 4;\n */\n items: ReturnRequestLineInput[];\n\n /**\n * @generated from field: string note = 5;\n */\n note: string;\n\n /**\n * @generated from field: string idempotency_key = 6;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestRequest.\n * Use `create(CreateReturnRequestRequestSchema)` to create a new message.\n */\nexport const CreateReturnRequestRequestSchema: GenMessage<CreateReturnRequestRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 16);\n\n/**\n * @generated from message public.v1.CreateReturnRequestResponse\n */\nexport type CreateReturnRequestResponse = Message<\"public.v1.CreateReturnRequestResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView;\n};\n\n/**\n * Describes the message public.v1.CreateReturnRequestResponse.\n * Use `create(CreateReturnRequestResponseSchema)` to create a new message.\n */\nexport const CreateReturnRequestResponseSchema: GenMessage<CreateReturnRequestResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 17);\n\n/**\n * @generated from message public.v1.ListMyReturnsRequest\n */\nexport type ListMyReturnsRequest = Message<\"public.v1.ListMyReturnsRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: int32 page_size = 3;\n */\n pageSize: number;\n\n /**\n * @generated from field: string page_token = 4;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsRequest.\n * Use `create(ListMyReturnsRequestSchema)` to create a new message.\n */\nexport const ListMyReturnsRequestSchema: GenMessage<ListMyReturnsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 18);\n\n/**\n * @generated from message public.v1.ListMyReturnsResponse\n */\nexport type ListMyReturnsResponse = Message<\"public.v1.ListMyReturnsResponse\"> & {\n /**\n * @generated from field: repeated public.v1.ReturnRequestView returns = 1;\n */\n returns: ReturnRequestView[];\n\n /**\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * @generated from field: int32 total = 3;\n */\n total: number;\n};\n\n/**\n * Describes the message public.v1.ListMyReturnsResponse.\n * Use `create(ListMyReturnsResponseSchema)` to create a new message.\n */\nexport const ListMyReturnsResponseSchema: GenMessage<ListMyReturnsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 19);\n\n/**\n * @generated from message public.v1.GetMyReturnRequest\n */\nexport type GetMyReturnRequest = Message<\"public.v1.GetMyReturnRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string session_token = 2;\n */\n sessionToken: string;\n\n /**\n * @generated from field: string return_id = 3;\n */\n returnId: string;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnRequest.\n * Use `create(GetMyReturnRequestSchema)` to create a new message.\n */\nexport const GetMyReturnRequestSchema: GenMessage<GetMyReturnRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 20);\n\n/**\n * @generated from message public.v1.GetMyReturnResponse\n */\nexport type GetMyReturnResponse = Message<\"public.v1.GetMyReturnResponse\"> & {\n /**\n * @generated from field: public.v1.ReturnRequestView request = 1;\n */\n request?: ReturnRequestView;\n};\n\n/**\n * Describes the message public.v1.GetMyReturnResponse.\n * Use `create(GetMyReturnResponseSchema)` to create a new message.\n */\nexport const GetMyReturnResponseSchema: GenMessage<GetMyReturnResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_returns, 21);\n\n/**\n * @generated from service public.v1.ReturnsService\n */\nexport const ReturnsService: GenService<{\n /**\n * @generated from rpc public.v1.ReturnsService.StartReturnSession\n */\n startReturnSession: {\n methodKind: \"unary\";\n input: typeof StartReturnSessionRequestSchema;\n output: typeof StartReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.VerifyReturnSession\n */\n verifyReturnSession: {\n methodKind: \"unary\";\n input: typeof VerifyReturnSessionRequestSchema;\n output: typeof VerifyReturnSessionResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListReturnOrders\n */\n listReturnOrders: {\n methodKind: \"unary\";\n input: typeof ListReturnOrdersRequestSchema;\n output: typeof ListReturnOrdersResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetReturnableOrder\n */\n getReturnableOrder: {\n methodKind: \"unary\";\n input: typeof GetReturnableOrderRequestSchema;\n output: typeof GetReturnableOrderResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.CreateReturnRequest\n */\n createReturnRequest: {\n methodKind: \"unary\";\n input: typeof CreateReturnRequestRequestSchema;\n output: typeof CreateReturnRequestResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.ListMyReturns\n */\n listMyReturns: {\n methodKind: \"unary\";\n input: typeof ListMyReturnsRequestSchema;\n output: typeof ListMyReturnsResponseSchema;\n },\n /**\n * @generated from rpc public.v1.ReturnsService.GetMyReturn\n */\n getMyReturn: {\n methodKind: \"unary\";\n input: typeof GetMyReturnRequestSchema;\n output: typeof GetMyReturnResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_public_v1_returns, 0);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file common/v1/environment.proto (package common.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file common/v1/environment.proto.\n */\nexport const file_common_v1_environment: GenFile = /*@__PURE__*/\n fileDesc(\"Chtjb21tb24vdjEvZW52aXJvbm1lbnQucHJvdG8SCWNvbW1vbi52MSonCgtFbnZpcm9ubWVudBIOCgpQUk9EVUNUSU9OEAASCAoEVEVTVBABQk5aTGdpdGh1Yi5jb20vZW1tZW1zL3N1cGVyLWNhcnQvYXBwcy9zcnYtd29ya2VyL3V0aWxzL21vZGVscy9jb21tb24vdjE7Y29tbW9udjFiBnByb3RvMw\");\n\n/**\n * @generated from enum common.v1.Environment\n */\nexport enum Environment {\n /**\n * @generated from enum value: PRODUCTION = 0;\n */\n PRODUCTION = 0,\n\n /**\n * @generated from enum value: TEST = 1;\n */\n TEST = 1,\n}\n\n/**\n * Describes the enum common.v1.Environment.\n */\nexport const EnvironmentSchema: GenEnum<Environment> = /*@__PURE__*/\n enumDesc(file_common_v1_environment, 0);\n\n","import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n xs: \"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3\",\n sm: \"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-xs\": \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot.Root : \"button\"\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n","import * as React from \"react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Card({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card\"\n className={cn(\n \"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-header\"\n className={cn(\n \"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardTitle({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-title\"\n className={cn(\"leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction CardDescription({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nfunction CardAction({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-action\"\n className={cn(\n \"col-start-2 row-span-2 row-start-1 self-start justify-self-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction CardContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-content\"\n className={cn(\"px-6\", className)}\n {...props}\n />\n )\n}\n\nfunction CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"card-footer\"\n className={cn(\"flex items-center px-6 [.border-t]:pt-6\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Card,\n CardHeader,\n CardFooter,\n CardTitle,\n CardAction,\n CardDescription,\n CardContent,\n}\n","import * as React from \"react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n","import * as React from \"react\"\nimport { OTPInput, OTPInputContext } from \"input-otp\"\nimport { MinusIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction InputOTP({\n className,\n containerClassName,\n ...props\n}: React.ComponentProps<typeof OTPInput> & {\n containerClassName?: string\n}) {\n return (\n <OTPInput\n data-slot=\"input-otp\"\n containerClassName={cn(\n \"flex items-center gap-2 has-disabled:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n )\n}\n\nfunction InputOTPGroup({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"input-otp-group\"\n className={cn(\"flex items-center\", className)}\n {...props}\n />\n )\n}\n\nfunction InputOTPSlot({\n index,\n className,\n ...props\n}: React.ComponentProps<\"div\"> & {\n index: number\n}) {\n const inputOTPContext = React.useContext(OTPInputContext)\n const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {}\n\n return (\n <div\n data-slot=\"input-otp-slot\"\n data-active={isActive}\n className={cn(\n \"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\" />\n </div>\n )}\n </div>\n )\n}\n\nfunction InputOTPSeparator({ ...props }: React.ComponentProps<\"div\">) {\n return (\n <div data-slot=\"input-otp-separator\" role=\"separator\" {...props}>\n <MinusIcon />\n </div>\n )\n}\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }\n","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n","export function LoadingIndicator() {\n return (\n <div className=\"flex items-center gap-2\">\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current [animation-delay:-0.3s]\" />\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current [animation-delay:-0.15s]\" />\n <div className=\"h-3 w-3 animate-bounce rounded-full bg-current\" />\n </div>\n );\n}\n\nexport default LoadingIndicator;\n","import type { GetThemeOutput } from \"./types\";\n\nlet config: PanelConfig = {\n projectID: undefined,\n loginURL: \"/panel/login\",\n theme: undefined,\n host: undefined,\n allowedReturnOrigins: [],\n};\n\nlet allowedReturnOrigins: string[] = [];\n\nexport interface PanelConfig {\n projectID?: string;\n loginURL?: string;\n theme?: GetThemeOutput;\n host?: string;\n allowedReturnOrigins: string[];\n}\n\nexport function setPanelConfig(newConfig: Partial<PanelConfig>): void {\n config = { ...config, ...newConfig };\n}\n\nexport function getPanelConfig(): PanelConfig {\n return config;\n}\n\nexport function setProjectID(projectID: string): void {\n config.projectID = projectID;\n}\n\nexport function setTheme(theme: GetThemeOutput): void {\n config.theme = theme;\n}\n\nexport function setLoginURL(loginURL: string): void {\n config.loginURL = loginURL;\n}\n\nexport function setHost(host: string): void {\n config.host = host;\n}\n\nexport function setAllowedReturnOrigins(origins: string[]): void {\n allowedReturnOrigins = origins;\n config = { ...config, allowedReturnOrigins: origins };\n}\n\nexport function getAllowedReturnOrigins(): string[] {\n return allowedReturnOrigins;\n}\n","import { createContext, useContext } from \"react\";\nimport { RpcProvider } from \"../rpc-provider\";\nimport { getPanelConfig, type PanelConfig } from \"./config\";\n\nconst PanelContext = createContext<PanelConfig>(getPanelConfig());\n\nexport const PanelProvider: React.FC<{\n children: React.ReactNode;\n}> = ({ children }) => {\n return (\n <RpcProvider>\n <PanelContext.Provider value={{ ...getPanelConfig() }}>\n <div className=\"bitsnap-react\">{children}</div>\n </PanelContext.Provider>\n </RpcProvider>\n );\n};\n\nexport const usePanelConfig = () => useContext(PanelContext);\n","import { getAllowedReturnOrigins } from \"./config\";\n\nconst RETURN_URL_PARAM = \"return_url\";\nconst RETURN_URL_STORAGE_KEY = \"__return_url\";\nconst ACCESS_TOKEN_PARAM = \"accessToken\";\n\nexport function getReturnURLFromSearch(search: string): string | null {\n const raw = new URLSearchParams(search).get(RETURN_URL_PARAM);\n if (!raw) return null;\n return validateReturnURL(raw);\n}\n\nexport function persistReturnURL(returnURL: string | null): void {\n if (typeof window === \"undefined\") return;\n if (returnURL) {\n window.sessionStorage.setItem(RETURN_URL_STORAGE_KEY, returnURL);\n } else {\n window.sessionStorage.removeItem(RETURN_URL_STORAGE_KEY);\n }\n}\n\nexport function readPersistedReturnURL(): string | null {\n if (typeof window === \"undefined\") return null;\n const stored = window.sessionStorage.getItem(RETURN_URL_STORAGE_KEY);\n if (!stored) return null;\n return validateReturnURL(stored);\n}\n\nfunction isOriginAllowed(origin: string, allowedOrigins: string[]): boolean {\n return allowedOrigins.some((allowed) => {\n if (origin === allowed) return true;\n const allowedHost = new URL(allowed).hostname;\n const originHost = new URL(origin).hostname;\n return originHost.endsWith(`.${allowedHost}`) || originHost === allowedHost;\n });\n}\n\nfunction validateReturnURL(raw: string): string | null {\n try {\n const u = new URL(raw);\n if (u.protocol !== \"https:\" && u.protocol !== \"http:\") return null;\n if (!isOriginAllowed(u.origin, getAllowedReturnOrigins())) return null;\n return u.toString();\n } catch {\n return null;\n }\n}\n\nexport function buildAccessTokenRedirect(\n returnURL: string,\n accessToken: string,\n): string {\n const u = new URL(returnURL);\n u.searchParams.set(ACCESS_TOKEN_PARAM, accessToken);\n return u.toString();\n}\n","const panelSessionKey = (projectID: string, host?: string) =>\n `bitsnap-panel-session:${encodeURIComponent(host ?? \"https://bitsnap.pl\")}:${encodeURIComponent(projectID)}`;\n\nconst panelEmailKey = (projectID: string, host?: string) =>\n `bitsnap-panel-email:${encodeURIComponent(host ?? \"https://bitsnap.pl\")}:${encodeURIComponent(projectID)}`;\n\nexport function getPanelSession(projectID?: string, host?: string) {\n if (typeof window === \"undefined\" || !projectID) return undefined;\n const token = window.localStorage.getItem(panelSessionKey(projectID, host));\n return token ?? undefined;\n}\n\nexport function savePanelSession(projectID: string | undefined, token: string, email: string, host?: string) {\n if (typeof window === \"undefined\" || !projectID) return;\n window.localStorage.setItem(panelSessionKey(projectID, host), token);\n window.localStorage.setItem(panelEmailKey(projectID, host), email);\n}\n\nexport function getPanelEmail(projectID?: string, host?: string) {\n if (typeof window === \"undefined\" || !projectID) return null;\n return window.localStorage.getItem(panelEmailKey(projectID, host));\n}\n\nexport function clearPanelSession(projectID?: string, host?: string) {\n if (typeof window === \"undefined\" || !projectID) return;\n window.localStorage.removeItem(panelSessionKey(projectID, host));\n window.localStorage.removeItem(panelEmailKey(projectID, host));\n}\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { useEffect, useState, type CSSProperties } from \"react\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { useUrlSearchParams } from \"../hooks/useUrlSearchParams\";\nimport { usePanelConfig } from \"../PanelProvider\";\nimport {\n buildAccessTokenRedirect,\n getReturnURLFromSearch,\n persistReturnURL,\n readPersistedReturnURL,\n} from \"../return-url\";\n\nimport PanelNotificationsComponent from \"./PanelNotifications\";\nimport PanelOrderHistoryComponent from \"./PanelOrderHistory\";\nimport PanelPlansComponent from \"./PanelPlans\";\nimport PanelProductGridComponent from \"./PanelProductGrid\";\nimport PanelProductHeaderComponent from \"./PanelProductHeader\";\nimport PanelProfileComponent from \"./PanelProfile\";\nimport PublicOrderPage from \"./PublicOrderPage\";\nimport { clearPanelSession, getPanelEmail, getPanelSession } from \"../session-storage\";\n\nexport type PanelScreen =\n | \"products\"\n | \"notifications\"\n | \"profile\"\n | \"plans\"\n | \"orders\"\n | \"order-details\";\n\nexport type PanelSearchParamsType = {\n product?: string;\n state: PanelScreen;\n orderId?: string;\n};\n\nconst PanelPage = () => {\n const { projectID, theme, loginURL, host } = usePanelConfig();\n\n const accessToken = getPanelSession(projectID, host);\n const email = getPanelEmail(projectID, host);\n\n const { mutateAsync: logoutUserAsync } = useMutation(\n rpcProvider.publicApi.userPanelLogout,\n );\n\n async function logout() {\n if (accessToken) {\n await logoutUserAsync({\n accessToken: accessToken as string,\n });\n }\n if (typeof window !== \"undefined\") {\n clearPanelSession(projectID, host);\n window.location.reload();\n }\n }\n\n const [panelParentRef] = useAutoAnimate();\n const isScreen = (value: unknown): value is PanelScreen =>\n [\n \"products\",\n \"notifications\",\n \"profile\",\n \"plans\",\n \"orders\",\n \"order-details\",\n ].includes(value as string);\n\n const [params, setParams] = useUrlSearchParams<PanelSearchParamsType>({\n product: undefined,\n state: \"products\",\n orderId: undefined,\n });\n\n const [activeScreen, setActiveScreen] = useState<PanelScreen>(\n isScreen(params.state) ? params.state : \"products\",\n );\n\n const handleOpenOrderDetails = (orderID: string) => {\n setParams({\n state: \"order-details\",\n orderId: orderID,\n });\n setActiveScreen(\"order-details\");\n };\n\n const handleBackToOrders = () => {\n setParams({\n state: \"orders\",\n orderId: undefined,\n });\n setActiveScreen(\"orders\");\n };\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#000000\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#ffffff\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#000000\",\n } as CSSProperties;\n\n useEffect(() => {\n if (accessToken == null || accessToken.length === 0) {\n window.location.href = loginURL ?? \"/panel/login\";\n return;\n }\n }, []);\n\n useEffect(() => {\n if (accessToken == null || accessToken.length === 0) {\n window.location.href = loginURL ?? \"/panel/login\";\n return;\n }\n }, [activeScreen]);\n\nuseEffect(() => {\n if (typeof window === \"undefined\") return;\n if (window.parent !== window) return;\n if (!accessToken) return;\n\n const queryReturnURL = getReturnURLFromSearch(window.location.search);\n if (queryReturnURL) {\n persistReturnURL(queryReturnURL);\n }\n\n const returnURL = queryReturnURL ?? readPersistedReturnURL();\n if (!returnURL) return;\n\n window.location.href = buildAccessTokenRedirect(returnURL, accessToken);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [accessToken]);\n\n return (\n <div\n ref={panelParentRef}\n className=\"font-inter relative min-h-screen w-screen bg-beige-100 text-black dark:bg-black dark:text-white md:flex\"\n >\n <PanelProductHeaderComponent\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n styles={styles}\n theme={theme}\n logout={logout}\n />\n\n <main className=\"flex h-[calc(100vh-80px)] flex-col overflow-y-auto w-full p-5 md:h-screen\">\n {activeScreen === \"products\" && (\n <PanelProductGridComponent\n projectID={projectID ?? \"\"}\n accessToken={accessToken!}\n loginURL={loginURL ?? \"/panel/login\"}\n styles={styles}\n activeScreen={activeScreen}\n params={params as PanelSearchParamsType}\n setParams={setParams}\n />\n )}\n\n {activeScreen === \"notifications\" && <PanelNotificationsComponent />}\n\n {activeScreen === \"plans\" && (\n <PanelPlansComponent projectID={projectID ?? \"\"} />\n )}\n\n {activeScreen === \"orders\" && (\n <PanelOrderHistoryComponent\n projectID={projectID ?? \"\"}\n accessToken={accessToken ?? \"\"}\n openOrderDetails={handleOpenOrderDetails}\n />\n )}\n\n {activeScreen === \"order-details\" && params.orderId && (\n <PublicOrderPage\n orderID={params.orderId}\n onBack={handleBackToOrders}\n />\n )}\n\n {activeScreen === \"profile\" && (\n <PanelProfileComponent email={email} logout={logout} />\n )}\n </main>\n </div>\n );\n};\n\nexport default PanelPage;\n","import { useState, useCallback, useEffect } from \"react\";\n\nexport function useUrlSearchParams<T extends Record<string, unknown>>(\n initialValue: T,\n): [T, (params: Partial<T>) => void] {\n const [params, setParams] = useState<T>(() => {\n if (typeof window === \"undefined\") {\n return initialValue;\n }\n const urlParams = new URLSearchParams(window.location.search);\n const parsed: Partial<T> = {};\n \n (Object.keys(initialValue) as Array<keyof T>).forEach((key) => {\n const value = urlParams.get(key as string);\n if (value !== null) {\n try {\n (parsed as Record<string, unknown>)[key as string] = JSON.parse(value);\n } catch {\n (parsed as Record<string, unknown>)[key as string] = value as T[keyof T];\n }\n }\n });\n \n return { ...initialValue, ...parsed };\n });\n\n const updateParams = useCallback((newParams: Partial<T>) => {\n setParams((prev) => {\n const updated = { ...prev, ...newParams };\n \n if (typeof window !== \"undefined\") {\n const urlParams = new URLSearchParams();\n (Object.keys(updated) as Array<keyof T>).forEach((key) => {\n const value = updated[key];\n if (value !== undefined && value !== null) {\n urlParams.set(key as string, JSON.stringify(value));\n }\n });\n \n const newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n window.history.pushState({}, \"\", newUrl);\n }\n \n return updated;\n });\n }, []);\n\n useEffect(() => {\n const handlePopState = () => {\n const urlParams = new URLSearchParams(window.location.search);\n const parsed: Partial<T> = {};\n \n (Object.keys(initialValue) as Array<keyof T>).forEach((key) => {\n const value = urlParams.get(key as string);\n if (value !== null) {\n try {\n (parsed as Record<string, unknown>)[key as string] = JSON.parse(value);\n } catch {\n (parsed as Record<string, unknown>)[key as string] = value as T[keyof T];\n }\n }\n });\n \n setParams({ ...initialValue, ...parsed });\n };\n\n window.addEventListener(\"popstate\", handlePopState);\n return () => window.removeEventListener(\"popstate\", handlePopState);\n }, [initialValue]);\n\n return [params, updateParams];\n}\n","import * as React from \"react\"\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Switch({\n className,\n ...props\n}: React.ComponentProps<typeof SwitchPrimitive.Root>) {\n return (\n <SwitchPrimitive.Root\n data-slot=\"switch\"\n className={cn(\n \"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n className={cn(\n \"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0\"\n )}\n />\n </SwitchPrimitive.Root>\n )\n}\n\nexport { Switch }\n","import { Label } from \"../../ui/label\";\nimport { Switch } from \"../../ui/switch\";\nimport { useState } from \"react\";\n\ninterface PanelNotificationsComponentProps {}\n\nfunction PanelNotificationsComponent({}: PanelNotificationsComponentProps) {\n const [notifications, setNotifications] = useState<Record<string, boolean>>({\n disableAll: false,\n });\n\n return (\n <>\n <h3 className=\"text-2xl\">Powiadomienia</h3>\n <p className=\"text-sm text-neutral-500\">\n Zarządzaj swoimi powiadomieniami\n </p>\n <div className=\"mt-6\">\n <div className=\"flex items-center space-x-2\">\n <Switch\n id=\"disable-all-notifications\"\n checked={notifications.disableAll}\n onCheckedChange={(checked) =>\n setNotifications((prevState) => ({\n ...prevState,\n disableAll: checked,\n }))\n }\n />\n <Label\n htmlFor=\"disable-all-notifications\"\n className=\"flex flex-col gap-1 text-base\"\n >\n Wszystkie powiadomienia\n <span className=\"text-xs font-normal text-neutral-500 md:text-sm\">\n Ten przycisk może wyłączyć wszystkie powiadomienia\n </span>\n </Label>\n </div>\n </div>\n </>\n );\n}\n\nexport default PanelNotificationsComponent;\n","import * as React from \"react\"\nimport {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon,\n} from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\nimport { buttonVariants, type Button } from \"@/src/ui/button\"\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<\"ul\">) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof Button>, \"size\"> &\n React.ComponentProps<\"a\">\n\nfunction PaginationLink({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) {\n return (\n <a\n aria-current={isActive ? \"page\" : undefined}\n data-slot=\"pagination-link\"\n data-active={isActive}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 px-2.5 sm:pl-2.5\", className)}\n {...props}\n >\n <ChevronLeftIcon />\n <span className=\"hidden sm:block\">Previous</span>\n </PaginationLink>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) {\n return (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 px-2.5 sm:pr-2.5\", className)}\n {...props}\n >\n <span className=\"hidden sm:block\">Next</span>\n <ChevronRightIcon />\n </PaginationLink>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationLink,\n PaginationItem,\n PaginationPrevious,\n PaginationNext,\n PaginationEllipsis,\n}\n","import { cn } from \"@/src/lib/utils\"\n\nfunction Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={cn(\"bg-accent animate-pulse rounded-md\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n","import { rpcProvider, useQuery } from \"../../rpc-provider\";\nimport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n} from \"../../ui/pagination\";\nimport { Skeleton } from \"../../ui/skeleton\";\nimport { useState } from \"react\";\n\ninterface PanelOrderHistoryComponentProps {\n projectID: string;\n accessToken: string;\n openOrderDetails: (orderId: string) => void;\n}\n\nconst formatDate = (ts: number): string =>\n new Date(ts * 1000).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\",\n });\n\nconst formatAmount = (amount: number, currency: string): string =>\n new Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: currency.toUpperCase(),\n }).format(amount / 100);\n\nconst statusLabel: Record<string, string> = {\n draft: \"Szkic\",\n unpaid: \"Nieopłacona\",\n paid: \"Opłacona\",\n overdue: \"Zaległa\",\n cancelled: \"Anulowana\",\n completed: \"Zakończone\",\n processing: \"Przetwarzane\",\n refunded: \"Zwrócone\",\n};\n\nconst statusColor: Record<string, string> = {\n draft: \"text-neutral-400\",\n unpaid: \"text-yellow-500\",\n paid: \"text-green-600\",\n overdue: \"text-red-500\",\n cancelled: \"text-neutral-400 line-through\",\n completed: \"text-green-600\",\n processing: \"text-blue-500\",\n refunded: \"text-purple-500\",\n};\n\nfunction PanelOrderHistory({\n openOrderDetails,\n projectID,\n accessToken,\n}: PanelOrderHistoryComponentProps) {\n const [offset, setOffset] = useState(0);\n const limit = 20;\n\n const { data, isFetching } = useQuery(rpcProvider.publicApi.getOrders, {\n projectId: projectID,\n accessToken,\n offset,\n limit,\n });\n\n const orders = data?.orders ?? [];\n const totalCount = data?.totalCount ?? 0;\n const currentPage = Math.floor(offset / limit) + 1;\n const totalPages = Math.ceil(totalCount / limit);\n\n const handlePageChange = (newOffset: number) => {\n setOffset(newOffset);\n };\n\n return (\n <>\n <h3 className=\"text-2xl\">Historia zamówień</h3>\n <p className=\"text-sm text-neutral-500 dark:text-neutral-400\">\n Twoje zamówienia\n </p>\n\n {isFetching ? (\n <div className=\"mt-6 flex w-full flex-col gap-3\">\n {[...Array(5)].map((_, i) => (\n <div\n key={i}\n className=\"rounded-xl bg-white p-4 shadow-sm dark:bg-neutral-800\"\n >\n <div className=\"flex items-center justify-between\">\n <div className=\"space-y-2\">\n <Skeleton className=\"h-4 w-24\" />\n <Skeleton className=\"h-3 w-32\" />\n </div>\n <div className=\"space-y-2 text-right\">\n <Skeleton className=\"ml-auto h-4 w-16\" />\n <Skeleton className=\"ml-auto h-3 w-12\" />\n </div>\n </div>\n <div className=\"mt-3\">\n <Skeleton className=\"h-3 w-40\" />\n </div>\n </div>\n ))}\n </div>\n ) : orders.length === 0 ? (\n <div className=\"mt-6 text-sm text-neutral-400\">Brak zamówień.</div>\n ) : (\n <div>\n <div className=\"mt-6 flex w-full flex-col gap-3\">\n {orders.map((order) => (\n <button\n key={order.id}\n onClick={() => openOrderDetails(order.id)}\n className=\"block rounded-xl bg-white p-4 text-left shadow-sm transition-colors hover:bg-neutral-50 dark:bg-neutral-800 dark:hover:bg-neutral-700\"\n >\n <div className=\"flex items-center justify-between\">\n <div>\n <p className=\"font-medium\">Zamówienie #{order.id}</p>\n <p className=\"text-xs text-neutral-500 dark:text-neutral-400\">\n {order.customerName || \"Klient\"}\n </p>\n </div>\n <div className=\"text-right\">\n <p className=\"font-semibold\">\n {formatAmount(order.totalAmount, order.currency)}\n </p>\n <p\n className={`text-xs font-medium ${statusColor[order.status] ?? \"text-neutral-400\"}`}\n >\n {statusLabel[order.status] ?? order.status}\n </p>\n </div>\n </div>\n\n <div className=\"mt-2 flex items-center justify-between text-xs text-neutral-500 dark:text-neutral-400\">\n <span>\n Data:{\" \"}\n {order.createdAt\n ? formatDate(Number(order.createdAt.seconds))\n : \"-\"}\n </span>\n </div>\n </button>\n ))}\n </div>\n\n {totalPages > 1 && !isFetching && (\n <div className=\"mt-4 flex justify-center\">\n <Pagination>\n <PaginationContent>\n {currentPage > 1 && (\n <PaginationItem>\n <PaginationPrevious\n onClick={() => handlePageChange(offset - limit)}\n />\n </PaginationItem>\n )}\n\n {currentPage > 2 && (\n <PaginationItem>\n <PaginationLink onClick={() => handlePageChange(0)}>\n 1\n </PaginationLink>\n </PaginationItem>\n )}\n\n {currentPage > 3 && (\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n )}\n\n {[currentPage - 1, currentPage, currentPage + 1]\n .filter((page) => page > 0 && page <= totalPages)\n .map((page) => (\n <PaginationItem key={page}>\n <PaginationLink\n onClick={() => handlePageChange((page - 1) * limit)}\n isActive={currentPage === page}\n >\n {page}\n </PaginationLink>\n </PaginationItem>\n ))}\n\n {currentPage < totalPages - 2 && (\n <PaginationItem>\n <PaginationEllipsis />\n </PaginationItem>\n )}\n\n {currentPage < totalPages && (\n <PaginationItem>\n <PaginationLink\n onClick={() =>\n handlePageChange((totalPages - 1) * limit)\n }\n >\n {totalPages}\n </PaginationLink>\n </PaginationItem>\n )}\n\n {currentPage < totalPages && (\n <PaginationItem>\n <PaginationNext\n onClick={() => handlePageChange(offset + limit)}\n />\n </PaginationItem>\n )}\n </PaginationContent>\n </Pagination>\n </div>\n )}\n </div>\n )}\n </>\n );\n}\n\nexport default PanelOrderHistory;\n","import { useState } from \"react\";\n\ninterface Plan {\n id: number;\n tierKey: string;\n tierName: string;\n configName: string;\n status: string;\n billingDay: number;\n startDate: number;\n endDate: number | null;\n}\n\ninterface PanelPlansComponentProps {\n projectID: string;\n}\n\nconst formatDate = (ts: number): string =>\n new Date(ts * 1000).toLocaleDateString(undefined, {\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\",\n });\n\nconst statusLabel: Record<string, string> = {\n active: \"Aktywny\",\n cancelled: \"Anulowany\",\n paused: \"Wstrzymany\",\n};\n\nconst statusColor: Record<string, string> = {\n active: \"text-green-600\",\n cancelled: \"text-red-500\",\n paused: \"text-yellow-500\",\n};\n\nfunction PanelPlansComponent({ projectID: _projectID }: PanelPlansComponentProps) {\n const [plans, setPlans] = useState<Plan[]>([]);\n const [isLoading, setIsLoading] = useState(true);\n\n return (\n <>\n <h3 className=\"text-2xl\">Plany</h3>\n <p className=\"text-sm text-neutral-500\">Twoje aktywne subskrypcje</p>\n\n {isLoading ? (\n <div className=\"mt-6 text-sm text-neutral-400\">Ładowanie...</div>\n ) : plans.length === 0 ? (\n <div className=\"mt-6 text-sm text-neutral-400\">\n Brak aktywnych planów.\n </div>\n ) : (\n <div className=\"mt-6 flex flex-col gap-4\">\n {plans.map((plan) => (\n <div\n key={plan.id}\n className=\"rounded-xl bg-white p-5 shadow-sm dark:bg-neutral-800\"\n >\n <div className=\"flex items-start justify-between\">\n <div>\n <p className=\"font-semibold\">{plan.tierName}</p>\n {plan.configName && (\n <p className=\"text-sm text-neutral-500\">{plan.configName}</p>\n )}\n </div>\n <span\n className={`text-sm font-medium ${statusColor[plan.status] ?? \"text-neutral-500\"}`}\n >\n {statusLabel[plan.status] ?? plan.status}\n </span>\n </div>\n <div className=\"mt-3 grid grid-cols-2 gap-2 text-sm text-neutral-600 dark:text-neutral-400\">\n <div>\n <span className=\"font-medium\">Dzień rozliczenia:</span>{\" \"}\n {plan.billingDay}\n </div>\n <div>\n <span className=\"font-medium\">Data startu:</span>{\" \"}\n {formatDate(plan.startDate)}\n </div>\n {plan.endDate && (\n <div>\n <span className=\"font-medium\">Data zakończenia:</span>{\" \"}\n {formatDate(plan.endDate)}\n </div>\n )}\n </div>\n </div>\n ))}\n </div>\n )}\n </>\n );\n}\n\nexport default PanelPlansComponent;\n","import { useState, type CSSProperties } from \"react\";\nimport {\n UserProductSchema,\n UserProductType,\n type UserProduct,\n} from \"../../gen/proto/public/v1/public_api_pb\";\nimport { rpcProvider, useQuery } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport LoadingIndicator from \"../LoadingIndicator\";\n\nimport { renderText } from \"@/src/lib/render.text\";\nimport { fromJsonString, toJsonString } from \"@bufbuild/protobuf\";\nimport type { PanelScreen, PanelSearchParamsType } from \"../types\";\nimport PanelProductDetails from \"./PanelProductDetails\";\nimport { clearPanelSession } from \"../session-storage\";\n\ninterface PanelProductGridComponentProps {\n projectID: string;\n accessToken: string;\n loginURL: string;\n styles: CSSProperties;\n activeScreen: PanelScreen;\n params: PanelSearchParamsType;\n setParams: (params: PanelSearchParamsType) => void;\n}\n\nconst PanelProductGridComponent = ({\n accessToken,\n projectID,\n loginURL,\n styles,\n activeScreen,\n params,\n setParams,\n}: PanelProductGridComponentProps) => {\n const { data: products, isLoading: isProductsLoading } = useQuery(\n rpcProvider.publicApi.userPanelGetProducts,\n {\n accessToken: accessToken,\n },\n );\n\n if (isProductsLoading) {\n return (\n <div className=\"flex items-center gap-2 bg-white p-2 dark:bg-black\">\n <p className=\"text-dark font-inter font-medium dark:text-white\">\n Ładowanie...\n </p>\n <LoadingIndicator />\n </div>\n );\n }\n\n if (products && products.result.case === \"failure\") {\n console.warn(\"error:\", `Kod błędu: ${products.result.value}`);\n clearPanelSession(projectID);\n window.location.href = loginURL;\n return null;\n }\n\n const productsList =\n products && products.result.case === \"success\"\n ? products.result.value.products\n : [];\n\n return (\n <ProductsComponent\n accessToken={accessToken}\n products={productsList}\n styles={styles}\n loginURL={loginURL}\n activeScreen={activeScreen}\n params={params}\n setParams={setParams}\n />\n );\n};\n\nexport default PanelProductGridComponent;\n\ninterface ProductsComponentProps {\n accessToken: string;\n products: UserProduct[];\n styles: CSSProperties;\n loginURL: string;\n activeScreen: PanelScreen;\n params: PanelSearchParamsType;\n setParams: (params: PanelSearchParamsType) => void;\n}\n\nconst ProductsComponent = ({\n accessToken,\n products,\n styles,\n loginURL,\n activeScreen,\n params,\n setParams,\n}: ProductsComponentProps) => {\n if (products.length === 0) {\n window.location.href = loginURL;\n return null;\n }\n\n const [selectedProduct, setSelectedProduct] = useState<\n UserProduct | undefined\n >(\n params.product\n ? fromJsonString(UserProductSchema, params.product)\n : undefined,\n );\n\n const reveal = (product?: UserProduct) => {\n if (product == null) {\n setSelectedProduct(undefined);\n setParams({\n product: undefined,\n state: \"products\",\n });\n } else {\n setParams({\n product: toJsonString(UserProductSchema, product),\n state: \"products\",\n });\n }\n };\n\n function getProductTypeName(type: UserProductType) {\n switch (type) {\n case UserProductType.AUDIO:\n return \"Audio\";\n case UserProductType.FILE:\n return \"Plik\";\n case UserProductType.TICKET:\n return \"Bilet\";\n case UserProductType.COURSE:\n return \"Kurs\";\n default:\n return undefined;\n }\n }\n\n function handleSelectedProduct(product: UserProduct) {\n setSelectedProduct(product);\n reveal(product);\n }\n\n if (activeScreen === \"products\" && selectedProduct != undefined) {\n return (\n <PanelProductDetails\n accessToken={accessToken}\n product={selectedProduct}\n styles={styles}\n reveal={reveal}\n />\n );\n }\n\n return (\n <>\n <h3 className=\"text-2xl\">Hej 👋</h3>\n <p className=\"text-sm text-neutral-500\">\n Poniżej znajdziesz swoje produkty\n </p>\n <div className=\"mt-6 flex flex-wrap items-center justify-center gap-9 sm:justify-start\">\n {products?.map((product, index) => (\n <section\n onClick={() => handleSelectedProduct(product)}\n key={index}\n className=\"w-full max-w-xs cursor-pointer rounded drop-shadow-xl dark:border dark:border-slate-600 dark:drop-shadow-none\"\n >\n <section className=\"flex flex-col items-center space-y-2 rounded bg-slate-100 p-4 dark:bg-neutral-900\">\n {product.productType && (\n <div className=\"w-fit self-end rounded bg-red-900 px-4 py-1\">\n <span className=\"text-sm font-medium text-white dark:text-slate-100\">\n {getProductTypeName(product.productType)}\n </span>\n </div>\n )}\n <div className=\"jusitfy-center flex max-h-40 items-center\">\n <img\n src={product.productImageUrl}\n alt={`Product ${index} Photo`}\n draggable={false}\n className=\"aspect-auto max-h-40\"\n />\n </div>\n </section>\n <div className=\"space-y-4 rounded bg-white p-4 dark:bg-black\">\n <h2 className=\"text-xl font-semibold\">{product.productName}</h2>\n <p\n title={product.productDescription}\n className=\"line-clamp-3 text-sm font-normal text-neutral-600 dark:text-neutral-300\"\n >\n {renderText(product.productDescription)}\n </p>\n <Button\n onClick={(e) => {\n e.stopPropagation();\n handleSelectedProduct(product);\n }}\n className=\"w-full text-sm font-medium transition-opacity duration-300 ease-in-out hover:opacity-80 active:opacity-80\"\n style={styles}\n >\n Zobacz\n </Button>\n </div>\n </section>\n ))}\n </div>\n </>\n );\n};\n","const URL_REGEX =\n /https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)/g;\n\ntype Replacements = {\n url: string;\n startIndex: number;\n endIndex: number;\n replacementText?: string;\n};\n\nconst findURLIndices = (text: string) => {\n const matches = [...text.matchAll(URL_REGEX)];\n return matches.map(\n (match) =>\n ({\n url: match[0],\n startIndex: match.index,\n endIndex: match.index + match[0].length - 1,\n }) as Replacements,\n );\n};\n\nconst replaceTextByIndices = (\n originalText: string,\n replacements: Replacements[],\n) => {\n let result = \"\";\n let lastIndex = 0;\n\n // Sort replacements by startIndex to handle them in order\n replacements.sort((a, b) => a.startIndex - b.startIndex);\n\n for (const { startIndex, endIndex, replacementText } of replacements) {\n // Append text before the current replacement\n result += originalText.slice(lastIndex, startIndex);\n // Append the replacement text\n result += replacementText;\n // Update lastIndex to after the replaced segment\n lastIndex = endIndex + 1;\n }\n\n // Append any remaining text after the last replacement\n result += originalText.slice(lastIndex);\n\n return result;\n};\n\nexport const renderText = (txt: string) => {\n const urlIndices = findURLIndices(txt);\n\n return (\n <p\n dangerouslySetInnerHTML={{\n __html: replaceTextByIndices(\n txt,\n urlIndices.map((el) => {\n el[\"replacementText\"] =\n `<a key=${el.url} href=${el.url} style=\"text-decoration: underline;\" target=\"_blank\">\n ${el.url}\n </a>`;\n return el;\n }),\n ),\n }}\n ></p>\n );\n};\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { ChevronLeft, Download } from \"lucide-react\";\nimport { useEffect, useRef, useState, type CSSProperties } from \"react\";\nimport {\n UserProductType,\n type UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails,\n type UserProduct,\n} from \"../../gen/proto/public/v1/public_api_pb\";\nimport { cn } from \"../../lib/utils\";\nimport { rpcProvider, useMutation } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport AudioPlayer, {\n type AudioPlayerMethods,\n} from \"../audio-player/AudioPlayer\";\nimport LoadingIndicator from \"../LoadingIndicator\";\n\nimport { ProgressBar } from \"./ProgressBar\";\n\ninterface PanelProductDetailsProps {\n accessToken: string;\n product: UserProduct;\n styles: CSSProperties;\n reveal: (product?: UserProduct) => void;\n}\n\nfunction warn(message: string, ...args: unknown[]) {\n console.warn(message, ...args);\n}\n\nfunction error(message: string) {\n console.error(message);\n}\n\nconst PanelProductDetails = ({\n accessToken,\n product,\n styles,\n reveal,\n}: PanelProductDetailsProps) => {\n const productType: UserProductType = product.productType;\n\n const audioPlayerRef = useRef<AudioPlayerMethods>(null!);\n const [filesRefAnimation] = useAutoAnimate();\n const [filesResponse, setFilesResponse] = useState<string[] | null>(null);\n const { mutateAsync: fileDetailsAsync, isPending: isFileLoading } =\n useMutation(rpcProvider.publicApi.userPanelGetFileDetails);\n\n const audioPlayerSeekToHandler = useRef<\n ((second: number) => void) | undefined\n >(undefined);\n const [audioResponse, setAudioResponse] = useState<Record<\n string,\n unknown\n > | null>(null);\n const [audioDownloadURLs, setAudioDownloadURLs] = useState<\n | UserPanelGetAudiobookDetailsDownloadURLsResponse_AudiobookDownloadDetails[]\n | null\n >(null);\n const [\n isAvailableToDownloadInMobileApp,\n setIsAvailableToDownloadInMobileApp,\n ] = useState(false);\n const [isCourseLoading, setIsCourseLoading] = useState(false);\n const [courseError, setCourseError] = useState<string | null>(null);\n const { mutateAsync: audioDetailsAsync, isPending: isAudioLoading } =\n useMutation(rpcProvider.publicApi.userPanelGetAudiobookDetails);\n const {\n mutateAsync: audioDetailsDownloadURLsAsync,\n isPending: isAudioDownloadURLsLoading,\n } = useMutation(\n rpcProvider.publicApi.userPanelGetAudiobookDetailsDownloadURLs,\n );\n const { mutateAsync: courseDetailsAsync } = useMutation(\n rpcProvider.publicApi.userPanelGetCourseDetails,\n );\n\n type ChapterWithPublicUrl = {\n id: string;\n multimediaId?: string;\n name: string;\n description?: string;\n publicUrl: string;\n downloadableUrl?: string;\n duration?: number;\n };\n\n const [selectedChapter, setSelectedChapter] =\n useState<ChapterWithPublicUrl | null>(null);\n const [chapters, setChapters] = useState<ChapterWithPublicUrl[] | null>(null);\n\n async function handleFileDownload() {\n try {\n const filesResult = await fileDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (filesResult.result.case === \"success\") {\n setFilesResponse(filesResult.result.value.files);\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", filesResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n async function handleAudioDownload() {\n try {\n const audioResult = await audioDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (audioResult.result.case === \"audiobook\") {\n setAudioResponse(\n audioResult.result.value as unknown as Record<string, unknown>,\n );\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", audioResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n async function handleAudioURLsDownload() {\n try {\n const audioURLsResult = await audioDetailsDownloadURLsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n isBrowser: true,\n });\n\n if (audioURLsResult.result.case === \"success\") {\n setAudioDownloadURLs(\n audioURLsResult.result.value.audiobookDownloadDetails,\n );\n setIsAvailableToDownloadInMobileApp(\n audioURLsResult.result.value.isAvailableToDownloadInMobileApp ===\n true,\n );\n return;\n } else {\n warn(\"Pobranie plików nie powiodło się. Zalecamy kontakt.\");\n warn(\"Kod błędu: \", audioURLsResult.result.value);\n }\n } catch (err) {\n warn(\"Nieoczekiwany błąd. Spróbuj ponownie za chwilę.\");\n error(\"Błąd podczas pobierania danych:\" + err);\n }\n }\n\n useEffect(() => {\n if (productType === UserProductType.AUDIO) {\n handleAudioDownload().then().catch();\n handleAudioURLsDownload().then().catch();\n }\n }, []);\n\n useEffect(() => {\n if (productType !== UserProductType.COURSE) return;\n\n async function handleCourseRedirect() {\n setIsCourseLoading(true);\n setCourseError(null);\n try {\n const courseResult = await courseDetailsAsync({\n accessId: product.accessId,\n accessToken: accessToken as string,\n });\n\n if (courseResult.result.case === \"redirectUrl\") {\n window.location.href = courseResult.result.value;\n } else {\n setCourseError(\n \"Wystąpił błąd, proszę skontaktować się z pomocą techniczną.\",\n );\n }\n } catch {\n setCourseError(\n \"Wystąpił błąd, proszę skontaktować się z pomocą techniczną.\",\n );\n } finally {\n setIsCourseLoading(false);\n }\n }\n\n handleCourseRedirect();\n }, []);\n\n useEffect(() => {\n if (audioResponse != null && audioDownloadURLs != null) {\n const audioChapters = (\n audioResponse as { chapters?: ChapterWithPublicUrl[] }\n ).chapters;\n if (!audioChapters) return;\n\n const mappedChapters = audioChapters\n .map((chapter) => {\n const details = audioDownloadURLs?.find(\n (el) => el.chapterId === chapter.id,\n );\n if (details == null) {\n return undefined;\n }\n return {\n ...chapter,\n publicUrl: details.publicUrl,\n downloadableUrl: details.downloadableUrl,\n duration: details.duration,\n } as ChapterWithPublicUrl;\n })\n .filter((el) => el != null);\n\n if (mappedChapters != undefined && mappedChapters.length > 0) {\n setChapters(mappedChapters);\n }\n }\n }, [audioResponse, audioDownloadURLs]);\n\n return (\n <div>\n <div className=\"mb-3 space-y-4 rounded bg-white p-4 dark:bg-black\">\n <Button onClick={() => reveal()} variant=\"ghost\" className=\"w-fit\">\n <ChevronLeft className=\"h-6 w-6\" />\n <span className=\"font-inter text-sm font-medium\">Wróć</span>\n </Button>\n </div>\n\n <main className=\"grid grid-cols-1 justify-center gap-6 sm:justify-start lg:grid-cols-2\">\n <div className=\"flex w-full max-w-xl flex-col gap-6\">\n {productType === UserProductType.FILE && (\n <div\n ref={filesRefAnimation}\n className=\"flex flex-col space-y-4 rounded bg-white p-6 drop-shadow-xl dark:border dark:border-neutral-700 dark:bg-neutral-800 dark:drop-shadow-none\"\n >\n <div className=\"flex items-center justify-between gap-x-4\">\n <h4 className=\"text-xl font-semibold\">Twoje pliki</h4>\n {(filesResponse == null || filesResponse.length == 0) && (\n <Button\n onClick={handleFileDownload}\n aria-label=\"Download Product\"\n className=\"text-sm font-medium transition-opacity duration-300 ease-in-out hover:opacity-80 active:opacity-80\"\n style={styles}\n >\n {isFileLoading ? <LoadingIndicator /> : \"Wyświetl\"}\n </Button>\n )}\n </div>\n\n {isFileLoading && (\n <div className=\"flex flex-col items-start gap-2\">\n <ProgressBar />\n <p className=\"font-bold transition hover:text-blue-600\">\n Trwa przygotowanie plików...\n </p>\n </div>\n )}\n\n {filesResponse != null && filesResponse.length > 0 && (\n <div className=\"flex flex-col items-start justify-start gap-2\">\n {filesResponse.map((el, index) => (\n <a\n key={index}\n target=\"_blank\"\n className=\"flex w-fit items-center gap-2 rounded-md bg-neutral-800 px-3 py-2 text-neutral-200 dark:bg-neutral-200 dark:text-neutral-800\"\n href={el}\n download\n >\n {`Plik numer ${index + 1}`}\n <Download width={14} height={14} />\n </a>\n ))}\n </div>\n )}\n </div>\n )}\n\n {productType === UserProductType.COURSE && (\n <div className=\"flex flex-col items-center justify-center rounded-xl bg-white p-6 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n {isCourseLoading && (\n <div className=\"flex flex-col items-center gap-3\">\n <LoadingIndicator />\n <p className=\"text-lg font-semibold\">\n Trwa przekierowanie do kursu...\n </p>\n </div>\n )}\n {courseError && (\n <p className=\"text-center text-sm font-medium text-red-600 dark:text-red-400\">\n {courseError}\n </p>\n )}\n </div>\n )}\n\n {productType === UserProductType.AUDIO && (\n <>\n <div className=\"flex flex-col space-y-6 rounded-xl bg-white p-3 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n <h4 className=\"text-xl font-semibold\">\n {selectedChapter?.name ?? \"Odtwarzacz\"}\n </h4>\n {selectedChapter?.description && (\n <p className=\"text-sm\">{selectedChapter?.description}</p>\n )}\n <>\n {isAudioLoading ? (\n <div className=\"flex gap-2\">\n <LoadingIndicator />\n <p className=\"text-xl font-semibold\">\n Trwa pobierania audiobooka...\n </p>\n </div>\n ) : (\n <>\n {chapters != null ? (\n <>\n <AudioPlayer\n ref={audioPlayerRef}\n chapters={chapters}\n title={\n (audioResponse as { name?: string })?.name ??\n product.productName ??\n undefined\n }\n imageURL={\n (audioResponse as { coverImage?: string })\n ?.coverImage ??\n product.productImageUrl ??\n undefined\n }\n styles={styles}\n setCurrentTimeHandler={(handler) => {\n audioPlayerSeekToHandler.current = handler;\n }}\n uniqueProductID={product.productId}\n onChapterChange={(chapter) => {\n setSelectedChapter(chapter);\n }}\n />\n </>\n ) : (\n <p className=\"mt-2\">\n Wybierz rozdział, który cię interesuje.\n </p>\n )}\n </>\n )}\n </>\n <div className=\"rounded-xl bg-neutral-100 p-3 dark:bg-neutral-800\">\n <p className=\"mt-3 mb-3 text-xs\">\n {isAvailableToDownloadInMobileApp\n ? \"Możesz słuchać tego audiobooka w aplikacji również bez dostępu do internetu.\"\n : \"Możesz słuchać tego audiobooka w aplikacji.\"}\n </p>\n <div className=\"flex gap-3\">\n <a href=\"https://apps.apple.com/us/app/bitsnap/id6741902807\">\n <img\n width=\"100\"\n src=\"https://bitsnap.pl/appstore.svg\"\n alt=\"Pobierz aplikacje z AppStore\"\n />\n </a>\n\n <a href=\"https://docs.bitsnap.pl/guides/audiobook\">\n <img\n width=\"100\"\n src=\"https://bitsnap.pl/playstore.svg\"\n alt=\"Pobierz aplikację z GooglePlay\"\n />\n </a>\n </div>\n </div>\n </div>\n </>\n )}\n\n <div className=\"flex items-center justify-center rounded-xl bg-white p-3 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n {productType === UserProductType.AUDIO && (\n <div className=\"max-h-96 w-full overflow-y-auto\">\n {isAudioLoading ? (\n <div className=\"jusitfy-center flex flex-col items-center gap-2\">\n <LoadingIndicator />\n <p>Ładowanie rozdziałów...</p>\n </div>\n ) : (\n <div>\n <h2 className=\"mb-3 text-xl font-semibold\">Rozdziały</h2>\n {chapters == null ? (\n <p>Brak rozdziałów do wyświetlenia.</p>\n ) : (\n <ul className=\"flex w-full flex-col gap-2\">\n {chapters.map((chapter, index) => (\n <li\n key={index}\n className=\"flex items-center justify-between\"\n >\n <button\n className={cn(\n \"w-full rounded-lg p-2 text-left transition hover:bg-neutral-200 active:bg-neutral-200 dark:hover:bg-neutral-700 dark:active:bg-neutral-700\",\n selectedChapter?.id == chapter.id\n ? \"bg-neutral-200 dark:bg-neutral-700\"\n : \"bg-neutral-100 dark:bg-neutral-800 dark:text-neutral-300\",\n )}\n onClick={() => {\n audioPlayerRef.current.selectChapter(chapter);\n }}\n >\n <div className=\"flex items-center justify-between\">\n <p className=\"text-sm font-medium\">\n {chapter.name}\n </p>\n {chapter.duration && (\n <span className=\"text-xs text-neutral-500\">\n {Math.floor(chapter.duration / 60)}:\n {String(\n Math.floor(chapter.duration % 60),\n ).padStart(2, \"0\")}\n </span>\n )}\n </div>\n {chapter.description && (\n <p className=\"mt-3 text-xs\">\n {chapter.description}\n </p>\n )}\n </button>\n\n {audioResponse &&\n (audioResponse as { isDownloadable?: boolean })\n .isDownloadable &&\n chapter.downloadableUrl && (\n <a href={chapter.downloadableUrl}>\n <Download width={14} height={14} />\n </a>\n )}\n </li>\n ))}\n </ul>\n )}\n </div>\n )}\n </div>\n )}\n </div>\n </div>\n\n <div className=\"w-full max-w-3xl space-y-6 rounded-xl bg-white p-6 drop-shadow-xl dark:bg-neutral-900 dark:drop-shadow-none\">\n <h2 className=\"text-3xl font-semibold\">{product.productName}</h2>\n <p className=\"text-sm font-normal text-neutral-600 dark:text-neutral-300\">\n {product.productDescription}\n </p>\n\n <img\n src={product.productImageUrl}\n alt=\"Product Photo\"\n width={384}\n height={384}\n className=\"max-h-sm max-w-sm\"\n draggable={false}\n />\n </div>\n </main>\n </div>\n );\n};\n\nexport default PanelProductDetails;\n","import Hls from \"hls.js\";\nimport { Pause, Play } from \"lucide-react\";\nimport {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n type CSSProperties,\n} from \"react\";\nimport { Button } from \"../../ui/button\";\nimport LoadingIndicator from \"../LoadingIndicator\";\nimport {\n mediaSessionPause,\n mediaSessionPlay,\n mediaSessionUpdateDurationAndPosition,\n startMediaSessionCoordinator,\n stopMediaSessionCoordinator,\n} from \"./media.session.coordinator\";\n\nimport \"./audio-player.css\";\n\ntype ChapterWithPublicUrl = {\n id: string;\n multimediaId?: string;\n name: string;\n description?: string;\n publicUrl: string;\n downloadableUrl?: string;\n duration?: number;\n};\n\nexport type AudioPlayerMethods = {\n selectChapter: (chapter: ChapterWithPublicUrl) => void;\n};\n\ntype AudioPlayerProps = {\n chapters: ChapterWithPublicUrl[];\n styles: CSSProperties;\n updateCurrentTime?: (currentTime: number) => void;\n\n title?: string;\n imageURL?: string;\n\n setCurrentTimeHandler?: (seekTo: (second: number) => void) => void;\n uniqueProductID: string;\n\n onChapterChange?: (chapter: ChapterWithPublicUrl) => void;\n};\n\nconst AudioPlayer = forwardRef<AudioPlayerMethods, AudioPlayerProps>(\n (\n {\n chapters,\n styles,\n updateCurrentTime,\n setCurrentTimeHandler,\n title,\n imageURL,\n uniqueProductID,\n onChapterChange,\n },\n ref,\n ) => {\n enum PlayState {\n Playing,\n Paused,\n }\n\n const [playState, setPlayState] = useState<PlayState>(PlayState.Paused);\n\n useEffect(() => {\n switch (playState) {\n case PlayState.Playing:\n mediaSessionPlay();\n break;\n case PlayState.Paused:\n mediaSessionPause();\n break;\n }\n }, [playState]);\n\n useImperativeHandle(ref, () => {\n return {\n selectChapter: (chapter: ChapterWithPublicUrl) => {\n playChapter(chapter);\n },\n };\n });\n\n const [currentTime, setCurrentTime] = useState<number | undefined>(\n undefined,\n );\n const [duration, setDuration] = useState<number | undefined>(undefined);\n\n const videoRef = useRef<HTMLVideoElement | null>(null);\n const hlsRef = useRef<Hls | undefined>(undefined);\n const timerRef = useRef<number | undefined>(undefined);\n\n const audioPlayerContainerRef = useRef<HTMLDivElement>(null!);\n\n const currentChapterRef = useRef<ChapterWithPublicUrl | null>(null);\n\n const [playWhenReady, setPlayWhenReady] = useState(true);\n const [isStarted, setIsStarted] = useState(false);\n const [isLoading, setIsLoading] = useState(!isSafari());\n\n function saveLastPlayedTime(timeInSeconds: number) {\n if (timeInSeconds < 10) {\n return;\n }\n localStorage.setItem(\n `__player__${uniqueProductID}_${currentChapterRef.current?.id}`,\n `${timeInSeconds}`,\n );\n }\n\n function getLastPlayedTime(): number | undefined {\n const time = localStorage.getItem(\n `__player__${uniqueProductID}_${currentChapterRef.current?.id}`,\n );\n\n if (time == null) {\n return undefined;\n }\n try {\n const result = parseInt(time);\n\n if (isNaN(result) || result < 0) {\n return undefined;\n }\n\n return result;\n } catch (e) {\n return undefined;\n }\n }\n\n function getLastSelectedChapterID(): string | undefined {\n const lastSelectedChapterID = localStorage.getItem(\n `__player__${uniqueProductID}_last_chapter`,\n );\n if (lastSelectedChapterID == null) {\n return undefined;\n }\n return lastSelectedChapterID;\n }\n\n function setLastSelectedChapterID(chapterID: string) {\n localStorage.setItem(\n `__player__${uniqueProductID}_last_chapter`,\n chapterID,\n );\n }\n\n function deleteMemoryChapter(chapterID: string) {\n localStorage.removeItem(`__player__${uniqueProductID}_${chapterID}`);\n }\n\n function setupObservers() {\n if (videoRef.current == null) {\n return;\n }\n videoRef.current.onloadeddata = () => {\n if (videoRef.current == null) {\n return;\n }\n if (videoRef.current.readyState < 2) {\n setIsLoading(true);\n }\n if (videoRef.current.readyState >= 2) {\n setIsLoading(false);\n }\n\n if (!isStarted) {\n const lastPlayedTime = getLastPlayedTime();\n if (lastPlayedTime != undefined) {\n seekTo(lastPlayedTime);\n }\n setIsStarted(true);\n }\n if (playWhenReady) {\n setPlayWhenReady(false);\n try {\n play();\n } catch (e) {\n console.log(\"play error\", e);\n }\n }\n };\n videoRef.current.onplay = () => {};\n\n videoRef.current.onseeked = () => {};\n videoRef.current.onseeking = () => {};\n\n videoRef.current.onpause = () => {};\n\n videoRef.current.onended = () => {\n playNextChapter();\n };\n\n startMediaSessionCoordinator({\n title: title ?? \"\",\n artwork: imageURL,\n action: (details) => {\n switch (details.action) {\n case \"play\":\n play();\n break;\n case \"pause\":\n pause();\n break;\n case \"seekbackward\":\n seekBy(-15);\n break;\n case \"seekforward\":\n seekBy(15);\n break;\n case \"seekto\":\n if (details.seekTime) {\n seekTo(details.seekTime);\n }\n break;\n case \"stop\":\n pause();\n break;\n default:\n break;\n }\n },\n });\n\n startTimer();\n }\n\n function playNextChapter() {\n if (chapters == null || chapters.length == 0) {\n return;\n }\n const currentChapterIndex = chapters.findIndex(\n (chapter) => chapter.id == currentChapterRef.current?.id,\n );\n if (currentChapterIndex == -1) {\n return;\n }\n deleteMemoryChapter(chapters[currentChapterIndex].id);\n const nextChapterIndex = currentChapterIndex + 1;\n if (nextChapterIndex >= chapters.length) {\n return;\n }\n playChapter(chapters[currentChapterIndex + 1]);\n }\n\n function startTimer() {\n updatePlayerDetails();\n if (timerRef.current != null) return;\n\n timerRef.current = setTimeout(() => {\n updatePlayerDetails();\n timerRef.current = undefined;\n startTimer();\n }, 500) as unknown as number;\n }\n\n function stopTimer() {\n if (timerRef.current == null) return;\n clearTimeout(timerRef.current as unknown as number);\n }\n\n function updatePlayerDetails() {\n if (videoRef.current == null) {\n return;\n }\n setPlayState(\n videoRef.current.paused ? PlayState.Paused : PlayState.Playing,\n );\n setDuration(videoRef.current.duration);\n setCurrentTime(videoRef.current.currentTime);\n saveLastPlayedTime(videoRef.current.currentTime);\n mediaSessionUpdateDurationAndPosition(\n videoRef.current.duration,\n videoRef.current.currentTime,\n );\n if (\n videoRef.current.networkState === videoRef.current.NETWORK_LOADING &&\n videoRef.current.readyState <= videoRef.current.HAVE_FUTURE_DATA\n ) {\n setIsLoading(true);\n } else {\n setIsLoading(false);\n }\n if (updateCurrentTime) {\n updateCurrentTime(videoRef.current.currentTime);\n }\n }\n\n function play() {\n videoRef.current?.play().then().catch();\n updatePlayerDetails();\n }\n\n function pause() {\n videoRef.current?.pause();\n updatePlayerDetails();\n }\n\n function togglePlayState() {\n if (playState === PlayState.Playing) {\n pause();\n return;\n }\n play();\n }\n\n function seekBy(seconds: number) {\n if (videoRef.current == null) {\n return;\n }\n const newTime = videoRef.current.currentTime + seconds;\n if (newTime < 0) {\n videoRef.current.currentTime = 0;\n return;\n }\n if (newTime > videoRef.current.duration) {\n videoRef.current.currentTime = videoRef.current.duration;\n return;\n }\n videoRef.current.currentTime += seconds;\n }\n\n function seekTo(toSecond: number) {\n if (videoRef.current == null) {\n return;\n }\n setCurrentTime(toSecond);\n if (toSecond < 0) {\n videoRef.current.currentTime = 0;\n return;\n }\n if (toSecond > videoRef.current.duration) {\n videoRef.current.currentTime = videoRef.current.duration;\n return;\n }\n videoRef.current.currentTime = toSecond;\n }\n\n function destroyPlayer() {\n if (videoRef.current == null) {\n return;\n }\n videoRef.current.onplay = null;\n videoRef.current.onseeked = null;\n videoRef.current.onseeking = null;\n videoRef.current.onpause = null;\n videoRef.current.onended = null;\n videoRef.current.src = \"\";\n hlsRef.current?.destroy();\n }\n\n function loadChapters(chapters: ChapterWithPublicUrl[]) {\n if (chapters.length == 0) {\n return;\n }\n\n const chapterID = getLastSelectedChapterID();\n if (chapterID == null) {\n playChapter(chapters[0]);\n return;\n }\n\n const chapter = chapters.find((chapter) => chapter.id == chapterID);\n if (chapter == null) {\n playChapter(chapters[0]);\n return;\n }\n\n playChapter(chapter);\n }\n\n function playChapter(chapter: ChapterWithPublicUrl) {\n setIsStarted(false);\n setPlayWhenReady(true);\n currentChapterRef.current = chapter;\n playURL(chapter.publicUrl);\n onChapterChange?.(chapter);\n setLastSelectedChapterID(chapter.id);\n }\n\n function playURL(src: string) {\n if (videoRef.current == null) {\n return;\n }\n if (videoRef.current.canPlayType(\"application/vnd.apple.mpegurl\")) {\n videoRef.current.src = src;\n } else if (Hls.isSupported()) {\n if (hlsRef.current == null) {\n hlsRef.current = new Hls();\n hlsRef.current?.attachMedia(videoRef.current);\n }\n hlsRef.current?.loadSource(src);\n }\n }\n\n useEffect(() => {\n if (videoRef.current == null) {\n return;\n }\n setupObservers();\n loadChapters(chapters);\n }, [videoRef.current]);\n\n useEffect(() => {\n loadChapters(chapters);\n }, [chapters]);\n\n useEffect(() => {\n if (setCurrentTimeHandler != null) {\n setCurrentTimeHandler(seekTo);\n }\n\n return () => {\n setCurrentTime(undefined);\n videoRef.current?.pause();\n destroyPlayer();\n stopMediaSessionCoordinator();\n };\n }, []);\n\n const calculateTime = (secs: number) => {\n const hours = Math.floor(secs / 3600);\n const minutes = Math.floor(secs / 60) % 60;\n const seconds = Math.floor(secs % 60);\n const returnedHours =\n hours > 0 ? (hours < 10 ? `0${hours}:` : `${hours}:`) : \"\";\n const returnedSeconds = seconds < 10 ? `0${seconds}` : `${seconds}`;\n if (isNaN(seconds) || isNaN(minutes) || isNaN(hours)) {\n return \"\";\n }\n return `${returnedHours}${minutes}:${returnedSeconds}`;\n };\n\n const showRangeProgress = (rangeInput: HTMLInputElement) => {\n const barProgress =\n (parseFloat(rangeInput.value) / parseFloat(rangeInput.max)) * 100;\n audioPlayerContainerRef.current.style.setProperty(\n \"--seek-before-width\",\n barProgress + \"%\",\n );\n\n const selectedTime = (duration! * barProgress) / 100;\n seekTo(selectedTime);\n };\n\n return (\n <div\n id=\"audio-player-container\"\n className=\"flex flex-col\"\n style={styles}\n ref={audioPlayerContainerRef}\n >\n <video\n ref={videoRef}\n className=\"hidden\"\n poster={imageURL}\n title={title}\n ></video>\n\n <input\n type=\"range\"\n min=\"0\"\n max={duration != undefined ? Math.floor(duration).toString() : 100}\n value={currentTime ?? 0}\n onChange={(e) => showRangeProgress(e.target as HTMLInputElement)}\n className=\"w-full\"\n />\n\n <section className=\"flex w-full items-center justify-between text-sm font-medium\">\n <span id=\"current-time\">{calculateTime(currentTime!)}</span>\n <span id=\"duration\">{calculateTime(duration!)}</span>\n </section>\n <div className=\"mt-6 flex items-center justify-center gap-x-12\">\n <Button\n variant=\"outline\"\n onClick={() => seekBy(-10)}\n aria-label=\"Rewind 10 Seconds\"\n >\n -10\n </Button>\n <Button\n variant=\"outline\"\n onClick={togglePlayState}\n aria-label=\"Play Or Pause\"\n >\n {playState === PlayState.Paused && <Play className=\"h-5 w-5\" />}\n {playState === PlayState.Playing && <Pause className=\"h-5 w-5\" />}\n </Button>\n <Button\n variant=\"outline\"\n onClick={() => seekBy(10)}\n aria-label=\"Fast Forward 10 Seconds\"\n >\n +10\n </Button>\n </div>\n {isLoading && (\n <div className=\"mt-2 flex w-full justify-center\">\n <LoadingIndicator />\n </div>\n )}\n </div>\n );\n },\n);\n\nfunction isSafari() {\n return navigator.userAgent.toLowerCase().indexOf(\"safari/\") > -1;\n}\n\nexport default AudioPlayer;\n","export function mediaSessionPlay() {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.playbackState = \"playing\";\n}\n\nexport function mediaSessionPause() {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.playbackState = \"paused\";\n}\n\nexport function mediaSessionUpdateDurationAndPosition(\n duration: number | undefined,\n currentTime: number | undefined,\n) {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n if (duration != null && isNaN(duration)) {\n return;\n }\n if (currentTime != null && isNaN(currentTime)) {\n return;\n }\n navigator.mediaSession.setPositionState({\n playbackRate: 1,\n duration: duration,\n position: currentTime,\n });\n}\n\nexport function startMediaSessionCoordinator(args: {\n title: string;\n artwork?: string;\n\n action: (details: MediaSessionActionDetails) => void;\n}) {\n if (\n typeof navigator == \"undefined\" ||\n typeof navigator.mediaSession == \"undefined\"\n )\n return;\n navigator.mediaSession.metadata = new MediaMetadata({\n title: args.title,\n artwork: args.artwork\n ? [\n {\n type: \"image/png\",\n src: args.artwork,\n },\n ]\n : undefined,\n });\n\n navigator.mediaSession.setActionHandler(\"play\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"pause\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"stop\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekbackward\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekforward\", (e) => {\n args.action(e);\n });\n navigator.mediaSession.setActionHandler(\"seekto\", (e) => {\n args.action(e);\n });\n}\n\nexport function stopMediaSessionCoordinator() {\n navigator.mediaSession.metadata = null;\n}\n","export function ProgressBar() {\n const [progress, setProgress] = React.useState(13);\n\n React.useEffect(() => {\n const timer = setTimeout(() => setProgress(66), 500);\n return () => clearTimeout(timer);\n }, []);\n\n return (\n <div className=\"w-[60%] h-2 bg-gray-200 rounded-full overflow-hidden\">\n <div \n className=\"h-full bg-blue-600 transition-all duration-300\"\n style={{ width: `${progress}%` }}\n />\n </div>\n );\n}\n\nimport * as React from \"react\";\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { LogOut } from \"lucide-react\";\nimport { useState, type CSSProperties } from \"react\";\nimport { cn } from \"../../lib/utils\";\nimport { Button } from \"../../ui/button\";\nimport type { GetThemeOutput } from \"../types\";\n\nimport type { PanelScreen } from \"../types\";\n\ninterface PanelProductHeaderComponentProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n styles: CSSProperties;\n theme?: GetThemeOutput;\n logout: () => void;\n}\n\nfunction PanelProductHeaderComponent({\n activeScreen,\n setActiveScreen,\n setParams,\n styles: _styles,\n theme,\n logout,\n}: PanelProductHeaderComponentProps) {\n return (\n <header className=\"md:border-r-neutral-150 md:bg-beige-50 fixed right-0 bottom-0 left-0 z-10 flex h-12 w-full items-center bg-neutral-800 md:static md:z-0 md:min-h-screen md:w-auto md:border-r dark:md:border-r-neutral-900\">\n <MobileMenu\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <SidebarMenu\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n theme={theme}\n logout={logout}\n />\n </header>\n );\n}\n\nexport default PanelProductHeaderComponent;\n\ninterface MobileMenuProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n}\n\nfunction MobileMenu({\n activeScreen,\n setActiveScreen,\n setParams,\n}: MobileMenuProps) {\n return (\n <nav className=\"flex w-full items-center justify-evenly gap-4 md:hidden\">\n <MobileButton\n panelScreen=\"products\"\n label=\"Produkty\"\n imageURL=\"/icons/bitsnap-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <MobileButton\n panelScreen=\"orders\"\n label=\"Faktury\"\n imageURL=\"/icons/category-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n\n <MobileButton\n panelScreen=\"profile\"\n label=\"Profil\"\n imageURL=\"/icons/profile-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n />\n </nav>\n );\n}\n\ninterface MobileButtonProps {\n panelScreen: PanelScreen;\n label: string;\n imageURL: string;\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n}\n\nfunction MobileButton({\n panelScreen,\n label,\n imageURL,\n activeScreen,\n setActiveScreen,\n setParams,\n}: MobileButtonProps) {\n return (\n <Button\n onClick={() => {\n setActiveScreen(panelScreen);\n setParams({\n product: undefined,\n state: panelScreen,\n });\n }}\n aria-label={label}\n variant={null}\n className={cn(\n \"flex flex-col gap-0\",\n activeScreen === panelScreen ? \"opacity-100\" : \"opacity-50\",\n )}\n >\n <img src={imageURL} alt={label} className=\"scale-75\" />\n <span className=\"text-xs font-normal text-white\">{label}</span>\n </Button>\n );\n}\n\ninterface SidebarButtonProps {\n panelScreen: PanelScreen;\n label: string;\n imageURL: string;\n darkImageURL: string;\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n isExpanded: boolean;\n}\n\nfunction SidebarButton({\n panelScreen,\n label,\n imageURL,\n darkImageURL,\n activeScreen,\n setActiveScreen,\n setParams,\n isExpanded,\n}: SidebarButtonProps) {\n return (\n <Button\n onClick={() => {\n setActiveScreen(panelScreen);\n setParams({\n product: undefined,\n state: panelScreen,\n });\n }}\n variant={activeScreen === panelScreen ? \"secondary\" : \"ghost\"}\n className=\"justify-start\"\n >\n <img\n src={imageURL}\n alt={label}\n className={cn(\n \"aspect-auto h-5 w-5 dark:hidden\",\n isExpanded ? \"mr-4\" : \"mr-2\",\n )}\n />\n <img\n src={darkImageURL}\n alt={label}\n className={cn(\n \"hidden aspect-auto h-5 w-5 dark:inline\",\n isExpanded ? \"mr-4\" : \"mr-2\",\n )}\n />\n {isExpanded && (\n <span className=\"md:text-medium hidden md:inline\">{label}</span>\n )}\n </Button>\n );\n}\n\ninterface SidebarMenuProps {\n activeScreen: PanelScreen;\n setActiveScreen: (screen: PanelScreen) => void;\n setParams: (params: { product?: string; state: PanelScreen }) => void;\n theme?: GetThemeOutput;\n logout: () => void;\n}\n\nfunction SidebarMenu({\n activeScreen,\n setActiveScreen,\n setParams,\n theme,\n logout,\n}: SidebarMenuProps) {\n const [sidebarExpandRef] = useAutoAnimate();\n const [isExpanded, setIsExpanded] = useState(true);\n\n return (\n <div\n ref={sidebarExpandRef}\n className={cn(\n \"hidden px-4 pt-4 pb-12 md:flex md:h-full md:flex-col dark:bg-neutral-900\",\n isExpanded ? \"md:w-52\" : \"md:w-16\",\n )}\n >\n <div className=\"flex items-center justify-between\">\n <CompanyLogo theme={theme} isExpanded={isExpanded} />\n </div>\n\n <SidebarSeparator className=\"my-6\" />\n\n <div className=\"flex flex-1 flex-col gap-2\">\n <SidebarButton\n panelScreen=\"products\"\n label=\"Produkty\"\n imageURL=\"/icons/bitsnap-dark-24x24.svg\"\n darkImageURL=\"/icons/bitsnap-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n\n <SidebarButton\n panelScreen=\"orders\"\n label=\"Zamówienia\"\n imageURL=\"/icons/category-dark-24x24.svg\"\n darkImageURL=\"/icons/category-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n\n <SidebarButton\n panelScreen=\"profile\"\n label=\"Profil\"\n imageURL=\"/icons/profile-dark-24x24.svg\"\n darkImageURL=\"/icons/profile-24x24.svg\"\n activeScreen={activeScreen}\n setActiveScreen={setActiveScreen}\n setParams={setParams}\n isExpanded={isExpanded}\n />\n </div>\n\n <SidebarSeparator className=\"mb-6\" />\n\n <Button onClick={logout}>\n <LogOut className=\"mr-2\" width={16} height={16} />\n {isExpanded && (\n <p className=\"md:text-medium hidden md:inline md:text-center\">\n Wyloguj się\n </p>\n )}\n </Button>\n </div>\n );\n}\n\ninterface SidebarSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {}\n\nfunction SidebarSeparator({ className }: SidebarSeparatorProps) {\n return (\n <div className={cn(\"relative h-px w-full bg-neutral-300\", className)}>\n <div className=\"absolute -top-px left-0 h-1 w-1 rounded-full bg-neutral-500\"></div>\n <div className=\"absolute -top-px right-0 h-1 w-1 rounded-full bg-neutral-500\"></div>\n </div>\n );\n}\n\ninterface CompanyLogoProps {\n theme?: GetThemeOutput;\n isExpanded: boolean;\n}\n\nfunction CompanyLogo({ theme, isExpanded: _isExpanded }: CompanyLogoProps) {\n return (\n <>\n {theme == null && (\n <p className=\"text-xl tracking-wider md:inline dark:text-neutral-200\">\n bitsnap.\n </p>\n )}\n {(theme?.logoDarkURL || theme?.logoURL) && (\n <img\n src={theme.logoDarkURL ?? theme.logoURL}\n alt=\"Company Logo\"\n className=\"hidden h-6 w-6 dark:inline\"\n draggable={false}\n />\n )}\n\n {theme?.logoURL && (\n <img\n src={theme.logoURL}\n alt=\"Company Logo\"\n className=\"h-6 w-6 dark:hidden\"\n draggable={false}\n />\n )}\n </>\n );\n}\n","import { Button } from \"../../ui/button\";\nimport { LogOut } from \"lucide-react\";\n\ninterface PanelProfileComponentProps {\n email: string | null;\n logout: () => void;\n}\n\nfunction PanelProfileComponent({ email, logout }: PanelProfileComponentProps) {\n return (\n <>\n <h3 className=\"text-2xl\">Profil</h3>\n <div className=\"mt-6 flex-1 md:flex-none\">\n <span className=\"text-sm text-neutral-500\">Email</span>\n <p className=\"mt-2 text-base\">{email ? email : \"Brak danych\"}</p>\n </div>\n <div className=\"flex w-full flex-col items-center space-y-2\">\n <Button onClick={logout} className=\"max-w-64 md:hidden\">\n <LogOut className=\"mr-2\" width={16} height={16} />\n <p className=\"text-medium inline text-center\">Wyloguj się</p>\n </Button>\n </div>\n </>\n );\n}\n\nexport default PanelProfileComponent;\n","import {\n AlertCircle,\n CheckCircle2,\n ChevronLeft,\n Loader2,\n Lock,\n Package,\n Truck,\n} from \"lucide-react\";\nimport { useState, type CSSProperties } from \"react\";\nimport { rpcProvider, useMutation, useQuery } from \"../../rpc-provider\";\nimport { Button } from \"../../ui/button\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"../../ui/card\";\nimport { Input } from \"../../ui/input\";\nimport { Label } from \"../../ui/label\";\nimport { Textarea } from \"../../ui/textarea\";\n\nimport { usePanelConfig } from \"../PanelProvider\";\n\ninterface Props {\n orderID: string;\n initialEmail?: string;\n accessToken?: string;\n onBack?: () => void;\n}\n\nfunction StatusBadge({ status }: { status: string }) {\n const statusConfig: Record<\n string,\n { color: string; icon: typeof AlertCircle | null }\n > = {\n created: { color: \"bg-neutral-100 text-neutral-700\", icon: null },\n paid: { color: \"bg-green-100 text-green-700\", icon: CheckCircle2 },\n completed: { color: \"bg-blue-100 text-blue-700\", icon: CheckCircle2 },\n canceled: { color: \"bg-red-100 text-red-700\", icon: AlertCircle },\n sent: { color: \"bg-purple-100 text-purple-700\", icon: Truck },\n processing: { color: \"bg-yellow-100 text-yellow-700\", icon: Loader2 },\n };\n\n const config = statusConfig[status] || statusConfig.created;\n const Icon = config.icon;\n\n const statusLabels: Record<string, string> = {\n created: \"Utworzone\",\n paid: \"Opłacone\",\n completed: \"Zakończone\",\n canceled: \"Anulowane\",\n sent: \"Wysłane\",\n processing: \"Przetwarzane\",\n };\n\n return (\n <span\n className={`inline-flex items-center gap-1 rounded-full px-3 py-1 text-sm font-medium ${config.color}`}\n >\n {Icon && <Icon className=\"h-4 w-4\" />}\n {statusLabels[status] || status}\n </span>\n );\n}\n\nfunction AddCommentForm({\n orderID,\n email,\n}: {\n orderID: string;\n email: string;\n}) {\n const [message, setMessage] = useState(\"\");\n const addCommentMutation = useMutation(\n rpcProvider.publicApi.addPublicOrderComment,\n );\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!message.trim()) return;\n\n try {\n await addCommentMutation.mutateAsync({\n projectId: \"\",\n orderId: orderID,\n message: message.trim(),\n accessToken: email,\n });\n setMessage(\"\");\n } catch (error) {\n console.error(\"Failed to add comment:\", error);\n }\n };\n\n return (\n <form onSubmit={handleSubmit} className=\"mt-4 space-y-2\">\n <Label htmlFor=\"comment\">Dodaj komentarz</Label>\n <Textarea\n id=\"comment\"\n value={message}\n onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>\n setMessage(e.target.value)\n }\n placeholder=\"Wpisz komentarz...\"\n rows={3}\n disabled={addCommentMutation.isPending}\n />\n <Button\n type=\"submit\"\n disabled={!message.trim() || addCommentMutation.isPending}\n >\n {addCommentMutation.isPending ? (\n <>\n <Loader2 className=\"mr-2 h-4 w-4 animate-spin\" />\n Wysyłanie...\n </>\n ) : (\n \"Dodaj komentarz\"\n )}\n </Button>\n </form>\n );\n}\n\nfunction formatDate(timestamp: { seconds: bigint } | undefined): string {\n if (!timestamp) return \"N/A\";\n const date = new Date(Number(timestamp.seconds) * 1000);\n return date.toLocaleDateString(\"pl-PL\", {\n year: \"numeric\",\n month: \"long\",\n day: \"numeric\",\n });\n}\n\nfunction formatCurrency(amount: number, currency: string): string {\n return new Intl.NumberFormat(\"pl-PL\", {\n style: \"currency\",\n currency: currency.toUpperCase(),\n }).format(amount / 100);\n}\n\nfunction PublicOrderPageContent({\n orderID,\n initialEmail,\n onBack,\n accessToken,\n}: Props) {\n const { theme, projectID } = usePanelConfig();\n\n const [verifyEmail, setVerifyEmail] = useState(initialEmail || \"\");\n const [isVerifyDialogOpen, setIsVerifyDialogOpen] = useState(false);\n\n const {\n data: orderData,\n isLoading,\n error,\n refetch,\n } = useQuery(\n rpcProvider.publicApi.getPublicOrderDetails,\n {\n projectId: projectID ?? \"\",\n orderId: orderID,\n email: verifyEmail || undefined,\n accessToken: accessToken,\n },\n { enabled: !!orderID },\n );\n\n const order =\n orderData?.result.case === \"order\" ? orderData.result.value : null;\n const isVerified = order?.isVerified ?? false;\n\n const handleVerifyEmail = () => {\n refetch();\n setIsVerifyDialogOpen(false);\n };\n\n const styles = {\n \"--button-background-color\": theme?.colors?.brand ?? \"#000000\",\n \"--button-background-color-dark\": theme?.colors?.brandDark ?? \"#ffffff\",\n \"--button-text-color\": theme?.colors?.brandDark ?? \"#000000\",\n \"--button-text-color-dark\": theme?.colors?.brand ?? \"#000000\",\n } as CSSProperties;\n\n if (isLoading) {\n return (\n <div className=\"flex min-h-screen items-center justify-center\">\n <div className=\"text-center\">\n <Loader2 className=\"mx-auto h-8 w-8 animate-spin text-neutral-400\" />\n <p className=\"mt-2 text-neutral-600 dark:text-neutral-400\">\n Ładowanie zamówienia...\n </p>\n </div>\n </div>\n );\n }\n\n if (error || !order) {\n return (\n <div className=\"flex min-h-screen items-center justify-center\">\n <Card className=\"w-full max-w-md\">\n <CardContent className=\"pt-6\">\n <div className=\"text-center\">\n <AlertCircle className=\"mx-auto h-12 w-12 text-red-500\" />\n <h2 className=\"mt-4 text-xl font-semibold\">\n Zamówienie nie znalezione\n </h2>\n <p className=\"mt-2 text-neutral-600 dark:text-neutral-400\">\n Nie znaleziono zamówienia o podanym numerze.\n </p>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n }\n\n return (\n <div className=\"w-full bg-white py-8 dark:bg-black\" style={styles}>\n <div className=\"w-full px-4\">\n {onBack && (\n <Button onClick={onBack} variant=\"ghost\" className=\"mb-4 w-fit\">\n <ChevronLeft className=\"h-4 w-4\" />\n Wróć do historii zamówień\n </Button>\n )}\n <div className=\"mb-6 flex items-center gap-4\">\n {theme?.logoURL && (\n <>\n <img\n src={theme.logoURL}\n alt=\"Project logo\"\n className={`h-12 w-auto ${theme.logoDarkURL ? \"dark:hidden\" : \"\"}`}\n />\n {theme.logoDarkURL && (\n <img\n src={theme.logoDarkURL}\n alt=\"Project logo\"\n className=\"hidden h-12 w-auto dark:block\"\n />\n )}\n </>\n )}\n <div>\n <h1 className=\"text-3xl font-bold\">Zamówienie</h1>\n <p className=\"text-neutral-600 dark:text-neutral-400\">\n Numer zamówienia: #{order.orderId}\n </p>\n </div>\n </div>\n\n <Card className=\"mb-6\">\n <CardHeader>\n <CardTitle className=\"flex items-center\">\n <Package className=\"mr-2 h-5 w-5\" />\n Status zamówienia\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-6\">\n <div>\n <div className=\"flex items-center gap-2\">\n <StatusBadge status={order.status} />\n {order.processingStatus && (\n <span className=\"text-sm text-neutral-600\">\n · {order.processingStatus}\n </span>\n )}\n </div>\n <p className=\"mt-2 text-sm text-neutral-600\">\n Zamówienie złożone {formatDate(order.createdAt)}\n </p>\n </div>\n\n <div className=\"border-t pt-4\">\n <h3 className=\"mb-3 font-semibold\">Dane klienta</h3>\n <div className=\"space-y-2\">\n <div>\n <span className=\"font-medium\">Imię i nazwisko:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerName}\n </span>\n </div>\n <div>\n <span className=\"font-medium\">Email:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerEmail}\n </span>\n </div>\n {order.customerPhone && (\n <div>\n <span className=\"font-medium\">Telefon:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.customerPhone}\n </span>\n </div>\n )}\n </div>\n </div>\n\n {!isVerified && (\n <div className=\"border-t pt-4\">\n <Button\n onClick={() => setIsVerifyDialogOpen(true)}\n variant=\"outline\"\n className=\"w-full\"\n >\n <Lock className=\"mr-2 h-4 w-4\" />\n Zweryfikuj swój email\n </Button>\n </div>\n )}\n </CardContent>\n </Card>\n\n <Card className=\"mb-6\">\n <CardHeader>\n <CardTitle>Produkty</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-6\">\n <div className=\"space-y-4\">\n {order.items.map((item, index) => (\n <div key={index} className=\"flex items-center gap-4\">\n {item.imageUrl && (\n <img\n src={item.imageUrl}\n alt={item.name}\n className=\"h-16 w-16 rounded object-cover\"\n />\n )}\n <div className=\"flex-1\">\n <p className=\"font-medium\">{item.name}</p>\n <p className=\"text-sm text-neutral-600\">\n Ilość: {item.quantity}\n </p>\n </div>\n <div className=\"text-right\">\n <p className=\"font-medium\">\n {formatCurrency(Number(item.price), item.currency)}\n </p>\n </div>\n </div>\n ))}\n </div>\n\n {(order.deliveryAddress || order.deliveryMethod) && (\n <div className=\"border-t pt-4\">\n <h3 className=\"mb-3 flex items-center font-semibold\">\n <Truck className=\"mr-2 h-5 w-5\" />\n Informacje o dostawie\n </h3>\n <div className=\"space-y-2\">\n {order.deliveryAddress && (\n <div>\n <span className=\"font-medium\">Adres:</span>{\" \"}\n <span className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {order.deliveryAddress}\n </span>\n </div>\n )}\n {order.deliveryMethod && (\n <div>\n <span className=\"font-medium\">Metoda:</span>{\" \"}\n {order.deliveryMethod}\n </div>\n )}\n {order.trackingNumber && isVerified && (\n <div>\n <span className=\"font-medium\">Tracking:</span>{\" \"}\n {order.trackingNumber}\n </div>\n )}\n </div>\n </div>\n )}\n\n <div className=\"border-t pt-4\">\n <div className=\"flex justify-between text-lg font-bold\">\n <span>Suma:</span>\n <span>\n {formatCurrency(Number(order.totalAmount), order.currency)}\n </span>\n </div>\n </div>\n </CardContent>\n </Card>\n\n <Card>\n <CardHeader>\n <CardTitle>\n Komentarze {order.commentCount > 0 && `(${order.commentCount})`}\n </CardTitle>\n </CardHeader>\n <CardContent>\n {order.comments.length > 0 ? (\n <div className=\"space-y-4\">\n {order.comments.map((comment) => (\n <div\n key={comment.id}\n className=\"border-b pb-4 last:border-b-0\"\n >\n <div className=\"mb-1 flex items-center gap-2\">\n <span className=\"font-medium\">\n {comment.authorName || \"System\"}\n </span>\n <span className=\"text-xs text-neutral-500\">\n {formatDate(comment.createdAt)}\n </span>\n {comment.authorType === \"admin\" && (\n <span className=\"rounded bg-blue-100 px-2 py-0.5 text-xs text-blue-700\">\n Admin\n </span>\n )}\n </div>\n <p className={!isVerified ? \"text-neutral-500\" : \"\"}>\n {comment.message}\n </p>\n </div>\n ))}\n </div>\n ) : (\n <p className=\"text-neutral-600\">Brak komentarzy.</p>\n )}\n\n {isVerified ? (\n <AddCommentForm orderID={order.orderId} email={verifyEmail} />\n ) : (\n <div className=\"mt-4\">\n <Button\n onClick={() => setIsVerifyDialogOpen(true)}\n variant=\"outline\"\n className=\"w-full\"\n >\n <Lock className=\"mr-2 h-4 w-4\" />\n Zweryfikuj swój email\n </Button>\n </div>\n )}\n </CardContent>\n </Card>\n\n {isVerifyDialogOpen && (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/50\">\n <Card className=\"w-full max-w-md\">\n <CardHeader>\n <CardTitle>Zweryfikuj swój email</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm text-neutral-700\">\n Podaj adres email użyty przy składaniu zamówienia.\n </p>\n <div className=\"space-y-2\">\n <Label htmlFor=\"verify-email\">Adres email</Label>\n <Input\n id=\"verify-email\"\n type=\"email\"\n placeholder=\"twoj@email.com\"\n value={verifyEmail}\n onChange={(e) => setVerifyEmail(e.target.value)}\n />\n </div>\n <div className=\"flex gap-2\">\n <Button\n variant=\"outline\"\n onClick={() => setIsVerifyDialogOpen(false)}\n className=\"flex-1\"\n >\n Anuluj\n </Button>\n <Button onClick={handleVerifyEmail} className=\"flex-1\">\n Zweryfikuj\n </Button>\n </div>\n </CardContent>\n </Card>\n </div>\n )}\n </div>\n </div>\n );\n}\n\nfunction PublicOrderPage(props: Props) {\n return <PublicOrderPageContent {...props} />;\n}\nexport default PublicOrderPage;\n","import * as React from \"react\";\n\nimport { cn } from \"../lib/utils\";\n\nexport interface TextareaProps\n extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"flex min-h-[60px] w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n","import { setAllowedReturnOrigins, setPanelConfig } from \"@/src/panel\";\nimport { create } from \"@bufbuild/protobuf\";\nimport { QueryClient, QueryClientProvider } from \"@tanstack/react-query\";\nimport { createContext, useContext, useEffect } from \"react\";\nimport {\n AddressSchema,\n BillingAddressSchema,\n} from \"src/gen/proto/common/v1/address_pb\";\nimport {\n GetPreOrderDetailsRequestSchema,\n OneClickAuthorizePaymentRequest_Gateway,\n PreOrderItemSchema,\n} from \"src/gen/proto/public/v1/public_api_pb\";\nimport { PublicApiClient } from \"src/public.api.client\";\nimport zod from \"zod\";\nimport { HOST, setCustomHost } from \"./constants\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { mapGooglePayConfiguration } from \"./google.pay.mapper\";\nimport { buildURL } from \"./helper.methods\";\nimport { Err, isErr } from \"./lib/err\";\nimport { round } from \"./lib/round.number\";\nimport { LinkRequest } from \"./link.request.schema\";\nimport {\n createPaymentURL,\n getReferenceIfPossible,\n injectReferenceToRequestIfNeeded,\n} from \"./methods\";\nimport { SingleProduct } from \"./product.details.model\";\nimport { useCheckoutStore } from \"./state\";\nimport { getLocale } from \"./locale\";\n\nexport const MARKETING_AGREEMENT_ID = \"__m_a\";\n\ntype CartProduct = {\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n\n // Those fields are used to send the price and currency to the analytics\n name?: string;\n price?: number;\n currency?: string;\n priceVersion?: string;\n};\n\nexport interface CartMethods {\n checkIfApplePayIsAvailable(): Promise<boolean>;\n getGooglePayConfiguration(args: { items: CartProduct[] }): Promise<\n | {\n isAvailable: true;\n config: google.payments.api.PaymentDataRequest;\n }\n | {\n isAvailable: false;\n }\n >;\n\n addProduct(args: CartProduct): Promise<Err | void>;\n\n getProducts: () => Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details?: SingleProduct;\n }[]\n >;\n\n updateQuantity(args: { id: string; quantity: number }): Promise<Err | void>;\n\n removeProductFromCart: (args: { id: string }) => Promise<Err | void>;\n\n clearCart: () => Promise<Err | void>;\n\n getNumberOfElementsInCart: () => Promise<number>;\n\n setCouponCodeIfPossible: (couponCode?: string) => Promise<Err | void>;\n setDeliveryMethod: (deliveryMethod?: string) => Promise<Err | void>;\n setPostalCode: (postalCode?: string) => Promise<Err | void>;\n setEmail: (email?: string) => Promise<Err | void>;\n setCountry: (country: string) => Promise<Err | void>;\n getCountry: () => Promise<Err | string>;\n getAvailableCountries: () => Promise<Err | { name: string; code: string }[]>;\n\n redirectToNextStep: () => Promise<Err | { url: string }>;\n\n getApplePayPaymentRequest: (args?: {\n expectedItems?: CartProduct[];\n }) => Promise<Err | ApplePayJS.ApplePayPaymentRequest>;\n completeApplePayPayment: (args: {\n token: ApplePayJS.ApplePayPaymentToken;\n shippingContact?: ApplePayJS.ApplePayPaymentContact;\n billingContact?: ApplePayJS.ApplePayPaymentContact;\n }) => Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n >;\n completeGooglePayPayment: (args: {\n paymentData: google.payments.api.PaymentData;\n }) => Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n >;\n\n justRedirectToPayment: (args: {\n email?: string;\n productID: string;\n name?: string;\n country?: string;\n marketingAgreement?: boolean;\n locale?: string;\n }) => Promise<\n | Err\n | {\n url: string;\n }\n >;\n}\n\nconst CartProviderContext = createContext<CartMethods | undefined>(undefined);\n\nexport var bitsnapProjectID: string | undefined = undefined;\nexport function setProjectID(projectID: string) {\n setPanelConfig({\n projectID,\n });\n bitsnapProjectID = projectID;\n if (typeof window !== \"undefined\") {\n setAllowedReturnOrigins([window.location.origin]);\n }\n}\n\nexport function getProjectID(): string | undefined {\n if (bitsnapProjectID != null) {\n return bitsnapProjectID;\n }\n const me = document.querySelector(\n 'script[data-id][data-name=\"internal-cart\"]',\n );\n const projectID = me?.getAttribute(\"data-id\");\n return projectID ?? undefined;\n}\n\nexport { getLocale, setLocale } from \"./locale\";\n\nfunction getNewHostIfExist(): string | undefined {\n const me = document.querySelector(\n 'script[data-id][data-name=\"internal-cart\"]',\n );\n const customHost = me?.getAttribute(\"data-custom-host\");\n return customHost ?? undefined;\n}\n\nconst CartProvider = ({\n children,\n locale,\n}: {\n children: React.ReactNode;\n locale?: string;\n}) => {\n const queryClient = new QueryClient();\n\n useEffect(() => {\n updateNumberOfProductsInCart();\n }, []);\n\n const projectID = getProjectID();\n if (projectID == null) {\n return <></>;\n }\n\n const checkoutMethods = getCheckoutMethods(projectID, locale);\n\n return (\n <QueryClientProvider client={queryClient}>\n <CartProviderContext.Provider value={checkoutMethods}>\n {children}\n </CartProviderContext.Provider>\n </QueryClientProvider>\n );\n};\n\n// @ts-ignore\nconst getProducts: (\n projectID: string,\n args?: { items?: CheckoutProduct[]; locale?: string },\n) => Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details?: SingleProduct;\n }[]\n> = async (\n projectID: string,\n args?: { items?: CheckoutProduct[]; locale?: string },\n) => {\n let products: CheckoutProduct[] = [];\n\n if (args?.items != null && args.items.length > 0) {\n products = args.items;\n } else {\n products = getCheckout()?.products ?? [];\n }\n\n const productIds = Array.from(\n new Set(products.map((product) => product.productID)),\n );\n\n const params = new URLSearchParams();\n params.set(\"ids\", productIds.join(\",\"));\n params.set(\"locale\", args?.locale ?? getLocale());\n\n const result = await fetch(\n buildURL(projectID, `/products?${params.toString()}`),\n {\n method: \"GET\",\n },\n );\n\n if (result.status != 200) {\n return [];\n }\n\n const payload: {\n success: boolean;\n message?: string | undefined;\n result?: SingleProduct[] | undefined;\n } = await result.json();\n\n products.forEach((product) => {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n product[\"details\"] = payload.result?.find((el) => {\n if (el.id === product.productID) {\n return true;\n }\n if (el.variants != null && el.variants.length > 0) {\n const index = el.variants.findIndex(\n (variant) => variant.id === product.productID,\n );\n return index !== -1;\n }\n return false;\n });\n });\n\n // @ts-ignore\n return products\n .filter((el) => \"details\" in el)\n .map((el) => {\n el.details = resolveProductDetailsFromSingleProduct(\n el.productID,\n el.details as SingleProduct,\n );\n return el;\n });\n};\n\nexport const useCartProvider = () => {\n const context = useContext(CartProviderContext);\n\n if (context === undefined) {\n throw new Error(\"useCartProvider must be used within a CartProvider\");\n }\n\n return context;\n};\n\nexport default CartProvider;\n\nconst googlePayConfigSchema = zod.object({\n isAvailable: zod.boolean(),\n merchantId: zod.string(),\n merchantName: zod.string(),\n gateway: zod.string(),\n gatewayId: zod.string(),\n});\nconst checkoutProduct = zod.object({\n id: zod.string(),\n productID: zod.string(),\n quantity: zod.number(),\n priceVersion: zod.string().optional(),\n metadata: zod.record(zod.string(), zod.string().optional()).optional(),\n});\ntype CheckoutProduct = zod.infer<typeof checkoutProduct>;\nconst checkoutSchema = zod.object({\n country: zod.string().optional(),\n couponCode: zod.string().optional(),\n selectedDeliveryMethod: zod.string().optional(),\n postalCode: zod.string().optional(),\n email: zod.string().optional(),\n products: zod.array(checkoutProduct).optional(),\n googlePayConfig: googlePayConfigSchema.optional(),\n});\nexport type GooglePayConfig = zod.infer<typeof googlePayConfigSchema>;\nconst emptyCheckout: Checkout = {\n country: undefined,\n couponCode: undefined,\n email: undefined,\n selectedDeliveryMethod: undefined,\n postalCode: undefined,\n products: [],\n googlePayConfig: undefined,\n};\nexport type Checkout = zod.infer<typeof checkoutSchema>;\n\nconst checkoutKey = \"checkout\";\n\nfunction getCheckout(): Checkout {\n try {\n const value = localStorage.getItem(checkoutKey);\n if (value == null) {\n return emptyCheckout;\n }\n return checkoutSchema.parse(JSON.parse(value));\n } catch (e) {\n return emptyCheckout;\n }\n}\n\nasync function addProducts(projectID: string, products: CartProduct[]) {\n const latestProducts = await getProducts(projectID, {\n items: products.map((item, index) => ({ ...item, id: `price-check-${index}` })),\n });\n if (isErr(latestProducts)) return latestProducts;\n\n const checkout = getCheckout();\n if (checkout.products == null) {\n checkout.products = [];\n }\n checkout.products.push(\n ...products.map((el) => ({\n id: Math.random().toString(36).substring(7),\n productID: el.productID,\n quantity: el.quantity,\n priceVersion: latestProducts.find((product) => product.productID === el.productID)?.details?.pricing?.priceVersion,\n metadata: el.metadata,\n })),\n );\n sendAnalyticEvent({\n event: \"addToCart\",\n currency: \"PLN\",\n items: products.map((el) => ({\n id: el.productID,\n name: el.name ?? \"\",\n price: el.price ?? 0,\n quantity: el.quantity,\n currency: el.currency ?? \"PLN\",\n })),\n });\n saveCheckout(checkout);\n updateNumberOfProductsInCart();\n return undefined;\n}\n\nfunction removeProductFromCheckout(ids: string[]) {\n const checkout = getCheckout();\n const newCheckout = {\n ...checkout,\n products: checkout?.products?.filter(\n (product) =>\n !ids.includes(product.productID) && !ids.includes(product.id),\n ),\n };\n sendAnalyticEvent({\n event: \"removeFromCart\",\n items: ids.map((id) => ({\n id: id,\n name: \"\",\n price: 0,\n quantity: 1,\n currency: \"PLN\",\n })),\n });\n saveCheckout(newCheckout);\n updateNumberOfProductsInCart();\n}\n\nfunction saveCheckout(model: Checkout) {\n localStorage.setItem(checkoutKey, JSON.stringify(model));\n}\n\nexport const getCheckoutMethods: (\n projectID: string,\n locale?: string,\n) => CartMethods = (projectID, locale = getLocale()) => {\n const newHost = getNewHostIfExist();\n if (newHost != null) {\n setCustomHost(newHost);\n }\n return {\n async checkIfApplePayIsAvailable(): Promise<boolean> {\n if (typeof window == \"undefined\" || typeof document == \"undefined\") {\n return false;\n }\n if (\"ApplePaySession\" in window === false) {\n return false;\n }\n\n try {\n const result = await PublicApiClient.get(\n HOST,\n ).isOneClickPaymentAvailable({\n projectId: projectID,\n });\n\n return result.applePay;\n } catch (e) {\n console.error(\"Error checking if Apple Pay is available\", e);\n return false;\n }\n },\n async getGooglePayConfiguration(args: { items: CartProduct[] }): Promise<\n | {\n isAvailable: true;\n config: google.payments.api.PaymentDataRequest;\n }\n | {\n isAvailable: false;\n }\n > {\n if (typeof window == \"undefined\" || typeof document == \"undefined\") {\n return {\n isAvailable: false,\n };\n }\n\n try {\n const googlePayConfig = await resolveGooglePayConfiguration(projectID);\n if (googlePayConfig?.isAvailable != true) {\n return {\n isAvailable: false,\n };\n }\n\n const checkout = getCheckout();\n if (checkout == null) {\n console.log(\"checkout is null\");\n return {\n isAvailable: false,\n };\n }\n\n const products = await getProducts(projectID, {\n locale,\n items: args.items.map((el) => {\n return {\n id: Math.random().toString(36).substring(7),\n quantity: el.quantity,\n metadata: el.metadata,\n productID: el.productID,\n };\n }),\n });\n\n if (isErr(products)) {\n return {\n isAvailable: false,\n };\n }\n const result = await PublicApiClient.get(HOST).getPreOrderDetails({\n items: products.map((el) =>\n create(PreOrderItemSchema, {\n id: el.productID,\n quantity: el.quantity,\n }),\n ),\n projectId: projectID,\n // we can detect 5 the closest inpost pickup point based on shipping address.\n postCode: checkout.postalCode,\n couponCode: checkout.couponCode,\n countryCode: checkout.country,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n });\n if (result.totalAmount == null) {\n return {\n isAvailable: false,\n };\n }\n const cartRequiresShipping =\n products.find((el) => el.details?.isDeliverable == true) != null;\n\n const mappedPaymentRequest = await mapGooglePayConfiguration({\n items: products,\n googlePayConfig: googlePayConfig,\n checkout: checkout,\n cartRequiresShipping: cartRequiresShipping,\n result: result,\n });\n if (mappedPaymentRequest == null) {\n return {\n isAvailable: false,\n };\n }\n\n return {\n isAvailable: true,\n config: mappedPaymentRequest,\n };\n } catch (e) {\n console.error(\"Error resolving Google Pay configuration\", e);\n return {\n isAvailable: false,\n };\n }\n },\n async clearCart(): Promise<Err | void> {\n const empty = structuredClone(emptyCheckout);\n empty.country = getCheckout()?.country;\n saveCheckout(empty);\n updateNumberOfProductsInCart();\n },\n\n async getAvailableCountries(): Promise<\n Err | { name: string; code: string }[]\n > {\n const result = await fetch(buildURL(projectID, \"/countries\"), {\n method: \"GET\",\n });\n\n if (result.status != 200) {\n return [];\n }\n\n try {\n return zod\n .array(\n zod.object({\n name: zod.string(),\n code: zod.string(),\n }),\n )\n .parse(await result.json());\n } catch (e) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n return Err(e.toString(), \"internal\");\n }\n },\n\n async getCountry(): Promise<Err | string> {\n let country = getCheckout()?.country;\n if (country == null) {\n country = \"PL\";\n const checkout = getCheckout();\n checkout.country = country;\n saveCheckout(checkout);\n }\n\n return country;\n },\n\n async getNumberOfElementsInCart(): Promise<number> {\n return (\n getCheckout()?.products?.reduce(\n (acc, product) => acc + product.quantity,\n 0,\n ) ?? 0\n );\n },\n\n async getProducts(): Promise<\n | Err\n | {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [p: string]: string | undefined;\n };\n details?: SingleProduct;\n }[]\n > {\n return await getProducts(projectID, { locale });\n },\n\n async removeProductFromCart(args: { id: string }): Promise<Err | void> {\n return removeProductFromCheckout([args.id]);\n },\n\n async setCountry(country: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.country = country;\n saveCheckout(checkout);\n },\n\n async setCouponCodeIfPossible(couponCode?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.couponCode = couponCode;\n saveCheckout(checkout);\n },\n\n async setPostalCode(postalCode?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.postalCode = postalCode;\n saveCheckout(checkout);\n },\n\n async setDeliveryMethod(deliveryMethod?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.selectedDeliveryMethod = deliveryMethod;\n saveCheckout(checkout);\n },\n\n async setEmail(email?: string): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.email = email;\n saveCheckout(checkout);\n },\n\n async addProduct(args: CartProduct): Promise<Err | void> {\n return await addProducts(projectID, [args]);\n },\n\n async updateQuantity(args: {\n id: string;\n quantity: number;\n }): Promise<Err | void> {\n const checkout = getCheckout();\n checkout.products = checkout.products?.map((product) => {\n if (product.id === args.id) {\n product.quantity = args.quantity;\n }\n return product;\n });\n saveCheckout(checkout);\n updateNumberOfProductsInCart();\n },\n\n async redirectToNextStep(): Promise<Err | { url: string }> {\n const checkout = getCheckout();\n\n if (checkout.products == null || checkout.products.length == 0) {\n return Err(\"cart-is-empty\", \"badInput\");\n }\n const mergedMetadata = checkout.products.reduce(\n (acc, product) => {\n if (product.metadata != null) {\n Object.keys(product.metadata).forEach((key) => {\n const value = product.metadata?.[key];\n if (value != null) {\n acc[key] = value;\n }\n });\n }\n return acc;\n },\n {} as Record<string, string>,\n );\n\n const payload: LinkRequest = {\n items: checkout.products.map((el) => {\n return {\n id: el.productID,\n quantity: el.quantity,\n priceVersion: el.priceVersion,\n };\n }),\n askForNote: true,\n countries: checkout.country ? [checkout.country] : undefined,\n metadata: mergedMetadata,\n locale,\n };\n\n const paymentResponse = await createPaymentURL(payload);\n\n if (isErr(paymentResponse)) {\n console.warn(\"cannot create payment URL\", paymentResponse.error);\n return paymentResponse;\n }\n\n return {\n url: paymentResponse.url,\n };\n },\n\n async justRedirectToPayment(args: {\n email?: string;\n productID: string;\n name?: string;\n country?: string;\n marketingAgreement?: boolean;\n locale?: string;\n }): Promise<Err | { url: string }> {\n let payload: LinkRequest = {\n items: [\n {\n id: args.productID,\n quantity: 1,\n },\n ],\n askForNote: false,\n details:\n args.email || args.name\n ? {\n name: args.name,\n email: args.email,\n }\n : undefined,\n locale: args.locale ?? locale,\n };\n\n payload = injectReferenceToRequestIfNeeded(payload);\n\n if (args.country == null) {\n args.country = \"pl\";\n }\n\n if (payload.details == null) {\n payload.details = {};\n }\n if (payload.details.address == null) {\n payload.details.address = {};\n }\n payload.details.address.country = args.country;\n\n if (args.marketingAgreement === true) {\n payload.additionalAgreements = [\n {\n id: MARKETING_AGREEMENT_ID,\n name: \"\",\n required: true,\n answer: true,\n },\n ];\n }\n\n const result = await createPaymentURL(payload);\n\n if (isErr(result)) {\n return result;\n } else {\n return {\n url: result.url,\n };\n }\n },\n\n async completeApplePayPayment(args: {\n token: ApplePayJS.ApplePayPaymentToken;\n shippingContact?: ApplePayJS.ApplePayPaymentContact;\n billingContact?: ApplePayJS.ApplePayPaymentContact;\n }): Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n > {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n try {\n let shippingName = args.shippingContact?.givenName;\n if (args.shippingContact?.familyName != null) {\n shippingName += \" \" + args.shippingContact?.familyName;\n } else if (args.billingContact?.familyName != null) {\n shippingName += \" \" + args.billingContact?.familyName;\n }\n\n let metadata: Record<string, string> = {};\n\n const ref = getReferenceIfPossible();\n if (ref != null) {\n metadata[\"ref\"] = ref;\n }\n\n const result = await PublicApiClient.get(HOST).authorizeOneClickPayment(\n {\n gateway: OneClickAuthorizePaymentRequest_Gateway.APPLE_PAY,\n paymentData: JSON.stringify(args.token.paymentData),\n paymentMethod: JSON.stringify(args.token.paymentMethod),\n transactionIdentifier: args.token.transactionIdentifier,\n order: create(GetPreOrderDetailsRequestSchema, {\n items: products.map((el) => ({\n id: el.productID,\n quantity: el.quantity,\n })),\n couponCode: checkout.couponCode,\n email:\n args.shippingContact?.emailAddress ??\n args.billingContact?.emailAddress ??\n checkout.email ??\n undefined,\n phone:\n args.shippingContact?.phoneNumber ??\n args.billingContact?.phoneNumber ??\n undefined,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n postCode: checkout.postalCode,\n projectId: projectID,\n }),\n shippingAddress: create(AddressSchema, {\n line1: args.shippingContact?.addressLines?.[0] ?? \"\",\n city: args.shippingContact?.locality ?? \"\",\n country: args.shippingContact?.countryCode ?? \"\",\n zipCode: args.shippingContact?.postalCode ?? \"\",\n name: shippingName,\n }),\n billingAddress: create(BillingAddressSchema, {\n name:\n args.billingContact?.givenName ??\n \"\" + \" \" + (args.billingContact?.familyName ?? \"\"),\n line1: args.billingContact?.addressLines?.[0] ?? \"\",\n city: args.billingContact?.locality ?? \"\",\n country: args.billingContact?.countryCode ?? \"\",\n zipCode: args.billingContact?.postalCode ?? \"\",\n }),\n metadata:\n Object.keys(metadata).length > 0\n ? JSON.stringify(metadata)\n : undefined,\n },\n );\n\n return {\n isSuccess: result.isSuccess,\n redirectURL: result.redirectUrl,\n };\n } catch (error) {\n console.error(error);\n return Err(\"Failed to authorize payment\");\n }\n },\n\n async completeGooglePayPayment(args: {\n paymentData: google.payments.api.PaymentData;\n }): Promise<\n | Err\n | {\n isSuccess: boolean;\n redirectURL?: string;\n }\n > {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n try {\n let shippingName = args.paymentData.shippingAddress?.name;\n\n let metadata: Record<string, string> = {};\n\n const ref = getReferenceIfPossible();\n if (ref != null) {\n metadata[\"ref\"] = ref;\n }\n\n const result = await PublicApiClient.get(HOST).authorizeOneClickPayment(\n {\n gateway: OneClickAuthorizePaymentRequest_Gateway.GOOGLE_PAY,\n paymentData:\n args.paymentData.paymentMethodData.tokenizationData.token,\n paymentMethod: args.paymentData.paymentMethodData.type,\n transactionIdentifier: \"\",\n order: create(GetPreOrderDetailsRequestSchema, {\n items: products.map((el) => ({\n id: el.productID,\n quantity: el.quantity,\n })),\n couponCode: checkout.couponCode,\n email: args.paymentData.email ?? undefined,\n phone: args.paymentData.shippingAddress?.phoneNumber ?? undefined,\n selectedDeliveryMethod:\n args.paymentData.shippingOptionData?.id ??\n checkout.selectedDeliveryMethod,\n postCode: args.paymentData.shippingAddress?.postalCode,\n projectId: projectID,\n }),\n shippingAddress: create(AddressSchema, {\n line1: args.paymentData.shippingAddress?.address1 ?? \"\",\n city: args.paymentData.shippingAddress?.locality ?? \"\",\n country: args.paymentData.shippingAddress?.countryCode ?? \"\",\n zipCode: args.paymentData.shippingAddress?.postalCode ?? \"\",\n name: shippingName,\n }),\n billingAddress: create(BillingAddressSchema, {\n name: args.paymentData.paymentMethodData.info?.billingAddress\n ?.name,\n line1:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.address1 ?? \"\",\n city:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.locality ?? \"\",\n country:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.countryCode ?? \"\",\n zipCode:\n args.paymentData.paymentMethodData.info?.billingAddress\n ?.postalCode ?? \"\",\n }),\n metadata:\n Object.keys(metadata).length > 0\n ? JSON.stringify(metadata)\n : undefined,\n },\n );\n\n return {\n isSuccess: result.isSuccess,\n redirectURL: result.redirectUrl,\n };\n } catch (error) {\n console.error(error);\n return Err(\"Failed to authorize payment\");\n }\n\n return {\n isSuccess: true,\n };\n },\n\n async getApplePayPaymentRequest(args?: {\n expectedItems?: CartProduct[];\n }): Promise<Err | ApplePayJS.ApplePayPaymentRequest> {\n const checkout = getCheckout();\n if (checkout == null) {\n return Err(\"Checkout not found\");\n }\n if (args && args.expectedItems != null && args.expectedItems.length > 0) {\n if (checkout.products) {\n removeProductFromCheckout(\n checkout.products.map((el) => el.productID),\n );\n }\n await addProducts(projectID, args.expectedItems);\n }\n\n const products = await getProducts(projectID, { locale });\n\n if (isErr(products)) {\n return products;\n }\n\n const result = await PublicApiClient.get(HOST).getPreOrderDetails({\n items: products.map((el) =>\n create(PreOrderItemSchema, {\n id: el.productID,\n quantity: el.quantity,\n }),\n ),\n projectId: projectID,\n // we can detect 5 the closest inpost pickup point based on shipping address.\n postCode: checkout.postalCode,\n couponCode: checkout.couponCode,\n countryCode: checkout.country,\n selectedDeliveryMethod: checkout.selectedDeliveryMethod,\n });\n\n const items = products.map((el) => {\n return {\n amount: `${round((el.quantity * (el.details?.price ?? 0)) / 100, 2)}`,\n label: el.details?.name + \" - \" + el.quantity,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n };\n });\n\n if (result.selectedDeliveryMethod != null) {\n const deliveryMethod = result.methods.find(\n (el) => el.id == result.selectedDeliveryMethod,\n );\n if (deliveryMethod != null) {\n items.push({\n amount: `${round(deliveryMethod.amount / 100, 2)}`,\n label: deliveryMethod.name,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n });\n }\n }\n\n if (result.couponCode != null && result.couponValue != null) {\n items.push({\n amount: `-${round(result.couponValue / 100, 2)}`,\n label: result.couponCode,\n type: \"final\" as ApplePayJS.ApplePayLineItemType,\n });\n }\n\n return {\n countryCode: checkout.country ?? \"PL\",\n merchantCapabilities: [\n \"supports3DS\",\n \"supportsCredit\",\n \"supportsDebit\",\n ],\n supportedNetworks: [\"visa\", \"masterCard\"],\n total: {\n amount: `${round((result.totalAmount ?? 0) / 100, 2)}`,\n label: \"Płatność za koszyk\",\n type: \"final\",\n },\n shippingMethods: result.methods.map((el) => ({\n amount: `${round(el.amount / 100, 2)}`,\n detail: el.description ?? \"\",\n identifier: el.id,\n label: el.name,\n dateComponentsRange: {\n startDateComponents: {\n days: el.minDays ?? 1,\n hours: 0,\n months: 0,\n years: 0,\n } satisfies ApplePayJS.ApplePayDateComponents,\n endDateComponents: {\n days: el.maxDays ?? 14,\n hours: 0,\n months: 0,\n years: 0,\n } satisfies ApplePayJS.ApplePayDateComponents,\n },\n })),\n lineItems: items,\n currencyCode: \"PLN\",\n };\n },\n };\n};\n\nasync function resolveGooglePayConfiguration(projectID: string) {\n const checkout = getCheckout();\n if (checkout.googlePayConfig?.isAvailable != true) {\n const result = await PublicApiClient.get(HOST).isOneClickPaymentAvailable({\n projectId: projectID,\n });\n if (result.googlePay == true && result.googlePayConfig != null) {\n checkout.googlePayConfig = {\n isAvailable: true,\n gateway: result.googlePayConfig.gateway,\n gatewayId: result.googlePayConfig.gatewayMerchantId,\n merchantName: result.googlePayConfig.merchantName,\n merchantId: result.googlePayConfig.merchantId,\n };\n } else {\n checkout.googlePayConfig = {\n isAvailable: false,\n gateway: \"\",\n gatewayId: \"\",\n merchantName: \"\",\n merchantId: \"\",\n };\n }\n }\n saveCheckout(checkout);\n return checkout.googlePayConfig;\n}\n\nfunction resolveProductDetailsFromSingleProduct(\n id: string,\n product: SingleProduct,\n) {\n if (id == product.id) {\n const variantIndex = product.variants?.findIndex((v) => v.id === id);\n if (variantIndex != null && variantIndex != -1) {\n const variant = product.variants![variantIndex];\n return {\n ...product,\n availableQuantity: variant.availableQuantity,\n isDeliverable: variant.isDeliverable,\n images: variant.images ?? product.images,\n name: product.name + \" \" + variant.name,\n price: variant.price,\n currency: variant.currency,\n pricing: variant.pricing,\n };\n }\n return product;\n }\n\n const variant = product.variants?.find((v) => v.id === id);\n if (variant == null) {\n return product;\n }\n\n return {\n ...product,\n id: variant.id,\n name: product.name + \" \" + variant.name,\n price: variant.price,\n currency: variant.currency,\n pricing: variant.pricing,\n metadata: product.metadata,\n availableQuantity: variant.availableQuantity,\n isDeliverable: variant.isDeliverable,\n images: variant.images ?? product.images,\n };\n}\n\ntype ApplePaySessionArgs = {\n postCode?: string;\n email?: string;\n couponCode?: string;\n};\n\nfunction updateNumberOfProductsInCart() {\n const checkout = getCheckout();\n let numberOfProductsInCart = 0;\n if (checkout == null) {\n useCheckoutStore.setState((state) => ({\n ...state,\n numberOfProductsInCart,\n }));\n return;\n }\n numberOfProductsInCart =\n checkout.products?.reduce((acc, product) => acc + product.quantity, 0) ?? 0;\n useCheckoutStore.setState((state) => ({ ...state, numberOfProductsInCart }));\n}\n","import zod from \"zod\";\nimport { round } from \"./lib/round.number\";\n\nconst eventPayload = zod.object({\n event: zod.enum([\n \"purchase\",\n \"addToCart\",\n \"customizeProduct\",\n \"viewCart\",\n \"removeFromCart\",\n \"initiateCheckout\",\n \"lead\",\n ]),\n step: zod.string().optional(),\n value: zod.number().optional(),\n currency: zod.string().optional(),\n content_name: zod.string().optional(),\n items: zod\n .array(\n zod.object({\n id: zod.string(),\n name: zod.string(),\n price: zod.number().default(0),\n currency: zod.string().default(\"PLN\"),\n quantity: zod.number().default(1),\n })\n )\n .optional(),\n});\ntype EventPayload = zod.infer<typeof eventPayload>;\n\nexport function sendAnalyticEvent(payload: EventPayload) {\n if (typeof window == \"undefined\") {\n return;\n }\n\n sendGoogleAnalyticsEvent(payload);\n sendPixelAnalyticsEvent(payload);\n sendTikTokAnalyticsEvent(payload);\n}\n\nfunction sendGoogleAnalyticsEvent(payload: EventPayload) {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.dataLayer == \"undefined\") {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.dataLayer = [];\n }\n\n const ga4Event = mapToGA4EcommerceEvent(payload);\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.dataLayer.push(ga4Event);\n } catch (e) {\n console.warn(\"cannot send google analytics event\", e);\n }\n}\n\nfunction mapToGA4EcommerceEvent(payload: EventPayload) {\n // Calculate total value from items if not provided\n const totalValue =\n payload.value ??\n payload.items?.reduce(\n (sum, item) => sum + (item.price || 0) * (item.quantity || 1),\n 0\n ) ??\n 0;\n\n // Map items to GA4 format\n const items = payload.items?.map((item) => ({\n item_id: item.id,\n item_name: item.name || item.id,\n price: round((item.price || 0) / 100, 2),\n quantity: item.quantity || 1,\n }));\n\n // Build base ecommerce object\n const ecommerce: Record<string, unknown> = {\n currency: payload.currency || \"PLN\",\n value: round(totalValue / 100, 2),\n };\n\n if (items && items.length > 0) {\n ecommerce.items = items;\n }\n\n // Map event names to GA4 ecommerce events\n let eventName: string;\n switch (payload.event) {\n case \"purchase\":\n eventName = \"purchase\";\n // Purchase events require transaction_id, but we'll use a timestamp-based one if not provided\n ecommerce.transaction_id = payload.step || `txn_${Date.now()}`;\n break;\n case \"addToCart\":\n eventName = \"add_to_cart\";\n break;\n case \"viewCart\":\n eventName = \"view_cart\";\n break;\n case \"removeFromCart\":\n eventName = \"remove_from_cart\";\n break;\n case \"initiateCheckout\":\n eventName = \"begin_checkout\";\n break;\n case \"customizeProduct\":\n // Customize product is not a standard GA4 ecommerce event\n // We'll send it as a custom event with ecommerce data\n eventName = \"customize_product\";\n break;\n default:\n eventName = payload.event;\n }\n\n return {\n event: eventName,\n ecommerce,\n // Include step if provided for additional context\n ...(payload.step && { step: payload.step }),\n // Include content_name if provided\n ...(payload.content_name && { content_name: payload.content_name }),\n };\n}\n\nfunction sendPixelAnalyticsEvent(payload: EventPayload) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.fbq == \"undefined\") {\n return;\n }\n\n let eventType = \"\";\n let eventName = \"\";\n let eventPayload: unknown = {};\n\n switch (payload.event) {\n case \"purchase\":\n eventType = \"track\";\n eventName = \"Purchase\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"lead\":\n eventType = \"track\";\n eventName = \"Lead\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"addToCart\":\n eventType = \"track\";\n eventName = \"Add to Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"customizeProduct\":\n eventType = \"track\";\n eventName = \"Customize Product\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"viewCart\":\n eventType = \"track\";\n eventName = \"View Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"removeFromCart\":\n eventType = \"track\";\n eventName = \"Remove from Cart\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n case \"initiateCheckout\":\n eventType = \"track\";\n eventName = \"Initiate Checkout\";\n eventPayload = {\n category_name: payload.step,\n ...payload,\n };\n break;\n default:\n break;\n }\n\n if (window.location.search.includes(\"analytics\")) {\n console.log(\"Pushing FB event\", eventType, eventName, eventPayload);\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.fbq(eventType, eventName, eventPayload);\n}\n\nfunction sendTikTokAnalyticsEvent(payload: EventPayload) {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n if (typeof window.ttq == \"undefined\") {\n return;\n }\n\n const tiktokEvent = mapToTikTokEvent(payload);\n\n if (!tiktokEvent) {\n return;\n }\n\n if (window.location.search.includes(\"analytics\")) {\n console.log(\n \"Pushing TikTok event\",\n tiktokEvent.eventName,\n tiktokEvent.eventPayload\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n window.ttq.track(tiktokEvent.eventName, tiktokEvent.eventPayload);\n } catch (e) {\n console.warn(\"cannot send tiktok analytics event\", e);\n }\n}\n\nfunction mapToTikTokEvent(payload: EventPayload) {\n // Calculate total value from items if not provided\n const totalValue =\n payload.value ??\n payload.items?.reduce(\n (sum, item) => sum + (item.price || 0) * (item.quantity || 1),\n 0\n ) ??\n 0;\n\n // Map items to TikTok contents format\n const contents =\n payload.items?.map((item) => ({\n content_id: item.id,\n content_type: \"product\",\n content_name: item.name || item.id,\n quantity: item.quantity || 1,\n price: round((item.price || 0) / 100, 2),\n })) || [];\n\n // If no items but we have content_name, create a single content entry\n if (contents.length === 0 && payload.content_name) {\n contents.push({\n content_id: payload.step || \"unknown\",\n content_type: \"product\",\n content_name: payload.content_name,\n quantity: 1,\n price: round(totalValue / 100, 2),\n });\n }\n\n // Build base event payload\n const eventPayload: Record<string, unknown> = {\n currency: payload.currency || \"PLN\",\n value: round(totalValue / 100, 2),\n };\n\n if (contents.length > 0) {\n eventPayload.contents = contents;\n }\n\n // Map event names to TikTok events\n let eventName: string | null = null;\n switch (payload.event) {\n case \"purchase\":\n eventName = \"Purchase\";\n break;\n case \"addToCart\":\n eventName = \"AddToCart\";\n break;\n case \"initiateCheckout\":\n eventName = \"InitiateCheckout\";\n break;\n case \"customizeProduct\":\n eventName = \"CustomizeProduct\";\n break;\n case \"viewCart\":\n return undefined;\n // // TikTok doesn't have a ViewCart event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n case \"removeFromCart\":\n return undefined;\n // // TikTok doesn't have a RemoveFromCart event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n case \"lead\":\n return undefined;\n // // TikTok doesn't have a standard Lead event, use ViewContent as fallback\n // eventName = 'ViewContent'\n break;\n default:\n return null;\n }\n\n return {\n eventName,\n eventPayload,\n };\n}\n","export function round(num: number, numberOfDecimals: number = 2): number {\n return Number(\n +(\n Math.round(Number(num + \"e+\" + numberOfDecimals)) +\n \"e-\" +\n numberOfDecimals\n )\n );\n}\n\nexport function formatCurrency(amount: number, currency: string): string {\n const language = typeof navigator === \"undefined\" ? \"pl-PL\" : navigator.language;\n const formatter = Intl.NumberFormat(language, {\n style: \"currency\",\n currency: currency,\n currencyDisplay: \"symbol\",\n });\n\n return formatter.format(amount / 100);\n}\n\nexport function formatPriceWithoutCurrency(amount: number, currency: string) {\n let language = \"pl\";\n if (typeof navigator != \"undefined\") {\n language = navigator.language;\n }\n const result = new Intl.NumberFormat(language, {\n style: \"currency\",\n currency,\n currencyDisplay: \"code\",\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n })\n .formatToParts(amount / 100)\n .filter((x) => x.type !== \"currency\")\n .filter((x) => x.type !== \"literal\" || x.value.trim().length !== 0)\n .map((x) => x.value)\n .join(\"\");\n\n const regex = new RegExp(`(\\\\.00)(?=\\\\D*$)`);\n return result.replace(regex, \"\");\n}\n","import { GetPreOrderDetailsResponse } from \"src/gen/proto/public/v1/public_api_pb\";\nimport { Checkout, GooglePayConfig } from \"./CartProvider\";\nimport { formatCurrency, round } from \"./lib/round.number\";\nimport { SingleProduct } from \"./product.details.model\";\n\nexport function mapGooglePayConfiguration(args: {\n items: {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [key: string]: string | undefined;\n };\n details?: SingleProduct;\n }[];\n googlePayConfig: GooglePayConfig;\n checkout: Checkout;\n result: GetPreOrderDetailsResponse;\n cartRequiresShipping: boolean;\n}): google.payments.api.PaymentDataRequest | undefined {\n const { items, googlePayConfig, checkout, result, cartRequiresShipping } =\n args;\n if (result.totalAmount == null) {\n return undefined;\n }\n let intents: google.payments.api.CallbackIntent[] = [];\n if (cartRequiresShipping) {\n intents.push(\"SHIPPING_ADDRESS\");\n intents.push(\"SHIPPING_OPTION\");\n }\n\n const returnValue: google.payments.api.PaymentDataRequest = {\n apiVersion: 2,\n apiVersionMinor: 0,\n callbackIntents: intents,\n allowedPaymentMethods: [\n {\n type: \"CARD\",\n parameters: {\n allowedAuthMethods: [\"PAN_ONLY\", \"CRYPTOGRAM_3DS\"],\n allowedCardNetworks: [\"MASTERCARD\", \"VISA\"],\n },\n tokenizationSpecification: {\n type: \"PAYMENT_GATEWAY\",\n parameters: {\n gateway: googlePayConfig.gateway,\n gatewayMerchantId: googlePayConfig.gatewayId,\n },\n },\n },\n ],\n emailRequired: true,\n shippingAddressParameters: {\n phoneNumberRequired: cartRequiresShipping,\n },\n shippingAddressRequired: cartRequiresShipping,\n shippingOptionRequired: cartRequiresShipping,\n shippingOptionParameters: cartRequiresShipping\n ? {\n shippingOptions: result.methods.slice(0, 5).map((method) => ({\n id: method.id,\n label:\n method.name +\n \" - \" +\n `${formatCurrency(method.amount, result.currency)}`,\n description: method.description ?? \"\",\n })),\n defaultSelectedOptionId: result.selectedDeliveryMethod,\n }\n : undefined,\n merchantInfo: {\n merchantId: googlePayConfig.merchantId + \"\",\n merchantName: googlePayConfig.merchantName,\n },\n transactionInfo: {\n totalPriceStatus: \"FINAL\",\n totalPriceLabel: \"Płatność za koszyk\",\n totalPrice: `${round(result.totalAmount / 100, 2)}`,\n currencyCode: result.currency,\n countryCode: result.country,\n checkoutOption: \"COMPLETE_IMMEDIATE_PURCHASE\",\n displayItems: mapGooglePayDisplayItems(\n items,\n result.methods,\n result.selectedDeliveryMethod ??\n (result.methods.length > 0 ? result.methods[0].id : undefined),\n checkout.couponCode,\n result.couponValue\n ),\n },\n };\n return returnValue;\n}\n\nfunction mapGooglePayDisplayItems(\n items: {\n id: string;\n productID: string;\n quantity: number;\n metadata?: {\n [key: string]: string | undefined;\n };\n details?: SingleProduct;\n }[],\n methods: GetPreOrderDetailsResponse[\"methods\"],\n deliveryMethod?: string,\n couponCode?: string,\n couponValue?: number\n): google.payments.api.DisplayItem[] {\n const displayItems: google.payments.api.DisplayItem[] = [];\n\n let subtotalAmount = 0;\n for (const item of items) {\n if (item.details == null) {\n continue;\n }\n subtotalAmount += item.details.price * item.quantity;\n displayItems.push({\n label: item.details.name + \" x \" + item.quantity,\n price: `${round(item.details.price / 100, 2)}`,\n type: \"LINE_ITEM\",\n status: \"FINAL\",\n });\n }\n\n const selectedDeliveryMethod = methods.find(\n (method) => method.id === deliveryMethod\n );\n if (selectedDeliveryMethod != null) {\n displayItems.push({\n label: selectedDeliveryMethod.name,\n price: `${round(selectedDeliveryMethod.amount / 100, 2)}`,\n type: \"SHIPPING_OPTION\",\n status: \"FINAL\",\n });\n }\n\n if (couponCode != null && couponValue != null) {\n displayItems.push({\n label: `Kupon ${couponCode}`,\n price: `${round(couponValue / 100, 2)}`,\n type: \"DISCOUNT\",\n status: \"FINAL\",\n });\n }\n if (subtotalAmount > 0) {\n displayItems.push({\n label: \"Subtotal\",\n price: `${round(subtotalAmount / 100, 2)}`,\n type: \"SUBTOTAL\",\n status: \"FINAL\",\n });\n }\n\n return displayItems;\n}\n","import { HOST } from \"./constants\";\n\nexport function buildURL(projectID: string, path: string): string {\n return `${HOST}/api/integrations/${projectID}/public-commerce${path}`;\n}\n","// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nexport type Err = {\n ERR: true;\n error: unknown;\n type?: ErrTypes;\n data?: unknown;\n};\n\ntype ErrTypes = \"internal\" | \"badInput\" | \"notFound\";\n\nexport function isErr(x: unknown): x is Err {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return typeof x === \"object\" && x != null && \"ERR\" in x;\n}\n\nexport function Err(message: string, type?: ErrTypes, data?: unknown): Err {\n return { ERR: true, error: message, type: type, data: data };\n}\n\nexport async function tryFail<T>(\n f: (() => Promise<T>) | (() => T)\n): Promise<T | Err> {\n try {\n return await f();\n } catch (e) {\n return { ERR: true, error: e };\n }\n}\n\nexport function assertOk<T>(x: T | Err) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n if (isErr(x)) throw Error((x.error as any).toString());\n}\n","import { create } from 'zustand';\n\ninterface CheckoutStore {\n isCartVisible: boolean;\n numberOfProductsInCart: number;\n showCart: () => void;\n hideCart: () => void;\n setNumberOfProductsInCart: (numberOfProductsInCart: number) => void;\n}\n\nexport const useCheckoutStore = create<CheckoutStore>((set) => ({\n isCartVisible: false,\n numberOfProductsInCart: 0,\n showCart: () => set((state) => ({ ...state, isCartVisible: true })),\n hideCart: () => set((state) => ({ ...state, isCartVisible: false })),\n setNumberOfProductsInCart: (numberOfProductsInCart: number) => set((state) => ({ ...state, numberOfProductsInCart: numberOfProductsInCart })),\n}))\n","import { getCheckoutMethods, getLocale, getProjectID } from \"./CartProvider\";\nimport { HOST } from \"./constants\";\nimport { buildURL } from \"./helper.methods\";\nimport { Err } from \"./lib/err\";\nimport { LinkRequest } from \"./link.request.schema\";\nimport { useCheckoutStore } from \"./state\";\n\nexport namespace Bitsnap {\n export async function addProductToCart(\n id: string,\n quantity: number = 1,\n metadata?: Record<string, string | undefined>,\n // Those fields are used to send the price and currency to the analytics\n args?: {\n name?: string;\n price?: number;\n currency?: string;\n },\n ) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n const methods = getCheckoutMethods(projectID);\n\n const err = await methods.addProduct({\n productID: id,\n quantity: quantity,\n metadata: metadata,\n ...args,\n });\n if (err != null) {\n return err;\n }\n\n return undefined;\n }\n\n export function showCart() {\n useCheckoutStore.setState({ isCartVisible: true });\n }\n\n export function hideCart() {\n useCheckoutStore.setState({ isCartVisible: false });\n }\n}\n\nexport async function createPaymentURL(request: LinkRequest) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n request = injectReferenceToRequestIfNeeded(request);\n request.locale ??= getLocale();\n\n const result = await fetch(buildURL(projectID, \"/buy\"), {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(request),\n });\n\n if (result.status != 200) {\n if (result.headers.get(\"Content-Type\")?.includes(\"application/json\")) {\n try {\n const payload = await result.json();\n if (\"itemIds\" in payload && Array.isArray(payload.itemIds)) {\n const itemIds: string[] = payload.itemIds;\n return Err(\"item-ids-not-found\", \"badInput\", itemIds);\n }\n } catch (error) {}\n return Err(\"internal-error\", \"internal\");\n } else {\n console.warn(\n \"result\",\n await result.text(),\n result.status,\n result.statusText,\n );\n }\n return Err(\"internal-error\", \"internal\");\n }\n\n const response: { url: string; sessionID: string } = await result.json();\n\n return {\n url: response.url,\n };\n}\n\nexport async function createCheckout(\n request: LinkRequest & { apiKey?: string; testMode?: boolean },\n) {\n const projectID = getProjectID();\n if (projectID == null) {\n throw new Error(\"No project ID found\");\n }\n\n const headers = {\n \"Content-Type\": \"application/json\",\n ...(request.apiKey != null\n ? { Authorization: `Bearer ${request.apiKey}` }\n : {}),\n };\n\n const path = request.testMode\n ? `/api/payment/link/auto/${projectID}/test`\n : `/api/payment/link/auto/${projectID}`;\n\n delete request.apiKey;\n delete request.testMode;\n request.locale ??= getLocale();\n\n const response = await fetch(HOST + path, {\n method: \"POST\",\n headers,\n body: JSON.stringify(request),\n });\n\n const payload: {\n url: string;\n } = await response.json();\n\n return {\n status: \"ok\",\n redirectURL: payload.url,\n };\n}\n\nexport function getReferenceIfPossible(): string | undefined {\n if (typeof localStorage == \"undefined\") {\n return undefined;\n }\n const refLink = localStorage.getItem(\"bitsnap-ref\");\n if (refLink == null) {\n return undefined;\n }\n return refLink;\n}\n\nexport function injectReferenceToRequestIfNeeded(\n request: LinkRequest,\n): LinkRequest {\n const ref = getReferenceIfPossible();\n if (ref == null) {\n return request;\n }\n\n if (request.metadata == null) {\n request.metadata = {};\n }\n request.metadata[\"ref\"] = ref;\n return request;\n}\n","export const DEFAULT_LOCALE = \"pl-PL\" as const;\nconst localeStorageKey = \"bitsnap-locale\";\n\nlet activeLocale: string | undefined;\n\nexport function setLocale(locale?: string): void {\n const value = locale?.trim();\n activeLocale = value\n ? value.toLowerCase() === \"en\"\n ? \"en-US\"\n : value.toLowerCase() === \"pl\"\n ? DEFAULT_LOCALE\n : value\n : undefined;\n if (typeof localStorage !== \"undefined\") {\n if (activeLocale == null) {\n localStorage.removeItem(localeStorageKey);\n } else {\n localStorage.setItem(localeStorageKey, activeLocale);\n }\n }\n}\n\nexport function getLocale(): string {\n if (activeLocale != null) {\n return activeLocale;\n }\n if (typeof localStorage !== \"undefined\") {\n return localStorage.getItem(localeStorageKey) ?? DEFAULT_LOCALE;\n }\n return DEFAULT_LOCALE;\n}\n\nexport function translate(key: string, locale: string = getLocale()): string {\n const english: Record<string, string> = {\n cart: \"Cart\",\n emptyCart: \"Your cart is empty.\",\n total: \"Total:\",\n delivery: \"+ delivery\",\n chooseCountry: \"Choose a country\",\n nextStep: \"Next step\",\n unavailableProducts: \"Not all products are available.\",\n };\n const polish: Record<string, string> = {\n cart: \"Koszyk\",\n emptyCart: \"Brak produktów w koszyku.\",\n total: \"Suma:\",\n delivery: \"+ dostawa\",\n chooseCountry: \"Wybierz kraj\",\n nextStep: \"Następny krok\",\n unavailableProducts: \"Nie wszystkie produkty są dostępne w magazynie.\",\n };\n return (locale.toLowerCase().startsWith(\"en\") ? english : polish)[key] ?? key;\n}\n","import { useEffect } from \"react\";\nimport zod from \"zod\";\nimport type { CheckoutAppearance } from \"./appearance\";\nimport CartComponent from \"./CartComponent\";\nimport { getCheckoutMethods, getProjectID, setProjectID } from \"./CartProvider\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { isErr } from \"./lib/err\";\nimport { useCheckoutStore } from \"./state\";\nimport { setLocale } from \"./locale\";\n\nenum CartEvent {\n ADD_TO_CART = \"ADD_TO_CART\",\n}\n\nconst cartAddToCartSchema = zod.object({\n id: zod.string(),\n isSubscription: zod.boolean().default(false),\n quantity: zod.number(),\n metadata: zod.record(zod.string(), zod.string().optional()).optional(),\n});\n\ntype CartAddToCartEvent = zod.infer<typeof cartAddToCartSchema>;\n\nexport type BitsnapCartProps = {\n projectID: string;\n locale?: string;\n children?: React.ReactNode;\n onVisibleChange?: (isVisible: boolean) => void;\n className?: string;\n numberOfProductsInCartOptions?: {\n style?: React.CSSProperties;\n isVisible?: boolean;\n };\n /**\n * Optional checkout appearance. Omitting it (or passing `{}`) keeps the\n * current presentation; every token and element slot is partial.\n */\n appearance?: CheckoutAppearance;\n};\n\nfunction BitsnapCart({\n projectID,\n locale,\n children,\n onVisibleChange,\n className,\n numberOfProductsInCartOptions,\n appearance,\n}: BitsnapCartProps) {\n const { isCartVisible, showCart, hideCart, numberOfProductsInCart } =\n useCheckoutStore();\n\n function sentPostMessageToIframe(msg: unknown) {\n const iframes = document.querySelectorAll(\"iframe\");\n\n iframes.forEach((iframe) => {\n iframe.contentWindow?.postMessage(msg, \"*\");\n });\n }\n\n useEffect(() => {\n onVisibleChange?.(isCartVisible);\n if (isCartVisible) {\n sendAnalyticEvent({\n event: \"viewCart\",\n });\n }\n }, [isCartVisible]);\n\n useEffect(() => {\n setProjectID(projectID);\n }, [projectID]);\n\n useEffect(() => {\n setLocale(locale);\n }, [locale]);\n\n useEffect(() => {\n if (!(\"cart\" in window)) {\n const projectID = getProjectID();\n if (projectID == null) {\n console.warn(\"There is no project ID configured.\");\n return;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n window[\"cart\"] = {\n buyProduct: async (args: unknown) => {\n try {\n const payload = zod\n .object({\n productID: zod.string(),\n email: zod.string().optional(),\n name: zod.string().optional(),\n country: zod.string().optional(),\n marketingAgreement: zod.boolean().optional(),\n locale: zod.string().optional(),\n })\n .parse(args);\n const methods = getCheckoutMethods(projectID);\n try {\n const products = await methods.getProducts();\n if (isErr(products) == false) {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: products.map((el) => ({\n id: el.productID,\n name: el.details?.name ?? \"\",\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n currency: el.details?.currency ?? \"PLN\",\n })),\n });\n }\n } catch (e) {}\n\n const result = await methods.justRedirectToPayment(payload);\n\n console.log(\"result\", result);\n if (isErr(result) == false) {\n window.location.href = result.url;\n } else {\n alert(\n \"Nie udało się przekierować do płatności. Spróbuj ponownie później.\",\n );\n }\n } catch (e) {\n console.warn(e);\n }\n },\n };\n }\n }, []);\n\n async function handleAddingToCart(id: string, payload?: unknown) {\n const projectID = getProjectID();\n if (projectID == null) {\n console.warn(\"There is no project ID configured.\");\n return;\n }\n\n try {\n const data = cartAddToCartSchema.parse(payload);\n\n if (data.isSubscription) {\n await handleAddingSubscriptionToCart(projectID, data);\n return;\n }\n\n const methods = getCheckoutMethods(projectID);\n\n await methods.addProduct({\n productID: data.id,\n quantity: data.quantity,\n metadata: data.metadata,\n });\n\n sentPostMessageToIframe({\n id: id,\n type: CartEvent.ADD_TO_CART,\n success: true,\n });\n showCart();\n } catch (e) {\n console.warn(\"cannot add item to cart\", e);\n }\n }\n\n async function handleAddingSubscriptionToCart(\n projectID: string,\n event: CartAddToCartEvent,\n ) {\n alert(\n `TODO, nie jest to jeszcze zrobione ${projectID} ${event.id} ${event.quantity}`,\n );\n }\n\n function setupEventListener() {\n if (\"__cart_is_listening\" in window) {\n return;\n }\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error\n window[\"__cart_is_listening\"] = true;\n window.addEventListener(\"message\", (event) => {\n if (\n typeof event.data[\"id\"] != \"undefined\" &&\n typeof event.data[\"type\"] != \"undefined\"\n ) {\n const { id, type } = event.data;\n switch (type) {\n case CartEvent.ADD_TO_CART.toString():\n handleAddingToCart(id, event.data[\"payload\"]).then().catch();\n break;\n default:\n break;\n }\n }\n });\n }\n\n useEffect(() => {\n setupEventListener();\n\n if (typeof window !== \"undefined\") {\n try {\n const parsedParams = new URLSearchParams(window.location.search);\n const refLink =\n parsedParams.get(\"ref\") ?? parsedParams.get(\"utm-source\");\n if (\n typeof localStorage != \"undefined\" &&\n refLink &&\n refLink.length > 0\n ) {\n localStorage.setItem(\"bitsnap-ref\", refLink);\n }\n } catch (e) {\n return;\n }\n }\n }, []);\n\n return (\n <>\n <button\n onClick={() => (isCartVisible ? hideCart() : showCart())}\n style={{ position: \"relative\" }}\n className={[\n \"bitsnap-react\",\n className ?? \"rounded-full hover:bg-neutral-300 transition p-1\",\n ].join(\" \")}\n >\n {children ? (\n <>{children}</>\n ) : (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-shopping-cart\"\n >\n <circle cx=\"8\" cy=\"21\" r=\"1\" />\n <circle cx=\"19\" cy=\"21\" r=\"1\" />\n <path d=\"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12\" />\n </svg>\n )}\n {numberOfProductsInCartOptions?.isVisible != false &&\n numberOfProductsInCart > 0 && (\n <div\n style={{\n position: \"absolute\",\n bottom: -5,\n right: -5,\n background: \"black\",\n color: \"white\",\n borderRadius: \"50%\",\n width: \"22px\",\n height: \"22px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: \"13px\",\n fontWeight: 600,\n boxShadow: \"0 2px 8px rgba(0, 0, 0, 0.25)\",\n ...numberOfProductsInCartOptions?.style,\n }}\n >\n {numberOfProductsInCart}\n </div>\n )}\n </button>\n <CartComponent\n isVisible={isCartVisible}\n locale={locale}\n appearance={appearance}\n shouldHide={() => {\n hideCart();\n }}\n />\n </>\n );\n}\n\nexport default BitsnapCart;\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { createPortal } from \"react-dom\";\nimport { cn } from \"@/src/lib/utils\";\nimport {\n CheckoutAppearanceProvider,\n useCheckoutAppearance,\n useCheckoutSlot,\n} from \"./appearance.context\";\nimport type { CheckoutAppearance } from \"./appearance\";\nimport CartComponentContent from \"./CartComponentContent\";\nimport CartProvider from \"./CartProvider\";\nimport { getLocale, translate } from \"./locale\";\n\ninterface Props {\n isVisible: boolean;\n shouldHide: () => void;\n locale?: string;\n appearance?: CheckoutAppearance;\n}\n\nfunction CartComponent({ isVisible, shouldHide, locale }: Props) {\n const [parent] = useAutoAnimate(/* optional config */);\n const { boundaryClassName, boundaryStyle } = useCheckoutAppearance();\n const root = useCheckoutSlot(\"root\");\n const overlay = useCheckoutSlot(\"overlay\");\n const panel = useCheckoutSlot(\"panel\");\n const header = useCheckoutSlot(\"header\");\n const title = useCheckoutSlot(\"title\");\n const closeButton = useCheckoutSlot(\"closeButton\");\n\n return (\n <div\n ref={parent}\n data-bitsnap-checkout=\"root\"\n data-bitsnap-checkout-slot=\"root\"\n className={cn(\"bitsnap-react\", boundaryClassName, root.className)}\n style={{ zIndex: 999999, ...boundaryStyle, ...root.style }}\n >\n {isVisible && (\n <>\n <div\n data-bitsnap-checkout-slot=\"overlay\"\n className={cn(\n \"fixed top-0 right-0 left-0 bottom-0 cursor-pointer z-10\",\n overlay.className,\n )}\n style={overlay.style}\n onClick={shouldHide}\n ></div>\n <div\n data-bitsnap-checkout-slot=\"panel\"\n className={cn(\n \"fixed z-20 top-0 right-0 bottom-0 w-full md:w-[350px] xl:w-[420px] flex flex-col\",\n panel.className,\n )}\n style={panel.style}\n >\n <div\n data-bitsnap-checkout-slot=\"header\"\n className={cn(\n \"mx-3 mt-7 flex justify-between items-center\",\n header.className,\n )}\n style={header.style}\n >\n <h1\n data-bitsnap-checkout-slot=\"title\"\n className={cn(\"text-2xl font-medium\", title.className)}\n style={title.style}\n >\n {translate(\"cart\", locale ?? getLocale())}\n </h1>\n <button\n data-bitsnap-checkout-slot=\"closeButton\"\n className={cn(\n \"rounded-xl p-2 transition\",\n closeButton.className,\n )}\n style={closeButton.style}\n onClick={shouldHide}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className=\"lucide lucide-x\"\n >\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n <line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n </svg>\n </button>\n </div>\n\n <CartComponentContent className={\"grow\"} locale={locale} />\n </div>\n </>\n )}\n </div>\n );\n}\n\nconst WrapperCartComponent = (props: Props) => {\n if (typeof window === \"undefined\") {\n return null;\n }\n\n return createPortal(\n <CheckoutAppearanceProvider appearance={props.appearance}>\n <CartProvider locale={props.locale}>\n <CartComponent {...props} />\n </CartProvider>\n </CheckoutAppearanceProvider>,\n document.body,\n );\n};\n\nexport default WrapperCartComponent;\n","import { createContext, useContext, useMemo } from \"react\";\nimport type { ReactNode } from \"react\";\nimport {\n getCheckoutSlotAppearance,\n resolveCheckoutAppearance,\n type CheckoutAppearance,\n type CheckoutSlotAppearance,\n type CheckoutSlotName,\n type ResolvedCheckoutAppearance,\n} from \"./appearance\";\n\nconst CheckoutAppearanceContext = createContext<ResolvedCheckoutAppearance>(\n resolveCheckoutAppearance(),\n);\n\n/**\n * Checkout scoped appearance provider. It only wraps the checkout drawer, so\n * the configuration never leaks into the panel, the notifications or any\n * global state.\n */\nexport function CheckoutAppearanceProvider({\n appearance,\n children,\n}: {\n appearance?: CheckoutAppearance;\n children: ReactNode;\n}) {\n const resolved = useMemo(\n () => resolveCheckoutAppearance(appearance),\n [appearance],\n );\n\n return (\n <CheckoutAppearanceContext.Provider value={resolved}>\n {children}\n </CheckoutAppearanceContext.Provider>\n );\n}\n\nexport function useCheckoutAppearance(): ResolvedCheckoutAppearance {\n return useContext(CheckoutAppearanceContext);\n}\n\n/**\n * Returns the caller overrides for a slot. The values are meant to be merged\n * with the built-in presentation:\n *\n * ```tsx\n * const slot = useCheckoutSlot(\"title\");\n *\n * return <h1 className={cn(\"text-2xl font-medium\", slot.className)} style={slot.style} />;\n * ```\n */\nexport function useCheckoutSlot(\n slot: CheckoutSlotName,\n): CheckoutSlotAppearance {\n const resolved = useCheckoutAppearance();\n\n return getCheckoutSlotAppearance(resolved, slot) ?? {};\n}\n","import type { CSSProperties } from \"react\";\n\n/**\n * Checkout appearance API.\n *\n * `CheckoutAppearance` is resolved once per render into plain data: a theme\n * name, the tokens that are actually in effect, the per-slot overrides and the\n * inline style that both theme boundaries (the drawer root and the portalled\n * country dropdown) have to receive. Everything here is pure so it can be\n * tested without a DOM.\n *\n * Backward compatibility: the resolver never invents values. A token is only\n * present in the resolved output when the caller provided it or when the\n * caller explicitly selected a theme preset, so every unset token keeps falling\n * back to the value the checkout renders today (see `checkout.css`).\n */\n\nexport type CheckoutTheme = \"dark\" | \"light\";\n\nexport type CheckoutAppearanceTokens = {\n /** Checkout wide font family. The library never loads fonts. */\n fontFamily?: string;\n /** Base font size of the checkout. */\n fontSize?: string;\n /** Panel background. */\n background?: string;\n /** Raised surfaces: country dropdown, search bar, loading skeletons. */\n surface?: string;\n /** Main text color. */\n foreground?: string;\n /** Secondary text: empty cart, delivery info, country label, search input. */\n mutedForeground?: string;\n /** Borders: country trigger, dropdown, product separators. */\n border?: string;\n /** Checkout button background. */\n buttonBackground?: string;\n /** Checkout button text. */\n buttonForeground?: string;\n /** Checkout button background on hover. */\n buttonHoverBackground?: string;\n /** Hover and selected surfaces: close button, country options. */\n hoverSurface?: string;\n /** Focus ring color. Also applied to shared UI primitives through `--ring`. */\n focusRing?: string;\n /** Error and unavailable state color. */\n error?: string;\n /** Drawer backdrop color. */\n overlay?: string;\n /** Corner radius, applied through `--radius`. */\n radius?: string;\n};\n\n/**\n * Stable slot names. They are exposed as `data-bitsnap-checkout-slot`\n * attributes so they can also be targeted from plain CSS.\n */\nexport const CHECKOUT_SLOT_NAMES = [\n \"root\",\n \"overlay\",\n \"panel\",\n \"header\",\n \"title\",\n \"closeButton\",\n \"productList\",\n \"product\",\n \"productImage\",\n \"productName\",\n \"productPrice\",\n \"quantityControl\",\n \"quantityInput\",\n \"quantityButton\",\n \"removeButton\",\n \"summary\",\n \"totalLabel\",\n \"totalValue\",\n \"deliveryText\",\n \"countryLabel\",\n \"countryTrigger\",\n \"countryDropdown\",\n \"countrySearch\",\n \"countryOption\",\n \"paymentButtons\",\n \"checkoutButton\",\n \"emptyState\",\n \"error\",\n \"skeleton\",\n] as const;\n\nexport type CheckoutSlotName = (typeof CHECKOUT_SLOT_NAMES)[number];\n\nexport type CheckoutSlotAppearance = {\n /** Merged after the built-in classes with `cn`, so Tailwind conflicts resolve. */\n className?: string;\n /** Merged after the built-in inline styles. */\n style?: CSSProperties;\n};\n\nexport type CheckoutAppearanceElements = Partial<\n Record<CheckoutSlotName, CheckoutSlotAppearance>\n>;\n\nexport type CheckoutAppearance = {\n /**\n * `\"dark\"` keeps the current presentation, `\"light\"` applies the light preset.\n * Omitted means `\"dark\"`.\n */\n theme?: CheckoutTheme;\n /** Partial overrides. Anything omitted keeps today's value. */\n tokens?: CheckoutAppearanceTokens;\n /** Per element `className`/`style` overrides. */\n elements?: CheckoutAppearanceElements;\n};\n\nexport type ResolvedCheckoutAppearance = {\n theme: CheckoutTheme;\n /**\n * `true` as soon as the caller passed anything through `appearance`. The\n * country dropdown is portalled outside of the checkout root, so it only\n * receives the checkout boundary when the caller opted in - an omitted or\n * empty `appearance` keeps the previous (unthemed) dropdown untouched.\n */\n isCustomized: boolean;\n /** Tokens that are in effect. Empty entries were dropped. */\n tokens: CheckoutAppearanceTokens;\n elements: CheckoutAppearanceElements;\n /** Theme marker class for the theme boundaries. */\n boundaryClassName: string;\n /** Inline custom properties applied to the drawer root. */\n boundaryStyle: CSSProperties;\n /**\n * Extra properties for the portalled country dropdown. The shared select\n * content paints itself with `bg-popover`/`text-popover-foreground`, so those\n * variables have to carry the checkout colors over to the portal. They are\n * resolved eagerly because the dropdown is the only place where the built-in\n * defaults differ from the drawer.\n */\n dropdownStyle: CSSProperties;\n};\n\n/** CSS custom property used for each token. */\nexport const CHECKOUT_TOKEN_VARIABLES = {\n fontFamily: \"--bitsnap-checkout-font-family\",\n fontSize: \"--bitsnap-checkout-font-size\",\n background: \"--bitsnap-checkout-background\",\n surface: \"--bitsnap-checkout-surface\",\n foreground: \"--bitsnap-checkout-foreground\",\n mutedForeground: \"--bitsnap-checkout-muted-foreground\",\n border: \"--bitsnap-checkout-border\",\n buttonBackground: \"--bitsnap-checkout-button-background\",\n buttonForeground: \"--bitsnap-checkout-button-foreground\",\n buttonHoverBackground: \"--bitsnap-checkout-button-hover-background\",\n hoverSurface: \"--bitsnap-checkout-hover-surface\",\n focusRing: \"--bitsnap-checkout-focus-ring\",\n error: \"--bitsnap-checkout-error\",\n overlay: \"--bitsnap-checkout-overlay\",\n radius: \"--bitsnap-checkout-radius\",\n} as const;\n\nexport type CheckoutTokenName = keyof typeof CHECKOUT_TOKEN_VARIABLES;\n\n/**\n * Theme presets are intentionally partial. `\"dark\"` is empty because every\n * default already renders the current dark presentation; `\"light\"` only carries\n * the colors that have to change for a light checkout, so typography is never\n * reset implicitly.\n */\nexport const CHECKOUT_THEME_PRESETS: Record<\n CheckoutTheme,\n CheckoutAppearanceTokens\n> = {\n dark: {},\n light: {\n background: \"#ffffff\",\n surface: \"#f9fafb\",\n foreground: \"#18181b\",\n mutedForeground: \"#71717a\",\n border: \"#e4e4e7\",\n buttonBackground: \"#18181b\",\n buttonForeground: \"#fafafa\",\n buttonHoverBackground: \"#000000\",\n hoverSurface: \"#e4e4e7\",\n focusRing: \"#71717a\",\n error: \"#dc2626\",\n overlay: \"rgb(0 0 0 / 0.35)\",\n },\n};\n\n/**\n * Some shared UI primitives (`Button`, `SelectTrigger`, ...) read the shadcn\n * theme variables instead of checkout tokens. Those are remapped so a themed\n * dropdown and themed primitives stay consistent. They are only written when\n * the matching token is in effect, so untouched tokens change nothing.\n */\nconst CHECKOUT_SHADCN_VARIABLES: {\n token: CheckoutTokenName;\n variable: string;\n}[] = [\n { token: \"background\", variable: \"--background\" },\n { token: \"foreground\", variable: \"--foreground\" },\n { token: \"surface\", variable: \"--card\" },\n { token: \"surface\", variable: \"--popover\" },\n { token: \"foreground\", variable: \"--popover-foreground\" },\n { token: \"mutedForeground\", variable: \"--muted-foreground\" },\n { token: \"border\", variable: \"--border\" },\n { token: \"border\", variable: \"--input\" },\n { token: \"focusRing\", variable: \"--ring\" },\n { token: \"error\", variable: \"--destructive\" },\n { token: \"radius\", variable: \"--radius\" },\n];\n\nfunction omitUndefined(\n tokens: CheckoutAppearanceTokens,\n): CheckoutAppearanceTokens {\n const result: Record<string, unknown> = {};\n\n for (const [key, value] of Object.entries(tokens)) {\n if (value != null) {\n result[key] = value;\n }\n }\n\n return result as CheckoutAppearanceTokens;\n}\n\nfunction hasAnyElement(elements: CheckoutAppearanceElements): boolean {\n return Object.values(elements).some(\n (element) =>\n element != null &&\n (element.className != null || element.style != null),\n );\n}\n\nfunction resolveBoundaryStyle(tokens: CheckoutAppearanceTokens): CSSProperties {\n const style: Record<string, string> = {};\n\n for (const [token, variable] of Object.entries(CHECKOUT_TOKEN_VARIABLES)) {\n const value = tokens[token as CheckoutTokenName];\n if (value != null) {\n style[variable] = value;\n }\n }\n\n for (const { token, variable } of CHECKOUT_SHADCN_VARIABLES) {\n const value = tokens[token];\n if (value != null) {\n style[variable] = value;\n }\n }\n\n return style as CSSProperties;\n}\n\n/**\n * The portalled dropdown renders `bg-popover`/`text-popover-foreground` from the\n * shared primitives, so those two variables are resolved eagerly: without a\n * token they fall back to the dark values the checkout has always used.\n */\nfunction resolveDropdownStyle(tokens: CheckoutAppearanceTokens): CSSProperties {\n return {\n \"--popover\": tokens.surface ?? \"var(--color-neutral-800)\",\n \"--popover-foreground\": tokens.foreground ?? \"var(--color-neutral-200)\",\n } as CSSProperties;\n}\n\nexport function resolveCheckoutAppearance(\n appearance?: CheckoutAppearance,\n): ResolvedCheckoutAppearance {\n const theme: CheckoutTheme = appearance?.theme ?? \"dark\";\n\n const tokens = omitUndefined({\n ...CHECKOUT_THEME_PRESETS[theme],\n ...appearance?.tokens,\n });\n\n const elements = appearance?.elements ?? {};\n\n return {\n theme,\n isCustomized:\n appearance?.theme != null ||\n Object.keys(tokens).length > 0 ||\n hasAnyElement(elements),\n tokens,\n elements,\n boundaryClassName: theme,\n boundaryStyle: resolveBoundaryStyle(tokens),\n dropdownStyle: resolveDropdownStyle(tokens),\n };\n}\n\n/** Caller overrides for a single slot, if any were provided. */\nexport function getCheckoutSlotAppearance(\n resolved: ResolvedCheckoutAppearance,\n slot: CheckoutSlotName,\n): CheckoutSlotAppearance | undefined {\n return resolved.elements[slot];\n}\n","import { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport React from \"react\";\nimport { useCartProvider } from \"./CartProvider\";\nimport CountrySelector from \"./CountrySelector\";\nimport { isErr } from \"./lib/err\";\nimport { formatCurrency } from \"./lib/round.number\";\nimport LoadingIndicator from \"./LoadingIndicator\";\nimport SingleProduct from \"./SingleProduct\";\nimport { Skeleton } from \"./Skeleton\";\nimport { ApplePayButton, GooglePayButton } from \"..\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { useMutation, useQuery } from \"@tanstack/react-query\";\nimport { cn } from \"@/src/lib/utils\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\nimport { getLocale, translate } from \"./locale\";\nimport { useCheckoutSlot } from \"./appearance.context\";\n\nconst CartComponentContent = ({\n className,\n locale,\n}: {\n className: string;\n locale?: string;\n}) => {\n const provider = useCartProvider();\n const currentLocale = locale ?? getLocale();\n\n const productList = useCheckoutSlot(\"productList\");\n const summary = useCheckoutSlot(\"summary\");\n const totalLabel = useCheckoutSlot(\"totalLabel\");\n const totalValue = useCheckoutSlot(\"totalValue\");\n const deliveryText = useCheckoutSlot(\"deliveryText\");\n const countryLabel = useCheckoutSlot(\"countryLabel\");\n const paymentButtons = useCheckoutSlot(\"paymentButtons\");\n const checkoutButton = useCheckoutSlot(\"checkoutButton\");\n const emptyState = useCheckoutSlot(\"emptyState\");\n const error = useCheckoutSlot(\"error\");\n const skeleton = useCheckoutSlot(\"skeleton\");\n\n const { mutateAsync: removeProduct } = useMutation({\n mutationFn: provider.removeProductFromCart,\n });\n const { mutateAsync: updateQuantity } = useMutation({\n mutationFn: provider.updateQuantity,\n });\n const { mutateAsync: setCountryAsync } = useMutation({\n mutationFn: provider.setCountry,\n });\n const { mutateAsync: clearCart } = useMutation({\n mutationFn: provider.clearCart,\n });\n\n const [errMsg, setErrMsg] = React.useState(\"\");\n const [missingItemIds, setMissingItemIds] = React.useState<string[]>([]);\n\n const [isCountryOpen, setIsCountryOpen] = React.useState(false);\n\n const {\n mutateAsync: continueToCheckoutAsync,\n isPending: isContinueToCheckoutLoading,\n } = useMutation({\n mutationFn: provider.redirectToNextStep,\n });\n\n const { data: availableCountries } = useQuery({\n queryKey: [\"cart-available-countries\"],\n queryFn: provider.getAvailableCountries,\n });\n const { data: isApplePayAvailable } = useQuery({\n queryKey: [\"cart-one-click-payment\"],\n queryFn: provider.checkIfApplePayIsAvailable,\n });\n const { data, isLoading, refetch } = useQuery({\n queryKey: [\"cart\", currentLocale],\n queryFn: provider.getProducts,\n });\n const { data: countryData, refetch: refetchCountry } = useQuery({\n queryKey: [\"cart-country\"],\n queryFn: provider.getCountry,\n });\n\n const [productsParent] = useAutoAnimate(/* optional config */);\n\n const products = isErr(data) ? undefined : data;\n\n const countries = isErr(availableCountries) ? [] : availableCountries;\n\n const sumOfProducts =\n products?.reduce((prev, curr) => {\n if (curr.details == null) {\n return prev;\n }\n return prev + (curr.details.pricing?.effectivePrice ?? curr.details.price) * curr.quantity;\n }, 0) ?? 0;\n const currency = products?.[0]?.details?.currency ?? \"PLN\";\n\n const isSomeProductDeliverable =\n products?.some((product) => product.details?.isDeliverable === true) ??\n false;\n\n const selectedCountry =\n countryData != null && !isErr(countryData) && countryData != \"\"\n ? countryData\n : undefined;\n\n async function shouldUpdate(id: string, newQuantity?: number) {\n if (newQuantity != null) {\n if (newQuantity <= 0) {\n await removeProduct({ id: id });\n await refetch();\n return;\n }\n\n await updateQuantity({\n id: id,\n quantity: newQuantity,\n });\n await refetch();\n return;\n }\n }\n\n async function continueToCheckout() {\n try {\n setErrMsg(\"\");\n\n if (products != null) {\n try {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: products?.map((el) => ({\n id: el.productID,\n name: el.details?.name ?? \"\",\n price: el.details?.price ?? 0,\n quantity: el.quantity,\n currency: el.details?.currency ?? \"PLN\",\n })),\n });\n } catch (e) {}\n }\n\n const response = await continueToCheckoutAsync();\n\n if (isErr(response)) {\n if (response.error == \"item-ids-not-found\") {\n setErrMsg(translate(\"unavailableProducts\", currentLocale));\n if (\"data\" in response && Array.isArray(response.data)) {\n setMissingItemIds(response.data as string[]);\n }\n } else {\n setErrMsg(`${response.error}`);\n }\n return;\n }\n\n await clearCart();\n window.location.href = response.url;\n } catch (e: unknown) {\n setErrMsg(`${e}`);\n }\n }\n\n return (\n <div className={`${className} flex flex-col`} ref={productsParent}>\n {isLoading && (\n <div className={\"relative flex w-full justify-center flex-col gap-4\"}>\n <Skeleton\n data-bitsnap-checkout-slot=\"skeleton\"\n className={cn(\"w-full h-32\", skeleton.className)}\n style={skeleton.style}\n />\n <Skeleton\n data-bitsnap-checkout-slot=\"skeleton\"\n className={cn(\"w-full h-32\", skeleton.className)}\n style={skeleton.style}\n />\n </div>\n )}\n\n {!isLoading && (products == null || products.length == 0) && (\n <div className={\"flex flex-col gap-4 p-4\"}>\n <p\n data-bitsnap-checkout-slot=\"emptyState\"\n className={cn(emptyState.className)}\n style={emptyState.style}\n >\n {translate(\"emptyCart\", currentLocale)}\n </p>\n </div>\n )}\n\n <div\n data-bitsnap-checkout-slot=\"productList\"\n className={cn(\n \"max-h-[70vh] overflow-clip overflow-y-scroll\",\n productList.className,\n )}\n style={productList.style}\n >\n {products != null && products.length > 0 && (\n <ul className={\"mt-5\"}>\n {products.map((product) => (\n <React.Fragment key={product.id}>\n {product.details != null && (\n <li className={\"mb-3\"}>\n <SingleProduct\n isNotAvailable={missingItemIds.includes(\n product.productID,\n )}\n quantity={product.quantity}\n details={product.details}\n shouldUpdate={(newQuantity) => {\n shouldUpdate(product.id, newQuantity).then().catch();\n }}\n />\n <hr className=\"h-1\" />\n </li>\n )}\n </React.Fragment>\n ))}\n </ul>\n )}\n </div>\n\n <div className=\"grow\"></div>\n\n {sumOfProducts > 0 && currency != null && (\n <>\n <div\n data-bitsnap-checkout-slot=\"summary\"\n className={cn(\"mx-3 flex flex-col\", summary.className)}\n style={summary.style}\n >\n <div className={\"flex flex-row justify-between text-lg\"}>\n <p\n data-bitsnap-checkout-slot=\"totalLabel\"\n className={cn(\"text-xl\", totalLabel.className)}\n style={totalLabel.style}\n >\n {translate(\"total\", currentLocale)}\n </p>\n <div className={\"flex flex-col items-end\"}>\n <p\n data-bitsnap-checkout-slot=\"totalValue\"\n className={cn(\"font-medium\", totalValue.className)}\n style={totalValue.style}\n >\n {formatCurrency(sumOfProducts, currency)}\n </p>\n {isSomeProductDeliverable && (\n <p\n data-bitsnap-checkout-slot=\"deliveryText\"\n className={cn(\n \"opacity-70 text-right text-base\",\n deliveryText.className,\n )}\n style={deliveryText.style}\n >\n {translate(\"delivery\", currentLocale)}\n </p>\n )}\n </div>\n </div>\n </div>\n\n {countries && countries?.length > 1 && (\n <div>\n <h4\n data-bitsnap-checkout-slot=\"countryLabel\"\n className={cn(\"ml-3 text-sm\", countryLabel.className)}\n style={countryLabel.style}\n >\n {translate(\"chooseCountry\", currentLocale)}\n </h4>\n <CountrySelector\n id={Math.random().toString()}\n open={isCountryOpen}\n onToggle={() => {\n setIsCountryOpen(!isCountryOpen);\n }}\n onChange={(newValue) => {\n setCountryAsync(newValue).then(() => {\n refetchCountry().then().catch();\n });\n }}\n selectedValue={selectedCountry ?? \"\"}\n countries={countries}\n />\n </div>\n )}\n\n <div className={\"mb-3 flex flex-col\"}>\n {isApplePayAvailable && products != null && products.length > 0 && (\n <div\n data-bitsnap-checkout-slot=\"paymentButtons\"\n className={cn(\"w-full px-2\", paymentButtons.className)}\n style={paymentButtons.style}\n >\n <ApplePayButton\n colorType=\"white\"\n style={{ width: \"100%\" }}\n items={products?.map((el) => ({\n name: el.details?.name ?? \"\",\n id: el.productID,\n price: el.details?.pricing?.effectivePrice ?? el.details?.price ?? 0,\n quantity: el.quantity,\n isDeliverable: el.details?.isDeliverable ?? false,\n metadata: el.metadata,\n }))}\n />\n </div>\n )}\n {products != null && products.length > 0 && (\n <div\n data-bitsnap-checkout-slot=\"paymentButtons\"\n className={cn(\"w-full px-2\", paymentButtons.className)}\n style={paymentButtons.style}\n >\n <GooglePayButton\n buttonSizeMode=\"fill\"\n buttonColor=\"white\"\n style={{ width: \"100%\" }}\n items={products?.map((el) => ({\n name: el.details?.name ?? \"\",\n id: el.productID,\n price: el.details?.pricing?.effectivePrice ?? el.details?.price ?? 0,\n quantity: el.quantity,\n isDeliverable: el.details?.isDeliverable ?? false,\n metadata: el.metadata,\n }))}\n />\n </div>\n )}\n <button\n data-bitsnap-checkout-slot=\"checkoutButton\"\n onClick={continueToCheckout}\n disabled={\n isLoading ||\n isContinueToCheckoutLoading ||\n selectedCountry == null\n }\n className={cn(\n \"px-3 py-2 my-2 mx-2 rounded-md disabled:opacity-40 disabled:cursor-not-allowed transition font-bold\",\n checkoutButton.className,\n )}\n style={checkoutButton.style}\n >\n {isContinueToCheckoutLoading ? (\n <Spinner />\n ) : (\n translate(\"nextStep\", currentLocale)\n )}\n </button>\n {errMsg.length > 0 && (\n <p\n data-bitsnap-checkout-slot=\"error\"\n className={cn(\"text-sm text-center\", error.className)}\n style={error.style}\n >\n {errMsg}\n </p>\n )}\n </div>\n </>\n )}\n </div>\n );\n};\n\nexport default CartComponentContent;\n","import { useEffect, useState } from \"react\";\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/src/ui/select\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useCheckoutAppearance, useCheckoutSlot } from \"./appearance.context\";\n\nexport interface CountrySelectorProps {\n id: string;\n open: boolean;\n disabled?: boolean;\n onToggle: () => void;\n onChange: (value: string) => void;\n selectedValue: string;\n countries: { name: string; code: string }[];\n}\n\nfunction CountrySelector({\n id,\n open,\n disabled = false,\n onToggle,\n onChange,\n selectedValue,\n countries,\n}: CountrySelectorProps) {\n const [query, setQuery] = useState(\"\");\n\n const {\n isCustomized,\n boundaryClassName,\n boundaryStyle,\n dropdownStyle,\n } = useCheckoutAppearance();\n const countryTrigger = useCheckoutSlot(\"countryTrigger\");\n const countryDropdown = useCheckoutSlot(\"countryDropdown\");\n const countrySearch = useCheckoutSlot(\"countrySearch\");\n const countryOption = useCheckoutSlot(\"countryOption\");\n\n useEffect(() => {\n if (selectedValue == null && countries.length > 0) {\n onChange(countries[0].code);\n }\n }, []);\n\n const filteredCountries = countries.filter((country) =>\n country.name.toLowerCase().startsWith(query.toLowerCase()),\n );\n\n const selectedCountry = countries.find((el) => el.code === selectedValue);\n\n return (\n <Select\n value={selectedValue}\n onValueChange={(value) => {\n onChange(value);\n setQuery(\"\");\n }}\n open={open}\n onOpenChange={(isOpen) => {\n if (isOpen !== open) {\n onToggle();\n }\n if (!isOpen) {\n setQuery(\"\");\n }\n }}\n disabled={disabled}\n >\n <SelectTrigger\n data-bitsnap-checkout-slot=\"countryTrigger\"\n theme=\"bare\"\n className={cn(\n disabled\n ? \"bg-neutral-100 dark:bg-neutral-800 dark:border-neutral-700\"\n : \"\",\n \"w-full rounded-md\",\n countryTrigger.className,\n )}\n style={countryTrigger.style}\n >\n <SelectValue>\n {selectedCountry && (\n <span className=\"truncate flex items-center\">\n <img\n alt={selectedValue}\n src={`https://purecatamphetamine.github.io/country-flag-icons/3x2/${selectedValue}.svg`}\n className=\"inline mr-2 h-4 rounded-sm\"\n />\n {selectedCountry.name}\n </span>\n )}\n </SelectValue>\n </SelectTrigger>\n <SelectContent\n data-bitsnap-checkout={isCustomized ? \"dropdown\" : undefined}\n data-bitsnap-checkout-slot={isCustomized ? \"countryDropdown\" : undefined}\n className={cn(\n // The dropdown is portalled outside of the checkout root, so it only\n // joins the checkout theme boundary once the caller opts into an\n // appearance. Without it the content renders exactly as before.\n isCustomized ? \"bitsnap-react\" : \"\",\n boundaryClassName,\n \"w-full max-h-80 max-w-[350px] z-[999999]\",\n countryDropdown.className,\n )}\n style={{\n ...(isCustomized ? { ...boundaryStyle, ...dropdownStyle } : undefined),\n ...countryDropdown.style,\n }}\n position=\"popper\"\n >\n <div\n data-bitsnap-checkout-slot=\"countrySearch\"\n className={cn(\"sticky top-0 z-10 p-1 border-b\", countrySearch.className)}\n style={countrySearch.style}\n >\n <input\n type=\"search\"\n name=\"search\"\n autoComplete=\"off\"\n className=\"block w-full outline-none sm:text-body-regular bg-transparent rounded-md px-2 py-1.5\"\n placeholder=\"Znajdź kraj\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n />\n </div>\n <div className=\"max-h-64 overflow-y-auto\">\n {filteredCountries.length === 0 ? (\n <div className=\"cursor-default select-none relative py-2 pl-3 pr-9 text-sm\">\n No countries found\n </div>\n ) : (\n filteredCountries.map((country) => (\n <SelectItem\n key={`${id}-${country.code}`}\n data-bitsnap-checkout-slot=\"countryOption\"\n value={country.code}\n className={cn(\n \"cursor-default select-none relative py-2 pl-3 pr-9 flex items-center transition\",\n countryOption.className,\n )}\n style={countryOption.style}\n >\n <img\n alt={country.code}\n src={`https://purecatamphetamine.github.io/country-flag-icons/3x2/${country.code}.svg`}\n className=\"inline mr-2 h-4 rounded-sm\"\n />\n <span className=\"font-normal truncate\">{country.name}</span>\n </SelectItem>\n ))\n )}\n </div>\n </SelectContent>\n </Select>\n );\n}\n\nexport default CountrySelector;\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\n/**\n * Colors owned by the shared shadcn theme. They live in Tailwind's\n * `utilities` layer, so plain CSS can never win against them. Components that\n * theme themselves through their own stylesheet (the checkout and its\n * `appearance` tokens) opt out with `theme=\"bare\"`, which keeps the colors the\n * checkout owns (`background-color`, `border-color`) and leaves the rest alone.\n * The default is unchanged.\n */\nconst selectTriggerThemeClasses =\n \"border-input dark:bg-input/30 dark:hover:bg-input/50 bg-transparent\"\n\nfunction SelectTrigger({\n className,\n size = \"default\",\n theme = \"default\",\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: \"sm\" | \"default\"\n theme?: \"default\" | \"bare\"\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n data-size={size}\n className={cn(\n \"data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n theme === \"bare\" ? \"\" : selectTriggerThemeClasses,\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = \"popper\",\n align = \"center\",\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n align={align}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn(\"text-muted-foreground px-2 py-1.5 text-xs\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\"bg-border pointer-events-none -mx-1 my-1 h-px\", className)}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-4\" />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-4\" />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n}\n","import { useEffect, useState } from \"react\";\nimport type { SingleProduct } from \"./product.details.model\";\nimport { Button } from \"@/src/ui/button\";\nimport { MinusIcon, PlusIcon } from \"lucide-react\";\nimport { ButtonGroup } from \"@/src/ui/button-group\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useCheckoutSlot } from \"./appearance.context\";\nimport { ProductPrice } from \"./ProductPrice\";\n\nconst SingleProduct = ({\n isNotAvailable,\n quantity,\n details,\n shouldUpdate,\n}: {\n isNotAvailable: boolean;\n quantity: number;\n metadata?: { [key: string]: string | undefined };\n details: SingleProduct;\n shouldUpdate: (newQuantity?: number) => void;\n}) => {\n const product = useCheckoutSlot(\"product\");\n const productImage = useCheckoutSlot(\"productImage\");\n const productName = useCheckoutSlot(\"productName\");\n const productPrice = useCheckoutSlot(\"productPrice\");\n const removeButton = useCheckoutSlot(\"removeButton\");\n\n return (\n <div\n data-bitsnap-checkout-slot=\"product\"\n data-bitsnap-checkout-unavailable={isNotAvailable ? \"\" : undefined}\n className={cn(\n \"flex items-center gap-3 mx-3\",\n isNotAvailable ? \"outline outline-1 rounded-md m-1\" : \"\",\n product.className,\n )}\n style={product.style}\n >\n <img\n data-bitsnap-checkout-slot=\"productImage\"\n className={cn(\n \"aspect-auto max-w-[30%] max-w-32 max-h-32 py-2 overflow-hidden\",\n productImage.className,\n )}\n style={productImage.style}\n src={details.image_url ?? \"\"}\n alt={details.name}\n />\n\n <div className={\"flex flex-col w-full\"}>\n <p\n data-bitsnap-checkout-slot=\"productName\"\n className={cn(\"font-medium\", productName.className)}\n style={productName.style}\n >\n {details.name}\n </p>\n <p\n data-bitsnap-checkout-slot=\"productPrice\"\n className={cn(\"text-sm\", productPrice.className)}\n style={productPrice.style}\n suppressHydrationWarning\n >\n <ProductPrice\n price={details.price}\n currency={details.currency}\n pricing={details.pricing}\n quantity={quantity}\n />\n </p>\n <div className={\"flex justify-between\"}>\n <QuantityComponent\n className={\"\"}\n quantity={quantity}\n shouldUpdate={shouldUpdate}\n />\n <Button\n data-bitsnap-checkout-slot=\"removeButton\"\n variant=\"ghost\"\n size=\"sm\"\n className={removeButton.className}\n style={removeButton.style}\n onClick={() => shouldUpdate(0)}\n >\n Usuń\n </Button>\n </div>\n </div>\n </div>\n );\n};\n\nexport default SingleProduct;\n\nconst QuantityComponent = ({\n quantity,\n shouldUpdate,\n className,\n}: {\n quantity: number;\n shouldUpdate: (newQuantity: number) => void;\n className: string;\n}) => {\n const [quantityString, setQuantityString] = useState(quantity.toString());\n const [quantityValue, setQuantityValue] = useState(quantity);\n\n const quantityControl = useCheckoutSlot(\"quantityControl\");\n const quantityInput = useCheckoutSlot(\"quantityInput\");\n const quantityButton = useCheckoutSlot(\"quantityButton\");\n\n useEffect(() => {\n shouldUpdate(quantityValue);\n }, [quantityValue]);\n\n function setNewQuantity(newQuantity: string) {\n setQuantityString(newQuantity);\n if (newQuantity.length == 0) {\n return;\n }\n const parsedInt = parseInt(newQuantity);\n if (isNaN(parsedInt)) {\n setQuantityValue(1);\n setQuantityString(\"\");\n return;\n }\n if (parsedInt == 0 || parsedInt < 0) {\n setQuantityValue(1);\n setQuantityString(\"1\");\n return;\n }\n setQuantityValue(parsedInt);\n setQuantityString(parsedInt.toString());\n }\n\n function increaseQuantity() {\n setQuantityValue(quantity + 1);\n setQuantityString((quantity + 1).toString());\n }\n\n function decreaseQuantity() {\n if (quantity > 1) {\n setQuantityString((quantity - 1).toString());\n setQuantityValue(quantity - 1);\n return;\n }\n setQuantityString(quantity.toString());\n setQuantityValue(quantity);\n }\n\n return (\n <div\n data-bitsnap-checkout-slot=\"quantityControl\"\n className={cn(\"flex\", className, quantityControl.className)}\n style={quantityControl.style}\n >\n <ButtonGroup aria-label=\"Ilość\">\n <Button\n data-bitsnap-checkout-slot=\"quantityButton\"\n className={quantityButton.className}\n style={quantityButton.style}\n onClick={decreaseQuantity}\n >\n <MinusIcon />\n </Button>\n <input\n data-bitsnap-checkout-slot=\"quantityInput\"\n className={cn(\"w-8 bg-transparent text-center\", quantityInput.className)}\n style={quantityInput.style}\n value={quantityString}\n onInput={(e) => {\n setNewQuantity(e.currentTarget.value);\n }}\n type=\"text\"\n />\n <Button\n data-bitsnap-checkout-slot=\"quantityButton\"\n className={quantityButton.className}\n style={quantityButton.style}\n onClick={increaseQuantity}\n >\n <PlusIcon />\n </Button>\n </ButtonGroup>\n </div>\n );\n};\n","import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/src/lib/utils\";\nimport { Separator } from \"@/src/ui/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n);\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot : \"div\";\n\n return (\n <Comp\n className={cn(\n \"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n};\n","import type { ProductPricing } from \"./product.details.model\";\nimport { formatCurrency } from \"./lib/round.number\";\n\nexport function ProductPrice({\n price,\n currency,\n pricing,\n quantity = 1,\n}: {\n price: number;\n currency: string;\n pricing?: ProductPricing;\n quantity?: number;\n}) {\n const regular = pricing?.regularPrice ?? price;\n const effective = pricing?.effectivePrice ?? price;\n const onSale = pricing?.discount?.status === \"ACTIVE\" && effective < regular;\n\n return (\n <span>\n {onSale ? (\n <>\n <span className=\"mr-2 text-neutral-500 line-through\">\n {formatCurrency(regular * quantity, currency)}\n </span>\n <span className=\"font-semibold text-red-700\">\n {formatCurrency(effective * quantity, currency)}\n </span>\n <span className=\"mt-1 block text-xs text-neutral-600\">\n {pricing?.referencePrice.historyAvailable && pricing.referencePrice.amount != null\n ? `Najniższa cena z 30 dni: ${formatCurrency(pricing.referencePrice.amount, currency)}`\n : \"Brak danych o cenie z ostatnich 30 dni\"}\n </span>\n </>\n ) : (\n formatCurrency(effective * quantity, currency)\n )}\n </span>\n );\n}\n","function Skeleton({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"skeleton\"\n className={\"bg-neutral-700 animate-pulse rounded-md\" + ' ' + className}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n","import { Loader2Icon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Spinner({ className, ...props }: React.ComponentProps<\"svg\">) {\n return (\n <Loader2Icon\n role=\"status\"\n aria-label=\"Loading\"\n className={cn(\"size-4 animate-spin\", className)}\n {...props}\n />\n )\n}\n\nexport { Spinner }\n","import GooglePayButton from \"@google-pay/button-react\";\nimport CartProvider, { getProjectID, useCartProvider } from \"./CartProvider\";\nimport { isErr } from \"./lib/err\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport { useQuery, useMutation } from \"@tanstack/react-query\";\nimport { sendAnalyticEvent } from \"./frontent.analytics\";\n\nexport type Props = {\n test?: boolean;\n buttonSizeMode?: \"static\" | \"fill\";\n buttonColor?: \"white\" | \"black\";\n style?: {\n width?: string;\n };\n items: {\n name: string;\n id: string;\n price: number;\n quantity: number;\n isDeliverable?: boolean;\n metadata?: { [key: string]: string | undefined };\n }[];\n};\n\nfunction GooglePayButtonComponent({\n items,\n style,\n buttonColor,\n buttonSizeMode,\n test,\n}: Props) {\n const {\n getGooglePayConfiguration,\n completeGooglePayPayment,\n setCountry,\n setCouponCodeIfPossible,\n setDeliveryMethod,\n setEmail,\n setPostalCode,\n clearCart,\n } = useCartProvider();\n\n const { data: googlePayConfiguration } = useQuery({\n queryKey: [\n \"get-google-pay-configuration\",\n items.map((el) => el.id).join(\",\"),\n ],\n queryFn: () =>\n getGooglePayConfiguration({\n items: items.map((el) => ({\n ...el,\n id: undefined,\n productID: el.id,\n })),\n }),\n });\n\n const { mutateAsync: completeGooglePayPaymentAsync, isPending } = useMutation(\n {\n mutationFn: completeGooglePayPayment,\n }\n );\n if (\n googlePayConfiguration == null ||\n googlePayConfiguration.isAvailable != true\n ) {\n console.log(\n \"google pay configuration is not available\",\n googlePayConfiguration\n );\n return null;\n }\n\n return (\n <>\n <GooglePayButton\n buttonSizeMode={buttonSizeMode}\n buttonColor={buttonColor}\n style={style}\n existingPaymentMethodRequired={true}\n environment={test === true ? \"TEST\" : \"PRODUCTION\"}\n onPaymentDataChanged={async (paymentData) => {\n sendAnalyticEvent({\n event: \"initiateCheckout\",\n items: items.map((el) => ({\n id: el.id,\n name: el.name,\n price: el.price,\n quantity: el.quantity,\n currency: \"PLN\",\n })),\n });\n console.log(\"payment data changed\", paymentData);\n if (paymentData.shippingAddress?.postalCode != null) {\n await setPostalCode(paymentData.shippingAddress?.postalCode);\n }\n if (paymentData.shippingAddress?.countryCode != null) {\n await setCountry(paymentData.shippingAddress?.countryCode);\n }\n if (paymentData.shippingOptionData?.id != null) {\n await setDeliveryMethod(paymentData.shippingOptionData.id);\n }\n\n const config = await getGooglePayConfiguration({ items: [] });\n console.log(\"PAYMENT DATA CHANGED CONFIG\", config);\n if (config.isAvailable) {\n return {\n error: undefined,\n newShippingOptionParameters:\n config.config.shippingOptionParameters,\n newTransactionInfo: config.config.transactionInfo,\n };\n }\n\n return {\n error: undefined,\n };\n }}\n paymentRequest={googlePayConfiguration.config}\n onLoadPaymentData={async (paymentRequest) => {\n try {\n const result = await completeGooglePayPaymentAsync({\n paymentData: paymentRequest,\n });\n if (isErr(result)) {\n console.log(\"apple pay error\", result);\n return;\n }\n\n result.isSuccess && clearCart();\n if (result.redirectURL) {\n open(result.redirectURL, \"_self\");\n }\n } catch (e) {\n console.warn(\"error completing google pay payment\", e);\n }\n }}\n />\n {isPending ? <Spinner /> : null}\n </>\n );\n}\n\nfunction Wrapper(props: Props) {\n return (\n <>\n <CartProvider>\n <GooglePayButtonComponent {...props} />\n </CartProvider>\n </>\n );\n}\nexport default Wrapper;\n","import { useReducer, useRef, useEffect, useState } from \"react\";\nimport { cn } from \"@/src/lib/utils\";\nimport {\n rpcProvider,\n RpcProvider,\n useMutation,\n useQuery,\n} from \"src/rpc-provider\";\nimport { useQuery as UQ, useQueryClient } from \"@tanstack/react-query\";\nimport { Settings, X } from \"lucide-react\";\nimport type {\n NotificationsComponentPublicProps,\n NotificationGroup,\n CustomizationTexts,\n ComponentClassNames,\n PublicNotificationGroup,\n} from \"./types\";\nexport type {\n NotificationGroup,\n CustomizationTexts,\n ComponentClassNames,\n} from \"./types\";\nexport type Props = NotificationsComponentPublicProps;\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { NotificationHeader } from \"./NotificationHeader\";\nimport { NotificationGroupsList } from \"./NotificationGroupsList\";\nimport { QRCodeSection } from \"./QRCodeSection\";\nimport { AddUserToGroups } from \"./AddUserToGroups\";\nimport { ManageMyData } from \"./ManageMyData\";\nimport { LoginScreen } from \"./LoginScreen\";\nimport { Button } from \"@/src/ui/button\";\nimport { getProjectID } from \"../checkout/CartProvider\";\nimport { NotificationGroupHowOften } from \"@/src/gen/proto/common/v1/push_notifications_pb\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Spinner } from \"@/src/ui/spinner\";\n\ninterface State {\n isLoading: boolean;\n isUserGroupsUpdated: boolean;\n wasChanged: boolean;\n groupsProvided?: PublicNotificationGroup[];\n groups: NotificationGroup[];\n showSettings: boolean;\n isLoggedIn: boolean;\n userID: string | undefined;\n}\n\ntype Action =\n | { type: \"SET_IS_LOGGED_IN\"; value: boolean }\n | { type: \"SET_USER_ID\"; value: string | undefined }\n | { type: \"SET_LOADING\"; value: boolean }\n | { type: \"TOGGLE_GROUP\"; groupID: string }\n | { type: \"CHECK_ALL_GROUPS\" }\n | { type: \"SET_WAS_CHANGED\"; value: boolean }\n | { type: \"SET_IS_USER_GROUPS_UPDATED\"; value: boolean }\n | { type: \"RESET_UPDATE_STATE\" }\n | { type: \"SHOW_SETTINGS\" }\n | { type: \"SET_GROUPS\"; value: NotificationGroup[] }\n | { type: \"SET_PUBLIC_GROUPS\"; value?: PublicNotificationGroup[] }\n | { type: \"HIDE_SETTINGS\" };\n\nfunction reducer(state: State, action: Action): State {\n switch (action.type) {\n case \"SET_IS_LOGGED_IN\": {\n return {\n ...state,\n isLoggedIn: action.value,\n };\n }\n case \"SET_USER_ID\": {\n return {\n ...state,\n userID: action.value,\n };\n }\n case \"SET_LOADING\": {\n return {\n ...state,\n isLoading: action.value,\n };\n }\n case \"SET_PUBLIC_GROUPS\": {\n return {\n ...state,\n groupsProvided: action.value,\n groups:\n action.value != null && action.value.length > 0\n ? state.groups.filter(\n (group) => action.value?.find((g) => g.id === group.id) != null,\n )\n : state.groups,\n };\n }\n case \"SET_GROUPS\": {\n const isDefaultOn =\n state.isLoggedIn == false || state.groupsProvided != null;\n const newGroupsWithIsOn = action.value.map((group) => {\n if (state.isLoggedIn == true) {\n return group;\n }\n return {\n ...group,\n isOn:\n state.groupsProvided?.find((g) => g.id === group.id)?.isOn ??\n isDefaultOn,\n };\n });\n\n return {\n ...state,\n groups: newGroupsWithIsOn,\n };\n }\n case \"TOGGLE_GROUP\": {\n const updatedGroups = state.groups.map((group) => {\n if (group.id === action.groupID) {\n return {\n ...group,\n isOn: !group.isOn,\n };\n }\n return group;\n });\n return {\n ...state,\n wasChanged: true,\n groups: updatedGroups,\n };\n }\n case \"CHECK_ALL_GROUPS\": {\n const updated = state.groups.map((group) => {\n return {\n ...group,\n isOn: true,\n };\n });\n return {\n ...state,\n groups: updated,\n wasChanged: true,\n };\n }\n case \"SET_WAS_CHANGED\":\n return {\n ...state,\n wasChanged: action.value,\n };\n case \"SET_IS_USER_GROUPS_UPDATED\":\n return {\n ...state,\n isUserGroupsUpdated: action.value,\n };\n case \"RESET_UPDATE_STATE\":\n return {\n ...state,\n wasChanged: false,\n isUserGroupsUpdated: true,\n };\n case \"SHOW_SETTINGS\":\n return {\n ...state,\n showSettings: true,\n };\n case \"HIDE_SETTINGS\":\n return {\n ...state,\n showSettings: false,\n };\n default:\n return state;\n }\n}\n\nfunction NotificationsComponentPublic({\n slug: slugProp,\n userID,\n productID: _productID,\n projectName,\n projectLogo,\n projectLogoDark,\n groups,\n isManaging = false,\n texts,\n showQRCode = false,\n showPhoneInput = false,\n hiddenGroupIds = [],\n className,\n}: NotificationsComponentPublicProps) {\n const [parent] = useAutoAnimate();\n let slug =\n slugProp ??\n getProjectID() ??\n (typeof window !== \"undefined\" ? window.location.hostname : \"\");\n\n const { mutateAsync: updateUserGroups, isPending: isUpdating } = useMutation(\n rpcProvider.notifications.updateUserGroups,\n );\n\n const { data: userInfo, refetch: refetchAccessToken } = UQ({\n queryKey: [\"notifications_accessToken\"],\n queryFn: () => {\n if (typeof window !== \"undefined\") {\n return {\n accessToken:\n localStorage.getItem(\"notifications_accessToken\") ?? undefined,\n userID: localStorage.getItem(\"notifications_userID\") ?? undefined,\n };\n }\n return undefined;\n },\n });\n\n const {\n data: groupsDownloaded,\n isPending: isGroupsDownloading,\n refetch: refetchGroups,\n } = useQuery(rpcProvider.notifications.getUserGroups, {\n slug: slug,\n accessToken: userInfo?.accessToken,\n });\n\n const [state, dispatch] = useReducer(reducer, {\n isLoading: isGroupsDownloading,\n isUserGroupsUpdated: false,\n wasChanged: false,\n groupsProvided: groups,\n groups: [],\n showSettings: userInfo != null && isManaging == true,\n isLoggedIn: userInfo != null,\n userID: undefined,\n });\n\n useEffect(() => {\n dispatch({ type: \"SET_LOADING\", value: isUpdating || isGroupsDownloading });\n }, [isUpdating, isGroupsDownloading]);\n\n useEffect(() => {\n dispatch({\n type: \"SET_IS_LOGGED_IN\",\n value: userInfo?.accessToken != null,\n });\n dispatch({ type: \"SET_USER_ID\", value: userInfo?.userID });\n if (userInfo?.accessToken != null && isManaging == true) {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n }, [userInfo, isManaging]);\n\n useEffect(() => {\n if (groupsDownloaded == null) {\n return;\n }\n let newGroups = groupsDownloaded.groups.map((group) => {\n let howOften = \"rarely\";\n switch (group.howOften) {\n case NotificationGroupHowOften.RARELY:\n howOften = \"rarely\";\n break;\n case NotificationGroupHowOften.OFTEN:\n howOften = \"often\";\n break;\n case NotificationGroupHowOften.VERY_OFTEN:\n howOften = \"veryOften\";\n break;\n }\n return {\n id: group.id,\n name: group.name,\n description: group.description,\n howOften: howOften,\n isOn: group.isOn ?? undefined,\n };\n });\n dispatch({ type: \"SET_GROUPS\", value: newGroups });\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [groupsDownloaded, isGroupsDownloading, groups]);\n\n const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(() => {\n let preparedGroups = groups?.map((el) => {\n if (el.id.startsWith(\"group_\")) {\n return el;\n }\n el.id = `group_${el.id}`;\n return el;\n });\n\n dispatch({ type: \"SET_PUBLIC_GROUPS\", value: preparedGroups });\n }, [groups]);\n\n const mergedTexts = { ...DEFAULT_TEXTS, ...texts };\n\n async function updateGroups() {\n await updateUserGroups({\n accessToken: userInfo?.accessToken,\n slug: slug,\n userId: userID,\n groupIds: state.groups\n .filter((el) => el.isOn === true)\n .map((el) => el.id),\n });\n dispatch({ type: \"RESET_UPDATE_STATE\" });\n\n // Clear existing timeout if any\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n\n // Set timeout to reset isUserGroupsUpdated after 2 seconds\n timeoutRef.current = setTimeout(() => {\n dispatch({ type: \"SET_IS_USER_GROUPS_UPDATED\", value: false });\n }, 2000);\n }\n\n function toggleGroup(groupID: string) {\n dispatch({ type: \"TOGGLE_GROUP\", groupID });\n }\n\n function checkAllGroups() {\n dispatch({ type: \"CHECK_ALL_GROUPS\" });\n }\n\n function handleSettingsClick() {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n\n function handleCloseSettings() {\n dispatch({ type: \"HIDE_SETTINGS\" });\n }\n\n function handleLogout() {\n localStorage.removeItem(\"notifications_accessToken\");\n localStorage.removeItem(\"notifications_userID\");\n refetchAccessToken();\n dispatch({ type: \"SET_USER_ID\", value: undefined });\n dispatch({ type: \"SET_IS_LOGGED_IN\", value: false });\n dispatch({ type: \"HIDE_SETTINGS\" });\n }\n\n async function handleLoginSuccess(\n userID: string | undefined,\n accessToken: string,\n ) {\n if (typeof window !== \"undefined\") {\n localStorage.setItem(\"notifications_accessToken\", accessToken);\n if (userID != null) {\n localStorage.setItem(\"notifications_userID\", userID);\n }\n }\n dispatch({ type: \"SET_USER_ID\", value: userID });\n try {\n await refetchAccessToken();\n refetchGroups()\n .then()\n .catch()\n .finally(() => {\n if (isManaging == true) {\n // Automatically switch to managing view\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n });\n } catch (e) {\n console.log(`Error: ${e}`);\n }\n }\n\n // Cleanup timeout on unmount\n useEffect(() => {\n return () => {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n }\n };\n }, []);\n\n const isManagingEnabled =\n isManaging == true && state.userID != null && userInfo?.accessToken != null;\n\n return (\n <main className={cn(\"bitsnap-react relative\", className?.container)}>\n {mergedTexts.title != null && (\n <h1 className=\"text-2xl font-semibold text-black md:text-3xl lg:text-4xl xl:text-5xl dark:text-neutral-100\">\n {mergedTexts.title}\n </h1>\n )}\n\n {/* Floating Settings Icon */}\n {!state.showSettings && isManaging && (\n <Button\n onClick={handleSettingsClick}\n variant=\"outline\"\n size=\"icon\"\n className=\"absolute bottom-6 right-6 z-50 h-12 w-12 rounded-full shadow-lg hover:shadow-xl md:bottom-8 md:right-8\"\n aria-label=\"Settings\"\n >\n <Settings className=\"h-5 w-5\" />\n </Button>\n )}\n\n <div\n className={cn(\n \"md:pt8 relative z-0 mt-6 overflow-hidden rounded-2xl bg-white px-3 pt-6 pb-3 md:px-5 md:pb-5 dark:bg-neutral-800\",\n className?.header,\n )}\n >\n {state.showSettings ? (\n // Settings View\n <div className=\"space-y-6\">\n {state.isLoggedIn && (\n // Managing Groups View (logged in)\n <div\n className={cn(\n \"grid grid-cols-1 gap-3 lg:gap-6\",\n isManagingEnabled ? \"md:grid-cols-2\" : \"\",\n )}\n >\n <div className={className?.groupsContainer}>\n <NotificationHeader\n projectName={projectName}\n projectLogo={projectLogo}\n projectLogoDark={projectLogoDark}\n description={mergedTexts.managingDescription}\n className={className}\n onLogout={handleLogout}\n />\n {isGroupsDownloading && (\n <div className=\"flex justify-center items-center py-8\">\n <Spinner />\n </div>\n )}\n\n <NotificationGroupsList\n groups={state.groups}\n hiddenGroupIds={hiddenGroupIds}\n isManaging={isManaging}\n onToggle={toggleGroup}\n onCheckAll={checkAllGroups}\n onUpdate={updateGroups}\n isUpdating={isUpdating}\n wasChanged={state.wasChanged}\n isUserGroupsUpdated={state.isUserGroupsUpdated}\n className={className}\n texts={mergedTexts}\n />\n </div>\n {isManagingEnabled && (\n <ManageMyData\n accessToken={userInfo.accessToken ?? \"\"}\n slug={slug}\n userID={state.userID ?? \"\"}\n className={className}\n texts={mergedTexts}\n />\n )}\n\n {showQRCode != false && (\n <QRCodeSection\n showQRCode={showQRCode}\n isManaging={true}\n className={className}\n texts={mergedTexts}\n />\n )}\n </div>\n )}\n </div>\n ) : (\n // Default View (Form only)\n <div className={cn(\"grid grid-cols-1 gap-3 lg:gap-6\")}>\n <AddUserToGroups\n slug={slug}\n onToggle={(id) => {\n dispatch({ type: \"TOGGLE_GROUP\", groupID: id });\n }}\n onCheckAll={() => {\n dispatch({ type: \"CHECK_ALL_GROUPS\" });\n }}\n onSuccess={(userAlreadyExists, userID, accessToken) => {\n if (accessToken != null) {\n handleLoginSuccess(userID, accessToken);\n }\n if (userAlreadyExists) {\n dispatch({ type: \"SHOW_SETTINGS\" });\n }\n }}\n groups={state.groups}\n showPhoneInput={showPhoneInput}\n agreementText={mergedTexts.agreementText}\n className={className}\n texts={mergedTexts}\n wasChanged={state.wasChanged}\n isUpdating={isUpdating}\n />\n </div>\n )}\n </div>\n <LoginScreen\n isOpen={state.showSettings && !state.isLoggedIn}\n slug={slug}\n onSuccess={handleLoginSuccess}\n texts={mergedTexts}\n onClose={handleCloseSettings}\n />\n </main>\n );\n}\n\nfunction Wrapper({\n slug,\n userID,\n productID,\n projectName,\n projectLogo,\n projectLogoDark,\n groups,\n isManaging,\n texts,\n showQRCode,\n showPhoneInput,\n hiddenGroupIds,\n className,\n}: Props) {\n return (\n <RpcProvider>\n <NotificationsComponentPublic\n slug={slug}\n userID={userID}\n productID={productID}\n projectName={projectName}\n projectLogo={projectLogo}\n projectLogoDark={projectLogoDark}\n groups={groups}\n isManaging={isManaging}\n texts={texts}\n showQRCode={showQRCode}\n showPhoneInput={showPhoneInput}\n hiddenGroupIds={hiddenGroupIds}\n className={className}\n />\n </RpcProvider>\n );\n}\nexport default Wrapper;\n","import type { CustomizationTexts } from \"./types\";\n\nexport const DEFAULT_TEXTS: Required<CustomizationTexts> = {\n title: null,\n description: null,\n managingDescription:\n \"Zarządzaj rodzajami powiadomień i sposobem dostarczania.\",\n formTitle: \"Podaj Email aby zapisać się do powiadomień\",\n formEmailLabel: \"Email\",\n formPhoneLabel: \"Numer telefonu\",\n formPhoneOptional: \"(opcjonalnie)\",\n formEmailPlaceholder: \"np. mail@gmail...\",\n formPhonePlaceholder: \"np. 663...\",\n formSubmitButton: \"Zapisz się\",\n formSuccessMessage: \"Zapisałeś się do powiadomień.\",\n agreementText: (\n <>\n <span style={{ color: \"red\" }}>*</span>\n Wyrażam zgodę na przetwarzanie moich danych w celach marketingowych\n zgodnie z{\" \"}\n <a\n href=\"/regulations/polityka-prywatnosci\"\n target=\"_blank\"\n className=\"cursor-alias font-bold hover:font-medium\"\n >\n regulaminem\n </a>{\" \"}\n <span className=\"text-xs font-light\">\n (zgodę można w każdej chwili wycofać)\n </span>\n </>\n ),\n qrCodeTitle: \"lub zainstaluj aplikację mobilną\",\n qrCodeSubtitle: \"Aplikacja mobilna\",\n qrCodeScanText: \"zeskanuj kod QR\",\n groupsNoSelectionWarning:\n \"Jeśli żadna z grup nie jest zaznaczona, nie otrzymasz żadnych powiadomień.\",\n groupsSelectAllButton: \"Zaznacz wszystkie\",\n groupsUpdateButton: \"Aktualizuj\",\n groupsUpdateSuccess: \"Zaktualizowano pomyślnie.\",\n groupsTitle: \"Zarządzaj grupami z których chcesz otrzymywać powiadomienia\",\n manageDataTitle: \"Ustawienia powiadomień\",\n manageDataDescription: \"W jaki sposób chcesz otrzymywać powiadomienia?\",\n manageDataUnsubscribeButton: \"Odsubskrybuj\",\n manageDataUpdatedMessage: \"Zaktualizowano\",\n manageDataUnsubscribeDescription:\n \"Wypisz mnie z wszystkich powiadomień i grup.\",\n loginEmailLabel: \"Email\",\n loginEmailPlaceholder: \"Wprowadź swój email\",\n loginSendCodeButton: \"Wyślij kod weryfikacyjny\",\n loginSendingButton: \"Wysyłanie...\",\n loginCodeLabel: \"Wprowadź kod weryfikacyjny\",\n loginCodeSentMessage: \"Wysłaliśmy kod weryfikacyjny na adres\",\n loginChangeEmailButton: \"Popraw email\",\n loginResendCodeButton: \"Wyślij kod ponownie\",\n loginInvalidEmailError: \"Wprowadź prawidłowy adres email\",\n loginSlugRequiredError: \"Wymagany jest identyfikator projektu\",\n loginInvalidCodeError: \"Nieprawidłowy kod weryfikacyjny\",\n loginVerificationFailedError:\n \"Weryfikacja nie powiodła się. Sprawdź swój kod.\",\n loginSendEmailError: \"Nie udało się wysłać kodu weryfikacyjnego\",\n loginVerifyCodeError: \"Nie udało się zweryfikować kodu\",\n loginResendEmailError: \"Nie udało się ponownie wysłać kodu weryfikacyjnego\",\n loginTitle: \"Wpisz email aby zarządzać powiadomieniami\",\n loginDescription: \"Dostaniesz kod weryfikacyjny na email.\",\n loginIHaveCode: \"Mam już kod\",\n};\n","import { cn } from \"@/src/lib/utils\";\nimport type { ComponentClassNames } from \"./types\";\nimport { Button } from \"@/src/ui/button\";\nimport { LogOutIcon } from \"lucide-react\";\n\ninterface NotificationHeaderProps {\n projectName?: string;\n projectLogo?: string;\n projectLogoDark?: string;\n description: string | null;\n className?: ComponentClassNames;\n onLogout?: () => void;\n}\n\nexport function NotificationHeader({\n projectName,\n projectLogo,\n projectLogoDark,\n description,\n className,\n onLogout,\n}: NotificationHeaderProps) {\n return (\n <>\n {projectLogo != null ||\n (projectName != null && (\n <h2\n className={cn(\n \"flex max-w-44 items-center gap-3 text-lg font-medium text-black sm:max-w-none md:text-xl lg:text-2xl xl:text-3xl dark:text-neutral-100\",\n className?.headerTitle\n )}\n >\n {projectLogo != null && (\n <>\n <img\n src={projectLogo}\n alt=\"\"\n className={cn(\n \"h-12 w-auto dark:hidden\",\n className?.headerLogo\n )}\n />\n <img\n src={projectLogoDark ?? projectLogo}\n alt=\"\"\n className={cn(\n \"hidden h-12 w-auto dark:inline\",\n className?.headerLogo\n )}\n />\n </>\n )}\n <span>{projectName}</span>\n </h2>\n ))}\n <div className=\"flex items-center gap-2\">\n {description && (\n <p\n className={cn(\n \"mt-4 font-medium text-left\",\n className?.headerDescription\n )}\n >\n {description}\n </p>\n )}\n <div className=\"grow\"></div>\n {onLogout && (\n <Button variant=\"ghost\" size=\"icon-sm\" onClick={onLogout}>\n <LogOutIcon className=\"h-5 w-5\" />\n </Button>\n )}\n </div>\n </>\n );\n}\n","import { Switch } from \"@/src/ui/switch\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { CheckCircleIcon, TriangleAlertIcon } from \"lucide-react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type {\n NotificationGroup,\n ComponentClassNames,\n CustomizationTexts,\n} from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { HowOftenComponent } from \"./HowOftenComponent\";\nimport { rpcProvider, useQuery } from \"@/src/rpc-provider\";\nimport { NotificationGroupHowOften } from \"@/src/gen/proto/common/v1/push_notifications_pb\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\n\ninterface NotificationGroupsListProps {\n groups: NotificationGroup[];\n hiddenGroupIds?: string[];\n isManaging?: boolean;\n onToggle: (groupID: string) => void;\n onCheckAll: () => void;\n onUpdate?: () => void;\n isUpdating?: boolean;\n wasChanged?: boolean;\n isUserGroupsUpdated?: boolean;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function NotificationGroupsList({\n groups = [],\n isManaging,\n onToggle,\n onCheckAll,\n onUpdate,\n isUpdating,\n wasChanged,\n isUserGroupsUpdated,\n className,\n texts,\n}: NotificationGroupsListProps) {\n const [groupsParent] = useAutoAnimate();\n const [updateGroupsParent] = useAutoAnimate();\n\n const hasNoSelection =\n groups.filter((group) => group.isOn === false).length > 0;\n const hasUnchecked =\n groups.filter((group) => group.isOn === false).length > 0;\n\n if (groups.length <= 1 && isManaging != true) {\n return null;\n }\n\n const content = (\n <div\n ref={groupsParent}\n className={cn(\"my-5 flex flex-col gap-3\", className?.groupsList)}\n >\n {groups.map((group) => (\n <div\n id={group.id}\n role=\"button\"\n key={group.id}\n className={cn(\n group.isOn\n ? \"bg-neutral-50 hover:bg-transparent shadow-sm border-transparent dark:bg-neutral-800\"\n : \"border-neutral-200 hover:bg-neutral-50 dark:hover:border-neutral-800 shadow-sm dark:border-neutral-800\",\n \"active:bg-beige-300 flex w-full cursor-pointer items-center gap-3 rounded-xl border px-3 py-2 transition active:dark:bg-neutral-900\",\n className?.groupItem\n )}\n onClick={(e) => {\n if (e.target instanceof HTMLButtonElement) {\n return;\n }\n onToggle(group.id);\n }}\n >\n <Switch\n checked={group.isOn}\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-700\"\n onCheckedChange={() => {\n onToggle(group.id);\n }}\n />\n <div className=\"flex flex-col items-start justify-start\">\n <p className=\"font-medium text-sm\">{group.name}</p>\n {group.description && (\n <p className=\"text-xs font-light\">{group.description}</p>\n )}\n </div>\n <div className=\"grow\"></div>\n {group.howOften && <HowOftenComponent regularity={group.howOften} />}\n </div>\n ))}\n <div className=\"flex gap-2\">\n {isManaging === true && (\n <>\n <div\n ref={updateGroupsParent}\n className=\"flex flex-col items-start justify-start\"\n >\n {wasChanged && (\n <Button\n variant=\"default\"\n size=\"sm\"\n className=\"relative\"\n disabled={isUpdating}\n onClick={onUpdate}\n >\n {texts?.groupsUpdateButton ??\n DEFAULT_TEXTS.groupsUpdateButton}\n {isUpdating && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n )}\n {isUserGroupsUpdated && (\n <p className=\"mt-3 flex items-center gap-2 text-sm text-green-500\">\n <CheckCircleIcon color=\"var(--color-green-500\" size={16} />{\" \"}\n {texts?.groupsUpdateSuccess ??\n DEFAULT_TEXTS.groupsUpdateSuccess}\n </p>\n )}\n </div>\n <div className=\"grow\"></div>\n </>\n )}\n {hasUnchecked && (\n <div className=\"flex justify-start\">\n <Button\n className=\"cursor-pointer dark:bg-neutral-700\"\n onClick={onCheckAll}\n size=\"sm\"\n variant=\"secondary\"\n type=\"button\"\n >\n {texts?.groupsSelectAllButton ??\n DEFAULT_TEXTS.groupsSelectAllButton}\n </Button>\n </div>\n )}\n </div>\n {hasNoSelection && (\n <div className=\"flex text-left gap-2 text-xs text-yellow-500\">\n <TriangleAlertIcon color=\"orange\" size={16} />\n {texts?.groupsNoSelectionWarning ??\n DEFAULT_TEXTS.groupsNoSelectionWarning}\n </div>\n )}\n </div>\n );\n\n if (isManaging == true) {\n return (\n <Card className=\"mt-5 text-left\">\n <CardHeader>\n <CardTitle>\n {texts?.groupsTitle ?? DEFAULT_TEXTS.groupsTitle}\n </CardTitle>\n </CardHeader>\n <CardContent>{content}</CardContent>\n </Card>\n );\n }\n\n return content;\n}\n","import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Popover({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />\n}\n\nfunction PopoverTrigger({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />\n}\n\nfunction PopoverContent({\n className,\n align = \"center\",\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden\",\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n )\n}\n\nfunction PopoverAnchor({\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />\n}\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }\n","import { Popover, PopoverContent, PopoverTrigger } from \"@/src/ui/popover\";\nimport { ClockIcon } from \"lucide-react\";\n\nexport function HowOftenComponent({ regularity }: { regularity: string }) {\n let text = \"\";\n switch (regularity) {\n case \"rarely\":\n text = \"rzadko\";\n break;\n case \"often\":\n text = \"często\";\n break;\n case \"very_often\":\n text = \"codzienne\";\n break;\n }\n\n return (\n <Popover>\n <PopoverTrigger\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n <button\n type=\"button\"\n className=\"flex w-[30%] cursor-help flex-col items-center justify-center text-xs md:w-[25%] xl:w-[20%]\"\n >\n <ClockIcon size={12} />\n <span>{text}</span>\n </button>\n </PopoverTrigger>\n <PopoverContent className=\"w-80\">\n <div className=\"grid gap-4\">\n <div className=\"space-y-2\">\n <h4 className=\"leading-none font-medium\">Co to oznacza?</h4>\n <ul className=\"list-inside list-disc text-sm\">\n <li>\n <span className=\"font-semibold\">Rzadko</span> – powiadomienia\n będą wysyłane maksymalnie kilka razy w miesiącu.\n </li>\n <li>\n <span className=\"font-semibold\">Często</span> – powiadomienia\n mogę być wysyłane kilka razy w tygodniu.\n </li>\n <li>\n <span className=\"font-semibold\">Codzienne</span> – powiadomienia\n będą wysyłane nawet codziennie.\n </li>\n </ul>\n </div>\n <div className=\"grid gap-2\"></div>\n </div>\n </PopoverContent>\n </Popover>\n );\n}\n","import { cn } from \"@/src/lib/utils\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { HOST } from \"../checkout/constants\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\n\ninterface QRCodeSectionProps {\n showQRCode?: boolean;\n isManaging?: boolean;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function QRCodeSection({\n showQRCode = true,\n isManaging: _isManaging,\n className,\n texts,\n}: QRCodeSectionProps) {\n const isBrowser = typeof window !== \"undefined\";\n const darkMode = isBrowser\n ? window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches\n ? true\n : false\n : false;\n\n function getURL(isBrowser: boolean) {\n if (isBrowser) {\n return window.location.href;\n }\n return \"\";\n }\n\n if (!showQRCode) {\n return null;\n }\n\n return (\n <Card\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.qrCodeSection\n )}\n >\n <CardHeader>\n <CardTitle\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.qrCodeTitle\n )}\n >\n {texts?.qrCodeSubtitle ?? DEFAULT_TEXTS.qrCodeSubtitle}\n {\" \" + (texts?.qrCodeTitle ?? DEFAULT_TEXTS.qrCodeTitle)}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"flex flex-col items-center gap-2\">\n <div className=\"mt-1.5 mb-3 flex items-center gap-x-2\">\n <a\n href=\"https://apps.apple.com/us/app/bitsnap/id6741902807\"\n target=\"_blank\"\n className=\"max-w-28 flex-1 basis-1/2 lg:max-w-36\"\n >\n <img\n className=\"h-auto w-full\"\n src={HOST + \"/app-store-logo.png\"}\n alt=\"Download on App Store\"\n />\n </a>\n <a\n href=\"https://play.google.com/store/apps/details?id=com.bitsnap.Bitsnap&pli=1\"\n target=\"_blank\"\n className=\"max-w-28 flex-1 basis-1/2 lg:max-w-36\"\n >\n <img\n className=\"h-auto w-full\"\n src={HOST + \"/google-play-logo.png\"}\n alt=\"Get in on Google Play\"\n />\n </a>\n </div>\n {isBrowser && (\n <div className=\"flex items-center justify-center\">\n <div\n className={cn(\n \"flex min-w-[40%] flex-col items-center gap-2 rounded-xl bg-white p-2 dark:bg-neutral-900\",\n className?.qrCodeContainer\n )}\n >\n <img\n className=\"mt-3 w-[80%] p-1 pt-3\"\n src={\n HOST +\n `/api/qr-gen?url=${getURL(isBrowser)}&bgColor=${\n !darkMode ? \"F6F4F0\" : \"171717\"\n }&textColor=${!darkMode ? \"000000\" : \"ffffff\"}&margin=0`\n }\n />\n <p className=\"text-xs md:text-sm\">\n {texts?.qrCodeScanText ?? DEFAULT_TEXTS.qrCodeScanText}\n </p>\n </div>\n </div>\n )}\n </CardContent>\n </Card>\n );\n}\n","import { useState } from \"react\";\nimport { isValidPhoneNumber } from \"react-phone-number-input\";\nimport { cn } from \"@/src/lib/utils\";\nimport { rpcProvider, useMutation } from \"src/rpc-provider\";\nimport { FailureMessage } from \"@/src/gen/proto/dashboard/v1/notifications_pb\";\nimport type {\n ComponentClassNames,\n CustomizationTexts,\n NotificationGroup,\n} from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { FormInput } from \"./FormInput\";\nimport type { ReactNode } from \"react\";\nimport { NotificationGroupsList } from \"./NotificationGroupsList\";\n\nconst emailRegex =\n /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\ninterface AddUserToGroupsProps {\n slug: string;\n groups: NotificationGroup[];\n isUpdating?: boolean;\n wasChanged?: boolean;\n onToggle?: (id: string) => void;\n onCheckAll?: () => void;\n showPhoneInput?: boolean;\n agreementText?: string | ReactNode;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n onSuccess?: (\n userAlreadyExists: boolean,\n userID: string | undefined,\n accessToken: string | undefined\n ) => void;\n}\n\nexport function AddUserToGroups({\n groups,\n onToggle,\n onCheckAll,\n slug,\n showPhoneInput = false,\n agreementText,\n className,\n texts,\n isUpdating,\n wasChanged,\n onSuccess,\n}: AddUserToGroupsProps) {\n const [errMsg, setErrMsg] = useState(\"\");\n const [warnMsg, setWarnMsg] = useState(\"\");\n const [isSubmited, setIsSubmited] = useState(false);\n const [agreementLack, setAgreementLack] = useState(false);\n const [emailLack, setEmailLack] = useState(false);\n const {\n mutateAsync: createNotificationUserMutation,\n isPending: isCreateNotificationUserPending,\n } = useMutation(rpcProvider.notifications.createNotificationUser);\n\n function validatePhoneNumber(phone: string): boolean {\n if (phone == null) {\n return false;\n }\n return isValidPhoneNumber(phone, \"PL\");\n }\n\n async function save(email: string, phone: string, agreement: boolean) {\n setErrMsg(\"\");\n setWarnMsg(\"\");\n setEmailLack(false);\n setIsSubmited(false);\n setAgreementLack(false);\n\n if (!agreement) {\n setAgreementLack(true);\n const msg = \"Zgoda w tym przypadku jest wymagana.\";\n setErrMsg(msg);\n return;\n }\n\n if (emailRegex.test(email) === false) {\n setErrMsg(\"Email jest nieprawidłowy.\");\n setEmailLack(true);\n return;\n }\n\n if (phone.length > 0) {\n if (validatePhoneNumber(phone) === false) {\n const msg =\n \"Numer telefonu może być nieprawidłowy. Zapisaliśmy go ale jeśli jest nieprawidłowy to wpisz jeszcze raz i kliknij przycisk.\";\n setWarnMsg(msg);\n }\n }\n\n try {\n const newNotificationUser = await createNotificationUserMutation({\n slug: slug,\n email: email,\n phone: phone,\n groups: groups.filter((el) => el.isOn == true).map((el) => el.id),\n mobileNotificationEnabled: true,\n emailNotificationEnabled: true,\n smsNotificationEnabled: true,\n });\n\n if (newNotificationUser.result.case === \"success\") {\n setIsSubmited(true);\n setTimeout(() => {\n onSuccess?.(\n false,\n newNotificationUser.userId,\n newNotificationUser.accessToken\n );\n }, 1000);\n return;\n } else {\n setIsSubmited(true);\n const failureMessage = newNotificationUser.result.value;\n\n if (failureMessage != null) {\n if (\n failureMessage == FailureMessage.NOTIFICATION_USER_ALREADY_EXIST\n ) {\n onSuccess?.(true, undefined, undefined);\n return;\n }\n console.log(`Code error: ${FailureMessage[failureMessage]}`);\n setErrMsg(\"Wystąpił błąd: \" + FailureMessage[failureMessage]);\n return;\n }\n\n return;\n }\n } catch (e) {\n setErrMsg(\"Wystąpił błąd podczas zapisywania. Spróbuj ponownie.\");\n console.log(`Error: ${e}`);\n }\n }\n\n const text = texts?.formTitle ?? DEFAULT_TEXTS.formTitle;\n\n return (\n <div\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.formSection\n )}\n >\n {text.length > 0 && (\n <h3\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.formTitle\n )}\n >\n {text}\n </h3>\n )}\n\n <NotificationGroupsList\n groups={groups}\n isManaging={false}\n onToggle={onToggle ?? (() => {})}\n onCheckAll={onCheckAll ?? (() => {})}\n isUpdating={isUpdating ?? false}\n wasChanged={wasChanged ?? false}\n isUserGroupsUpdated={false}\n className={className}\n texts={texts}\n />\n\n <FormInput\n errMsg={errMsg}\n emailLack={emailLack}\n warnMsg={warnMsg}\n submit={save}\n isLoading={isCreateNotificationUserPending}\n isSubmited={isSubmited}\n agreementLack={agreementLack}\n showPhoneInput={showPhoneInput}\n agreementText={\n agreementText ?? texts?.agreementText ?? DEFAULT_TEXTS.agreementText\n }\n className={className}\n texts={texts}\n />\n </div>\n );\n}\n","import { Input } from \"@/src/ui/input\";\nimport { cn } from \"@/src/lib/utils\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Label } from \"@radix-ui/react-label\";\nimport {\n CheckCircleIcon,\n CircleAlertIcon,\n TriangleAlertIcon,\n} from \"lucide-react\";\nimport { useState, type FormEvent } from \"react\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport type { ReactNode } from \"react\";\n\ninterface FormInputProps {\n isLoading: boolean;\n submit: (email: string, phone: string, agreement: boolean) => void;\n errMsg: string;\n agreementLack?: boolean;\n emailLack?: boolean;\n warnMsg: string;\n isSubmited: boolean;\n showPhoneInput?: boolean;\n agreementText?: string | ReactNode;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function FormInput({\n submit,\n isLoading,\n errMsg,\n emailLack,\n warnMsg,\n isSubmited,\n agreementLack,\n showPhoneInput = false,\n agreementText,\n className,\n texts,\n}: FormInputProps) {\n const [email, setEmail] = useState(\"\");\n const [phone, setPhone] = useState(\"\");\n const [isChecked, setIsChecked] = useState(false);\n\n const [parent] = useAutoAnimate();\n\n function submitForm(e: FormEvent) {\n e.preventDefault();\n submit(email, phone, isChecked);\n }\n\n return (\n <form\n ref={parent}\n onSubmit={submitForm}\n className={cn(\"flex flex-col gap-3 text-left\", className?.formContainer)}\n >\n <div className=\"flex flex-col gap-1 text-left\">\n <Label className=\"text-sm\" htmlFor=\"bts-notifications-form-email\">\n {texts?.formEmailLabel ?? DEFAULT_TEXTS.formEmailLabel}\n </Label>\n <Input\n value={email}\n onChange={(newVal) => {\n setEmail(newVal.currentTarget.value);\n }}\n id=\"bts-notifications-form-email\"\n className={cn(emailLack === true ? \"border-red-400\" : \"\")}\n type=\"email\"\n placeholder={\n texts?.formEmailPlaceholder ?? DEFAULT_TEXTS.formEmailPlaceholder\n }\n />\n </div>\n\n {showPhoneInput && (\n <div className=\"flex flex-col gap-1 text-left\">\n <Label className=\"text-sm\" htmlFor=\"bts-notifications-form-phone\">\n {texts?.formPhoneLabel ?? DEFAULT_TEXTS.formPhoneLabel}{\" \"}\n <span className=\"text-neutral-500 dark:text-neutral-500\">\n {texts?.formPhoneOptional ?? DEFAULT_TEXTS.formPhoneOptional}\n </span>\n </Label>\n <Input\n value={phone}\n onChange={(newVal) => {\n setPhone(newVal.currentTarget.value);\n }}\n id=\"bts-notifications-form-phone\"\n className=\"\"\n type=\"tel\"\n autoComplete=\"tel\"\n autoCorrect=\"off\"\n placeholder={\n texts?.formPhonePlaceholder ?? DEFAULT_TEXTS.formPhonePlaceholder\n }\n />\n </div>\n )}\n <div className=\"flex items-start gap-x-1.5\">\n <input\n className=\"cursor-pointer\"\n id=\"bts-notifications-form-marketing-consent\"\n type=\"checkbox\"\n checked={isChecked}\n onChange={() => {\n setIsChecked(!isChecked);\n }}\n />\n <label\n htmlFor=\"bts-notifications-form-marketing-consent\"\n className={cn(\n \"cursor-pointer text-xs leading-4 transition-colors md:text-sm md:leading-4\",\n agreementLack === true ? \"text-yellow-700\" : \"\"\n )}\n >\n {agreementText}\n </label>\n </div>\n {errMsg.length > 0 && (\n <p className=\"mb-3 flex items-center gap-1 text-sm text-red-400\">\n <TriangleAlertIcon color=\"#ff6467\" size={16} /> {errMsg}\n </p>\n )}\n {warnMsg.length > 0 && (\n <p className=\"mb-3 flex items-center gap-1 text-sm text-amber-400\">\n <CircleAlertIcon color=\"var(--color-amber-400)\" size={16} /> {warnMsg}\n </p>\n )}\n {isSubmited == false && (\n <div className=\"flex justify-start\">\n <Button\n variant=\"default\"\n disabled={isLoading}\n className={cn(\n isLoading ? \"cursor-not-allowed text-transparent\" : \"\",\n \"relative\"\n )}\n >\n {texts?.formSubmitButton ?? DEFAULT_TEXTS.formSubmitButton}\n {isLoading && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n </div>\n )}\n {isSubmited && (\n <div className=\"flex items-center gap-3 text-sm text-green-400\">\n <CheckCircleIcon size={16} />{\" \"}\n {texts?.formSuccessMessage ?? DEFAULT_TEXTS.formSuccessMessage}\n </div>\n )}\n </form>\n );\n}\n","import { useEffect, useState } from \"react\";\nimport { Skeleton } from \"@/src/ui/skeleton\";\nimport { Switch } from \"@/src/ui/switch\";\nimport { cn } from \"@/src/lib/utils\";\nimport { Label } from \"@radix-ui/react-label\";\nimport { MessageCircleWarningIcon } from \"lucide-react\";\nimport { rpcProvider, useMutation, useQuery } from \"src/rpc-provider\";\nimport { useDebouncedCallback } from \"use-debounce\";\nimport { UnsubscribeDialog } from \"./UnsubscribeDialog\";\nimport { Button } from \"@/src/ui/button\";\nimport { Spinner } from \"@/src/ui/spinner\";\nimport type { ComponentClassNames, CustomizationTexts } from \"./types\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/src/ui/card\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\n\ninterface ManageMyDataProps {\n accessToken: string;\n slug: string;\n userID: string;\n className?: ComponentClassNames;\n texts?: CustomizationTexts;\n}\n\nexport function ManageMyData({\n accessToken,\n slug,\n userID,\n className,\n texts,\n}: ManageMyDataProps) {\n const [parent] = useAutoAnimate();\n const [parentCard] = useAutoAnimate();\n const { mutateAsync: deleteMyData, isPending: isDeleting } = useMutation(\n rpcProvider.notifications.deleteNotificationUser\n );\n const { mutateAsync: updateNotificationUser, isPending: isUpdating } =\n useMutation(rpcProvider.notifications.updateNotificationUser);\n\n const { data: userSettings, isFetching: isLoading } = useQuery(\n rpcProvider.notifications.getNotificationUserSettings,\n {\n userId: userID,\n slug: slug,\n accessToken: accessToken,\n }\n );\n\n const [email, setEmail] = useState(false);\n const [phone, setPhone] = useState(false);\n const [isDataUpdated, setIsDataUpdated] = useState(false);\n const [push, setPush] = useState(false);\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n\n const details =\n userSettings?.result.case === \"success\"\n ? userSettings?.result?.value\n : undefined;\n\n function deleteData() {\n setIsDialogOpen(true);\n }\n\n async function handleConfirmDelete() {\n await deleteMyData({\n accessToken: accessToken,\n slug: slug,\n userId: userID,\n });\n setIsDialogOpen(false);\n }\n\n async function updateData() {\n await updateNotificationUser({\n accessToken: accessToken,\n slug: slug,\n notificationUserId: userID,\n mobileNotificationEnabled: push,\n emailNotificationEnabled: email,\n smsNotificationEnabled: phone,\n });\n setIsDataUpdated(true);\n setTimeout(() => {\n setIsDataUpdated(false);\n }, 3000);\n }\n const debouncedUpdateData = useDebouncedCallback((_: boolean) => {\n updateData();\n }, 300);\n\n useEffect(() => {\n const details =\n userSettings?.result.case === \"success\"\n ? userSettings?.result?.value\n : undefined;\n\n setEmail(details?.emailNotificationEnabled ?? false);\n setPhone(details?.smsNotificationEnabled ?? false);\n setPush(details?.mobileNotificationEnabled ?? false);\n }, [userSettings]);\n\n function setData(key: \"email\" | \"phone\" | \"push\", value: boolean) {\n if (key === \"email\") {\n setEmail(value);\n }\n if (key === \"phone\") {\n setPhone(value);\n }\n if (key === \"push\") {\n setPush(value);\n }\n debouncedUpdateData(true);\n }\n\n return (\n <div\n className={cn(\n \"bg-beige-100 rounded-xl p-4 dark:bg-neutral-700\",\n className?.manageDataSection\n )}\n >\n <div className=\"flex justify-start\">\n <h3\n className={cn(\n \"mb-3 text-base font-medium lg:text-lg\",\n className?.manageDataTitle\n )}\n >\n {texts?.manageDataTitle ?? DEFAULT_TEXTS.manageDataTitle}\n </h3>\n </div>\n\n {isLoading ? (\n <Skeleton className=\"h-64 w-full\" />\n ) : (\n <Card ref={parentCard} className={cn(isUpdating && \"relative\")}>\n <CardHeader>\n <CardTitle>\n <p className=\"text-sm text-left\">\n {texts?.manageDataDescription ??\n DEFAULT_TEXTS.manageDataDescription}\n </p>\n </CardTitle>\n </CardHeader>\n <CardContent ref={parent}>\n <div\n className={cn(\n isUpdating && \"opacity-50 pointer-events-none\",\n \"flex flex-col gap-2\"\n )}\n >\n <div className=\"flex flex-col items-start gap-5 gap-x-2\">\n {details?.emailNotificationAvailable && (\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"email-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={email}\n onCheckedChange={() => {\n setData(\"email\", !email);\n }}\n />\n <Label htmlFor=\"email-enabled\" className=\"text-sm\">\n Email\n </Label>\n </div>\n )}\n {details?.smsNotificationAvailable && (\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"sms-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={phone}\n onCheckedChange={() => {\n setData(\"phone\", !phone);\n }}\n />\n <Label htmlFor=\"sms-enabled\" className=\"text-sm\">\n SMS\n </Label>\n </div>\n )}\n {details?.mobileNotificationAvailable && (\n <>\n <div className=\"flex items-center gap-3\">\n <Switch\n id=\"push-enabled\"\n className=\"data-[state=checked]:bg-blue-500 dark:data-[state=unchecked]:bg-neutral-600\"\n checked={push}\n onCheckedChange={() => {\n setData(\"push\", !push);\n }}\n />\n <Label htmlFor=\"push-enabled\" className=\"text-sm\">\n Powiadomienia na telefon\n </Label>\n </div>\n {details?.hasUserInstalledApp === false && (\n <div className=\"flex items-center gap-3\">\n <MessageCircleWarningIcon\n color=\"var(--color-amber-500)\"\n size={26}\n />\n <p className=\"text-xs text-amber-500\">\n Wygląda na to, że nie masz zainstalowanej aplikacji\n mobilnej. Zainstaluj i wyraź zgodę na otrzymywanie\n powiadomień na telefon.\n </p>\n </div>\n )}\n </>\n )}\n </div>\n </div>\n\n <div className=\"mt-5 flex flex-col gap-2 text-left\">\n <hr />\n {isDataUpdated && (\n <p className=\"text-xs text-green-500\">\n {texts?.manageDataUpdatedMessage ??\n DEFAULT_TEXTS.manageDataUpdatedMessage}\n </p>\n )}\n <div className=\"flex items-center gap-x-2\">\n <Button\n size=\"sm\"\n variant=\"link\"\n className={cn(\n \"pl-0 ml-0\",\n isDeleting && \"cursor-not-allowed\"\n )}\n onClick={deleteData}\n >\n {texts?.manageDataUnsubscribeButton ??\n DEFAULT_TEXTS.manageDataUnsubscribeButton}\n {isDeleting && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n )}\n </Button>\n </div>\n </div>\n </CardContent>\n {isUpdating && (\n <div className=\"bg-black/30 absolute inset-0 rounded-xl\">\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <Spinner />\n </div>\n </div>\n )}\n </Card>\n )}\n <UnsubscribeDialog\n open={isDialogOpen}\n onOpenChange={setIsDialogOpen}\n onConfirm={handleConfirmDelete}\n isDeleting={isDeleting}\n />\n </div>\n );\n}\n","import { cn } from \"../../lib/utils\";\nimport { TriangleAlertIcon, XIcon } from \"lucide-react\";\nimport { createPortal } from \"react-dom\";\nimport { useEffect, useState } from \"react\";\nimport { Button } from \"@/src/ui/button\";\n\ninterface UnsubscribeDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onConfirm: () => void;\n isDeleting?: boolean;\n}\n\nexport function UnsubscribeDialog({\n open,\n onOpenChange,\n onConfirm,\n isDeleting = false,\n}: UnsubscribeDialogProps) {\n const [mounted, setMounted] = useState(false);\n\n useEffect(() => {\n setMounted(true);\n return () => setMounted(false);\n }, []);\n\n useEffect(() => {\n if (open) {\n document.body.style.overflow = \"hidden\";\n } else {\n document.body.style.overflow = \"\";\n }\n return () => {\n document.body.style.overflow = \"\";\n };\n }, [open]);\n\n if (!mounted || !open) {\n return null;\n }\n\n const handleBackdropClick = (e: React.MouseEvent<HTMLDivElement>) => {\n if (e.target === e.currentTarget) {\n onOpenChange(false);\n }\n };\n\n const handleConfirm = () => {\n onConfirm();\n };\n\n return createPortal(\n <div\n className=\"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 p-4\"\n onClick={handleBackdropClick}\n >\n <div\n className={cn(\n \"relative w-full max-w-md rounded-2xl bg-white p-6 shadow-lg\",\n \"dark:bg-neutral-800\",\n \"animate-in fade-in-0 zoom-in-95 duration-200\"\n )}\n onClick={(e) => e.stopPropagation()}\n >\n <button\n onClick={() => onOpenChange(false)}\n className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-neutral-950 focus:ring-offset-2 disabled:pointer-events-none dark:ring-offset-neutral-950 dark:focus:ring-neutral-300\"\n disabled={isDeleting}\n >\n <XIcon className=\"h-4 w-4\" />\n <span className=\"sr-only\">Zamknij</span>\n </button>\n\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-start gap-3\">\n <div className=\"flex-shrink-0\">\n <TriangleAlertIcon\n className=\"h-6 w-6 text-amber-500\"\n aria-hidden=\"true\"\n />\n </div>\n <div className=\"flex-1\">\n <h2 className=\"text-lg font-semibold text-black dark:text-neutral-100\">\n Czy na pewno chcesz się wypisać?\n </h2>\n </div>\n </div>\n\n <p className=\"text-sm text-neutral-600 dark:text-neutral-400\">\n Kliknięcie tego przycisku spowoduje wypisanie z wszelkich\n powiadomień i grup, które zapisałeś.\n </p>\n\n <div className=\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\">\n <Button\n type=\"button\"\n variant=\"ghost\"\n onClick={() => onOpenChange(false)}\n disabled={isDeleting}\n className=\"sm:min-w-[100px]\"\n >\n Anuluj\n </Button>\n <Button\n type=\"button\"\n variant=\"destructive\"\n onClick={handleConfirm}\n disabled={isDeleting}\n className={cn(\n isDeleting && \"cursor-not-allowed text-transparent\",\n \"relative sm:min-w-[100px]\"\n )}\n >\n Usuń\n {isDeleting && (\n <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2\">\n <div className=\"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent\" />\n </div>\n )}\n </Button>\n </div>\n </div>\n </div>\n </div>,\n document.body\n );\n}\n","import { useState } from \"react\";\nimport { rpcProvider, RpcProvider, useMutation } from \"src/rpc-provider\";\nimport { getProjectID } from \"../checkout/CartProvider\";\nimport { Input } from \"@/src/ui/input\";\nimport { Label } from \"@/src/ui/label\";\nimport { Button } from \"@/src/ui/button\";\nimport { InputOTP, InputOTPGroup, InputOTPSlot } from \"@/src/ui/input-otp\";\nimport { cn } from \"@/src/lib/utils\";\nimport { DEFAULT_TEXTS } from \"./constants\";\nimport type { CustomizationTexts } from \"./types\";\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/src/ui/card\";\nimport { ArrowLeft, X } from \"lucide-react\";\nimport { useAutoAnimate } from \"@formkit/auto-animate/react\";\nimport { Dialog, DialogContent } from \"@/src/ui/dialog\";\nimport { ConnectError } from \"@connectrpc/connect\";\nimport { Spinner } from \"@/src/ui/spinner\";\n\nexport type LoginScreenTexts = Pick<\n CustomizationTexts,\n | \"loginTitle\"\n | \"loginDescription\"\n | \"loginEmailLabel\"\n | \"loginEmailPlaceholder\"\n | \"loginSendCodeButton\"\n | \"loginSendingButton\"\n | \"loginCodeLabel\"\n | \"loginCodeSentMessage\"\n | \"loginIHaveCode\"\n | \"loginChangeEmailButton\"\n | \"loginResendCodeButton\"\n | \"loginInvalidEmailError\"\n | \"loginInvalidCodeError\"\n | \"loginSlugRequiredError\"\n | \"loginVerificationFailedError\"\n | \"loginSendEmailError\"\n | \"loginVerifyCodeError\"\n | \"loginResendEmailError\"\n>;\n\ninterface LoginScreenProps {\n /**\n * Unique identifier for the project (if not provided, productID will be used via CartProvider).\n */\n slug: string;\n\n /**\n * Callback function called when login is successful with the access token.\n */\n onSuccess?: (userID: string | undefined, accessToken: string) => void;\n\n /**\n * Callback function called when an error occurs.\n */\n onError?: (error: Error) => void;\n\n /**\n * Callback function called when the close button is clicked.\n */\n onClose?: () => void;\n\n /**\n * If true, the dialog is open.\n */\n isOpen: boolean;\n\n /**\n * Custom CSS class names for styling.\n */\n className?: string;\n\n /**\n * Custom texts used throughout the component for i18n or personalisation.\n */\n texts: LoginScreenTexts;\n}\n\nexport function LoginScreen({\n slug,\n onSuccess,\n onError,\n className: _className,\n isOpen,\n onClose,\n texts,\n}: LoginScreenProps) {\n const [parentContent] = useAutoAnimate();\n const [parentHeader] = useAutoAnimate();\n const [email, setEmail] = useState(\"\");\n const [code, setCode] = useState(\"\");\n const [isEmailSent, setIsEmailSent] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const { mutateAsync: verifyUserEmail, isPending: isVerifying } = useMutation(\n rpcProvider.notifications.verifyUserEmail\n );\n\n const handleSendEmail = async (e: React.FormEvent) => {\n e.preventDefault();\n setError(null);\n\n if (!email || !email.includes(\"@\")) {\n setError(texts.loginInvalidEmailError ?? \"\");\n return;\n }\n\n try {\n await verifyUserEmail({\n email,\n slug: slug,\n });\n setIsEmailSent(true);\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginSendEmailError);\n setError(error.message);\n onError?.(error);\n }\n };\n\n const handleVerifyCode = async (value: string) => {\n setCode(value);\n setError(null);\n\n // Only verify when all 6 digits are entered\n if (value.length === 6) {\n try {\n const response = await verifyUserEmail({\n email: undefined,\n code: value,\n slug: slug,\n });\n\n if (response.ok && response.accessToken) {\n onSuccess?.(response.userId, response.accessToken);\n } else {\n setError(texts.loginVerificationFailedError ?? \"\");\n onError?.(new Error(texts.loginVerificationFailedError));\n }\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginVerifyCodeError);\n if (error.message.includes(\"Invalid code\")) {\n setError(texts.loginInvalidCodeError ?? error.message);\n setCode(\"\");\n return;\n }\n setError(error.message);\n onError?.(error);\n // Clear the code on error so user can retry\n setCode(\"\");\n }\n }\n };\n\n const handleResendEmail = async () => {\n setCode(\"\");\n setError(null);\n\n if (!email || !slug) {\n setError(texts.loginSlugRequiredError ?? \"\");\n return;\n }\n\n try {\n await verifyUserEmail({\n email,\n slug: slug,\n });\n // Keep isEmailSent as true, just clear the code\n } catch (err) {\n const error =\n err instanceof Error ? err : new Error(texts.loginResendEmailError);\n setError(error.message);\n onError?.(error);\n }\n };\n\n const handleChangeEmail = () => {\n setIsEmailSent(false);\n setCode(\"\");\n setError(null);\n };\n\n return (\n <Dialog open={isOpen} onOpenChange={onClose}>\n <DialogContent className=\"sm:max-w-[425px] min-h-[250px]\">\n <div className=\"flex flex-col min-h-[250px] h-full\">\n {/* Header */}\n <div ref={parentHeader} className=\"flex items-start gap-2 mb-2\">\n {isEmailSent && (\n <Button\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={() => {\n setIsEmailSent(false);\n }}\n >\n <ArrowLeft className=\"h-5 w-5\" />\n </Button>\n )}\n <div>\n <CardTitle>\n {isEmailSent\n ? texts.loginCodeLabel ?? \"\"\n : texts.loginTitle ?? \"\"}\n </CardTitle>\n </div>\n </div>\n {/* Description */}\n <CardDescription className=\"mb-4\">\n {isEmailSent ? (\n <>\n {texts.loginCodeSentMessage ?? \"\"} {email}\n </>\n ) : (\n texts.loginDescription ?? \"\"\n )}\n </CardDescription>\n\n {/* Main form area */}\n <div className=\"flex-1 flex flex-col\">\n {!isEmailSent ? (\n <form onSubmit={handleSendEmail} className=\"flex flex-col flex-1\">\n <div className=\"space-y-2\">\n <Label htmlFor=\"email\">{texts.loginEmailLabel ?? \"\"}</Label>\n <Input\n id=\"email\"\n type=\"email\"\n placeholder={texts.loginEmailPlaceholder ?? \"\"}\n value={email}\n onChange={(e: React.ChangeEvent<HTMLInputElement>) =>\n setEmail(e.target.value)\n }\n required\n disabled={isVerifying}\n aria-invalid={error ? \"true\" : \"false\"}\n />\n </div>\n {error && (\n <div\n className=\"text-sm text-destructive mt-2 mb-1\"\n role=\"alert\"\n >\n {error}\n </div>\n )}\n <div className=\"grow\" />\n {/* Always pin buttons to the bottom */}\n <div className=\"flex flex-col items-start gap-0 pt-2\">\n <Button type=\"submit\" size=\"sm\" disabled={isVerifying}>\n {isVerifying\n ? texts.loginSendingButton ?? \"\"\n : texts.loginSendCodeButton ?? \"\"}\n </Button>\n <Button\n type=\"button\"\n variant=\"link\"\n className=\"ml-0 pl-0\"\n size=\"sm\"\n onClick={() => {\n setIsEmailSent(true);\n }}\n >\n {texts.loginIHaveCode ?? \"\"}\n </Button>\n </div>\n </form>\n ) : (\n <form\n onSubmit={(e) => e.preventDefault()}\n className=\"flex flex-col flex-1\"\n >\n <div className=\"space-y-2\">\n <Label>{texts.loginCodeLabel ?? \"\"}</Label>\n <InputOTP\n maxLength={6}\n value={code}\n onChange={handleVerifyCode}\n disabled={isVerifying}\n >\n <InputOTPGroup>\n <InputOTPSlot index={0} />\n <InputOTPSlot index={1} />\n <InputOTPSlot index={2} />\n <InputOTPSlot index={3} />\n <InputOTPSlot index={4} />\n <InputOTPSlot index={5} />\n </InputOTPGroup>\n </InputOTP>\n {isVerifying && <Spinner />}\n </div>\n {error && (\n <div\n className=\"text-sm text-destructive mt-2 mb-1\"\n role=\"alert\"\n >\n {error}\n </div>\n )}\n <div className=\"grow\" />\n {/* Always pin buttons to the bottom */}\n <div className=\"flex flex-col items-start gap-2 pt-2\">\n {email.length > 0 && (\n <Button\n variant=\"link\"\n size=\"sm\"\n onClick={handleResendEmail}\n disabled={isVerifying}\n className=\"flex-1 ml-0 pl-0\"\n >\n {texts.loginResendCodeButton ?? \"\"}\n </Button>\n )}\n <Button\n variant=\"link\"\n size=\"sm\"\n onClick={handleChangeEmail}\n disabled={isVerifying}\n className=\"flex-1 ml-0 pl-0\"\n >\n {texts.loginChangeEmailButton ?? \"\"}\n </Button>\n </div>\n </form>\n )}\n </div>\n </div>\n </DialogContent>\n </Dialog>\n );\n}\n\nfunction Wrapper(props: LoginScreenProps) {\n return (\n <RpcProvider>\n <LoginScreen {...props} />\n </RpcProvider>\n );\n}\n\nexport default Wrapper;\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { XIcon } from \"lucide-react\"\n\nimport { cn } from \"@/src/lib/utils\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Root>) {\n return <DialogPrimitive.Root data-slot=\"dialog\" {...props} />\n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {\n return <DialogPrimitive.Trigger data-slot=\"dialog-trigger\" {...props} />\n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Portal>) {\n return <DialogPrimitive.Portal data-slot=\"dialog-portal\" {...props} />\n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Close>) {\n return <DialogPrimitive.Close data-slot=\"dialog-close\" {...props} />\n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {\n return (\n <DialogPrimitive.Overlay\n data-slot=\"dialog-overlay\"\n className={cn(\n \"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Content> & {\n showCloseButton?: boolean\n}) {\n return (\n <DialogPortal data-slot=\"dialog-portal\">\n <DialogOverlay />\n <DialogPrimitive.Content\n data-slot=\"dialog-content\"\n className={cn(\n \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg\",\n className\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <DialogPrimitive.Close\n data-slot=\"dialog-close\"\n className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n >\n <XIcon />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n )}\n </DialogPrimitive.Content>\n </DialogPortal>\n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-header\"\n className={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"dialog-footer\"\n className={cn(\n \"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Title>) {\n return (\n <DialogPrimitive.Title\n data-slot=\"dialog-title\"\n className={cn(\"text-lg leading-none font-semibold\", className)}\n {...props}\n />\n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps<typeof DialogPrimitive.Description>) {\n return (\n <DialogPrimitive.Description\n data-slot=\"dialog-description\"\n className={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n","\"use client\";\n\nimport { Code, ConnectError, createClient, type Client } from \"@connectrpc/connect\";\nimport { createConnectTransport } from \"@connectrpc/connect-web\";\nimport { Environment } from \"../gen/proto/common/v1/environment_pb\";\nimport { ReturnsService } from \"../gen/proto/public/v1/returns_pb\";\nimport type {\n ReturnOrderDetail,\n ReturnRequestView,\n ReturnOrderSummary,\n} from \"../gen/proto/public/v1/returns_pb\";\nimport { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\nimport React, { createContext, useContext, useMemo, useRef, useState } from \"react\";\n\nexport type BitsnapReturnsProviderProps = {\n projectID: string;\n host?: string;\n environment?: Environment;\n children: React.ReactNode;\n};\n\ntype ReturnsContextValue = {\n projectID: string;\n host: string;\n environment: Environment;\n client: Client<typeof ReturnsService>;\n sessionToken?: string;\n setSession: (token?: string, expiresAt?: number) => void;\n expiresAt?: number;\n};\n\nconst ReturnsContext = createContext<ReturnsContextValue | null>(null);\n\n/** Provider for the returns hooks when building a custom customer flow. */\nexport function BitsnapReturnsProvider({\n projectID,\n host = \"https://bitsnap.pl\",\n environment = Environment.PRODUCTION,\n children,\n}: BitsnapReturnsProviderProps) {\n const scope = `${host.replace(/\\/$/, \"\")}|${projectID}|${environment}`;\n const [session, setSessionState] = useState<{ token: string; expiresAt?: number; scope: string }>();\n const sessionToken = session?.scope === scope ? session.token : undefined;\n const expiresAt = session?.scope === scope ? session.expiresAt : undefined;\n const [queryClient] = useState(() => new QueryClient({ defaultOptions: { queries: { staleTime: 0, refetchOnWindowFocus: true } } }));\n const client = useMemo(\n () =>\n createClient(\n ReturnsService,\n createConnectTransport({\n baseUrl: `${host.replace(/\\/$/, \"\")}/api/rpc`,\n useBinaryFormat: true,\n }),\n ),\n [host],\n );\n const contextValue = useMemo(\n () => ({\n projectID,\n host: host.replace(/\\/$/, \"\"),\n environment,\n client,\n sessionToken,\n setSession: (token?: string, expiry?: number) => setSessionState(\n token ? { token, expiresAt: expiry, scope } : undefined,\n ),\n expiresAt,\n }),\n [projectID, host, environment, client, sessionToken, expiresAt, scope],\n );\n\n return <QueryClientProvider client={queryClient}><ReturnsContext.Provider value={contextValue}>{children}</ReturnsContext.Provider></QueryClientProvider>;\n}\n\nfunction useReturnsContext() {\n const value = useContext(ReturnsContext);\n if (!value) throw new Error(\"Wrap returns hooks in BitsnapReturnsProvider.\");\n return value;\n}\n\nfunction handleSessionError(error: unknown, clear: () => void) {\n if (error instanceof ConnectError && error.code === Code.Unauthenticated) clear();\n throw error;\n}\n\nexport function useReturnSession() {\n const ctx = useReturnsContext();\n const start = useMutation({\n mutationFn: (email: string) =>\n ctx.client.startReturnSession({ projectId: ctx.projectID, email, environment: ctx.environment }),\n });\n const verify = useMutation({\n mutationFn: async ({ challengeId, code }: { challengeId: string; code: string }) => {\n const result = await ctx.client.verifyReturnSession({\n projectId: ctx.projectID,\n challengeId,\n code,\n environment: ctx.environment,\n });\n const expiry = result.expiresAt\n ? Number(result.expiresAt.seconds) * 1000 + result.expiresAt.nanos / 1_000_000\n : undefined;\n ctx.setSession(result.sessionToken, expiry);\n return result;\n },\n });\n const logout = () => {\n ctx.setSession(undefined);\n verify.reset();\n start.reset();\n };\n return { startSession: start.mutateAsync, verifySession: verify.mutateAsync, logout, isAuthenticated: Boolean(ctx.sessionToken && (!ctx.expiresAt || Date.now() < ctx.expiresAt)), starting: start.isPending, verifying: verify.isPending, error: start.error ?? verify.error };\n}\n\nexport function useReturnOrders(pageSize = 20, pageToken = \"\") {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, pageSize, pageToken, \"orders\"],\n enabled: Boolean(token && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.listReturnOrders({ projectId: ctx.projectID, sessionToken: token!, pageSize, pageToken }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport function useReturnableOrder(canonicalOrderID?: string) {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, canonicalOrderID, \"order\"],\n enabled: Boolean(token && canonicalOrderID && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.getReturnableOrder({ projectId: ctx.projectID, sessionToken: token!, canonicalOrderId: canonicalOrderID! }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport function useCreateReturn() {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n const queryClient = useQueryClient();\n return useMutation({\n mutationFn: (input: { canonicalOrderID: string; items: { lineId: string; quantity: number }[]; note?: string; idempotencyKey?: string }) => {\n if (!token || (ctx.expiresAt && Date.now() >= ctx.expiresAt)) {\n ctx.setSession(undefined);\n throw new Error(\"Verify your email to continue.\");\n }\n return ctx.client.createReturnRequest({\n projectId: ctx.projectID,\n sessionToken: token,\n canonicalOrderId: input.canonicalOrderID,\n items: input.items,\n note: input.note ?? \"\",\n idempotencyKey: input.idempotencyKey ?? globalThis.crypto.randomUUID(),\n }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined)));\n },\n onSuccess: async () => queryClient.invalidateQueries({ queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment] }),\n });\n}\n\nexport function useMyReturns(pageSize = 20, pageToken = \"\") {\n const ctx = useReturnsContext();\n const token = ctx.sessionToken;\n return useQuery({\n queryKey: [\"bitsnap-returns\", ctx.host, ctx.projectID, ctx.environment, pageSize, pageToken, \"mine\"],\n enabled: Boolean(token && (!ctx.expiresAt || Date.now() < ctx.expiresAt)),\n queryFn: () => ctx.client.listMyReturns({ projectId: ctx.projectID, sessionToken: token!, pageSize, pageToken }).catch((e) => handleSessionError(e, () => ctx.setSession(undefined))),\n });\n}\n\nexport type BitsnapReturnsProps = {\n projectID: string;\n host?: string;\n environment?: Environment;\n texts?: Partial<{\n title: string; email: string; sendCode: string; code: string; verify: string;\n orders: string; submit: string; note: string; loading: string; history: string;\n }>;\n theme?: { brandColor?: string };\n className?: string;\n};\n\nconst defaultTexts = {\n title: \"Request a return\", email: \"Email address\", sendCode: \"Send code\", code: \"Email code\",\n verify: \"Verify\", orders: \"Your orders\", submit: \"Submit return\", note: \"Note (optional)\",\n loading: \"Loading…\", history: \"My return requests\",\n};\n\nexport function BitsnapReturns(props: BitsnapReturnsProps) {\n return (\n <BitsnapReturnsProvider projectID={props.projectID} host={props.host} environment={props.environment}>\n <BitsnapReturnsForm {...props} />\n </BitsnapReturnsProvider>\n );\n}\n\nfunction BitsnapReturnsForm(props: BitsnapReturnsProps) {\n const texts = { ...defaultTexts, ...props.texts };\n const session = useReturnSession();\n const [orderPageToken, setOrderPageToken] = useState(\"\");\n const ordersQuery = useReturnOrders(20, orderPageToken);\n const mineQuery = useMyReturns();\n const create = useCreateReturn();\n const [email, setEmail] = useState(\"\");\n const [challengeID, setChallengeID] = useState(\"\");\n const [code, setCode] = useState(\"\");\n const [selectedOrder, setSelectedOrder] = useState<ReturnOrderSummary>();\n const [orderDetail, setOrderDetail] = useState<ReturnOrderDetail>();\n const [quantities, setQuantities] = useState<Record<string, number>>({});\n const [note, setNote] = useState(\"\");\n const [created, setCreated] = useState<ReturnRequestView>();\n const submittingRef = useRef(false);\n const idempotencyKeyRef = useRef<string | undefined>(undefined);\n const orderQuery = useReturnableOrder(selectedOrder?.canonicalOrderId);\n React.useEffect(() => { if (orderQuery.data?.order) setOrderDetail(orderQuery.data.order); }, [orderQuery.data]);\n const error = session.error ?? ordersQuery.error ?? orderQuery.error ?? create.error;\n const style = { \"--bitsnap-returns-brand\": props.theme?.brandColor ?? \"#111827\" } as React.CSSProperties;\n\n return (\n <section className={`bitsnap-returns ${props.className ?? \"\"}`} style={style} aria-live=\"polite\">\n <h2 className=\"mb-4 text-xl font-semibold\">{texts.title}</h2>\n {!session.isAuthenticated && (\n <div className=\"space-y-3\">\n <label className=\"block text-sm\">{texts.email}<input type=\"email\" autoComplete=\"email\" value={email} onChange={(e) => setEmail(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label>\n {!challengeID ? <button type=\"button\" disabled={session.starting || !email} onClick={async () => { const response = await session.startSession(email); setChallengeID(response.challengeId); }} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{session.starting ? texts.loading : texts.sendCode}</button> : <>\n <label className=\"block text-sm\">{texts.code}<input inputMode=\"numeric\" autoComplete=\"one-time-code\" value={code} onChange={(e) => setCode(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label>\n <button type=\"button\" disabled={session.verifying || !code} onClick={() => session.verifySession({ challengeId: challengeID, code })} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{session.verifying ? texts.loading : texts.verify}</button>\n <button type=\"button\" disabled={session.starting} onClick={async () => { const response = await session.startSession(email); setChallengeID(response.challengeId); }} className=\"ml-3 underline\">Resend code</button>\n </>}\n </div>\n )}\n {ordersQuery.isLoading && <p>{texts.loading}</p>}\n {ordersQuery.data != null && !selectedOrder && !created && <div className=\"space-y-3\"><h3 className=\"font-medium\">{texts.orders}</h3>{ordersQuery.data.orders.length === 0 && <p>No eligible orders found.</p>}{ordersQuery.data.orders.map((order) => <button key={order.canonicalOrderId} type=\"button\" onClick={() => setSelectedOrder(order)} className=\"block w-full rounded border p-3 text-left hover:border-[var(--bitsnap-returns-brand)]\"><span className=\"font-medium\">{order.displayReference}</span><span className=\"ml-2 text-sm text-gray-600\">{order.currency} {formatMinor(order.totalMinor)}</span></button>)}{ordersQuery.data.nextPageToken && <button type=\"button\" onClick={() => setOrderPageToken(ordersQuery.data?.nextPageToken ?? \"\")} className=\"underline\">Next orders</button>}</div>}\n {orderDetail && !created && <div className=\"space-y-3\"><button type=\"button\" onClick={() => { setSelectedOrder(undefined); setOrderDetail(undefined); }} className=\"text-sm underline\">← {texts.orders}</button>{orderDetail.lines.map((line) => <label key={line.lineId} className=\"flex items-center justify-between gap-3 rounded border p-3\"><span>{line.name}<small className=\"block text-gray-600\">{line.availableQuantity} available · {line.currency} {formatMinor(line.paidUnitMinor)}</small></span><input type=\"number\" min={0} max={line.availableQuantity} disabled={!line.eligible} value={quantities[line.lineId] ?? 0} onChange={(e) => setQuantities((prev) => ({ ...prev, [line.lineId]: Math.max(0, Math.min(line.availableQuantity, Number(e.target.value))) }))} className=\"w-20 rounded border p-2\" />{!line.eligible && <small>{line.exclusionReason}</small>}</label>)}<label className=\"block text-sm\">{texts.note}<textarea value={note} onChange={(e) => setNote(e.target.value)} className=\"mt-1 block w-full rounded border p-2\" /></label><button type=\"button\" disabled={create.isPending || !Object.values(quantities).some((q) => q > 0)} onClick={async () => { if (submittingRef.current) return; submittingRef.current = true; idempotencyKeyRef.current ??= globalThis.crypto.randomUUID(); try { const result = await create.mutateAsync({ canonicalOrderID: orderDetail.canonicalOrderId, items: Object.entries(quantities).filter(([, quantity]) => quantity > 0).map(([lineId, quantity]) => ({ lineId, quantity })), note, idempotencyKey: idempotencyKeyRef.current }); if (result && \"request\" in result && result.request) setCreated(result.request); } finally { submittingRef.current = false; } }} className=\"rounded bg-[var(--bitsnap-returns-brand)] px-4 py-2 text-white disabled:opacity-50\">{create.isPending ? texts.loading : texts.submit}</button></div>}\n {created && <div className=\"rounded border p-4\"><h3 className=\"font-semibold\">Return submitted</h3><p>Reference: <strong>{created.reference}</strong></p><p>Status: {created.status}</p>{created.returnInstructions && <p className=\"mt-2\">{created.returnInstructions}</p>}<button type=\"button\" onClick={() => { setCreated(undefined); setSelectedOrder(undefined); setOrderDetail(undefined); setQuantities({}); void mineQuery.refetch(); }} className=\"mt-3 underline\">{texts.history}</button></div>}\n {mineQuery.data?.returns && mineQuery.data.returns.length > 0 && !created && <div className=\"mt-6\"><h3 className=\"mb-2 font-medium\">{texts.history}</h3>{mineQuery.data.returns.map((item) => <div key={item.id} className=\"border-t py-2\"><strong>{item.reference}</strong><span className=\"ml-2\">{item.status}</span></div>)}</div>}\n {error && <p role=\"alert\" className=\"mt-3 text-sm text-red-700\">{error.message}</p>}\n </section>\n );\n}\n\nfunction formatMinor(amount: bigint | number) {\n return (Number(amount) / 100).toFixed(2);\n}\n"],"mappings":"+kBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,oBAAAE,GAAA,YAAAC,GAAA,oBAAAC,GAAA,mBAAAC,GAAA,2BAAAC,GAAA,wBAAAC,GAAA,gBAAAC,GAAA,oBAAAC,GAAA,2BAAAC,GAAA,UAAAC,GAAA,eAAAC,GAAA,kBAAAC,GAAA,oBAAAC,GAAA,6BAAAC,GAAA,mBAAAC,GAAA,qBAAAC,GAAA,4BAAAC,GAAA,cAAAC,GAAA,mBAAAC,GAAA,2BAAAC,GAAA,2BAAAC,GAAA,qCAAAC,GAAA,qBAAAC,GAAA,2BAAAC,GAAA,4BAAAC,GAAA,kBAAAC,GAAA,YAAAC,GAAA,cAAAC,GAAA,gBAAAC,GAAA,mBAAAC,GAAA,sBAAAC,GAAA,iBAAAA,GAAA,aAAAC,GAAA,oBAAAC,GAAA,iBAAAC,GAAA,mBAAAC,GAAA,oBAAAC,GAAA,qBAAAC,GAAA,uBAAAC,KAAA,eAAAC,GAAAxC,ICAA,IAAAyC,GAA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LOT_NAMES","Environment","GooglePay_default","NotificationsComponentPublic_default","PanelPage_default","PanelLogin","PanelProvider","PublicOrderPage_default","buildAccessTokenRedirect","createCheckout","createPaymentURL","getAllowedReturnOrigins","getLocale","getPanelConfig","getReferenceIfPossible","getReturnURLFromSearch","injectReferenceToRequestIfNeeded","persistReturnURL","readPersistedReturnURL","setAllowedReturnOrigins","setCustomHost","setHost","setLocale","setLoginURL","setPanelConfig","setProjectID","setTheme","useCreateReturn","useMyReturns","usePanelConfig","useReturnOrders","useReturnSession","useReturnableOrder","__toCommonJS","import_apple_pay_button","import_connect","import_connect_web","import_codegenv2","import_codegenv2","file_common_v1_address","AddressSchema","BillingAddressSchema","import_codegenv2","file_common_v1_gateway","import_codegenv2","import_wkt","file_common_v1_push_notifications","import_codegenv2","import_wkt","file_dashboard_v1_audiobooks","import_wkt","file_public_v1_public_api","file_common_v1_address","file_common_v1_gateway","file_common_v1_push_notifications","file_dashboard_v1_audiobooks","PreOrderItemSchema","file_public_v1_public_api","GetPreOrderDetailsRequestSchema","UserProductSchema","file_public_v1_public_api","PublicApiService","file_public_v1_public_api","PublicApiClient","get","host","PublicApiService","getTransport","transports","transport","import_react","import_clsx","import_tailwind_merge","cn","inputs","import_connect_query","import_connect_web","import_react_query","import_react","HOST","setCustomHost","host","notifications_NotificationsService_connectquery_exports","__export","createNotificationGroup","createNotificationGroupUser","createNotificationMessage","createNotificationMessageJob","createNotificationSetting","createNotificationUser","deleteNotificationGroup","deleteNotificationGroupUser","deleteNotificationMessage","deleteNotificationMessageJob","deleteNotificationSetting","deleteNotificationUser","getNotificationStats","getNotificationUserSettings","getProjectedRecipientCount","getSentNotificationMessages","getUserGroups","readNotificationGroupUsers","readNotificationGroups","readNotificationMessageJobs","readNotificationMessages","readNotificationProducts","readNotificationSetting","readNotificationUsers","updateNotificationGroup","updateNotificationGroupUser","updateNotificationMessage","updateNotificationMessageJob","updateNotificationSetting","updateNotificationUser","updateUserGroups","verifyUserEmail","import_codegenv2","import_wkt","import_codegenv2","import_wkt","file_dashboard_v1_product","file_dashboard_v1_notifications","file_dashboard_v1_product","file_common_v1_push_notifications","FailureMessage","NotificationsService","file_dashboard_v1_notifications","createNotificationSetting","NotificationsService","readNotificationSetting","updateNotificationSetting","deleteNotificationSetting","createNotificationGroup","readNotificationGroups","updateNotificationGroup","deleteNotificationGroup","createNotificationUser","readNotificationUsers","updateNotificationUser","deleteNotificationUser","createNotificationGroupUser","readNotificationGroupUsers","updateNotificationGroupUser","deleteNotificationGroupUser","createNotificationMessage","readNotificationMessages","getSentNotificationMessages","updateNotificationMessage","deleteNotificationMessage","createNotificationMessageJob","readNotificationMessageJobs","updateNotificationMessageJob","deleteNotificationMessageJob","readNotificationProducts","getNotificationUserSettings","verifyUserEmail","getUserGroups","updateUserGroups","getProjectedRecipientCount","getNotificationStats","public_api_PublicApiService_connectquery_exports","__export","addPublicOrderComment","applePayValidateMerchant","authorizeOneClickPayment","clearAppStoreAccountToken","didBuyProduct","getAppStoreAccountToken","getAppStoreEntitlements","getAvailableCountForProduct","getGuestCatalog","getNotificationHistory","getNotificationSettings","getNotificationSettingsDetails","getOrder","getOrderForTestimonial","getOrderRetryUrl","getOrders","getPreOrderDetails","getPublicOrderDetails","getShopProducts","getStoreKitCatalog","getTestimonialUploadUrl","isOneClickPaymentAvailable","notifyUserAboutProductAvailability","pushEvent","pushSendDeviceToken","restoreAppStorePurchases","shouldShopProducts","shouldShowGuestCatalog","submitTestimonial","updateGlobalNotificationSettings","updateNotificationSettings","userPanelDeleteAccount","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetCourseDetails","userPanelGetFileDetails","userPanelGetProducts","userPanelGetTicketDetails","userPanelLogin","userPanelLoginWithCode","userPanelLogout","userPanelResolveProductAccess","verifyAppStorePurchase","getOrder","PublicApiService","getOrders","getOrderRetryUrl","userPanelLogin","userPanelLoginWithCode","userPanelLogout","userPanelDeleteAccount","userPanelGetProducts","userPanelGetAudiobookDetails","userPanelGetAudiobookDetailsDownloadURLs","userPanelGetFileDetails","userPanelGetTicketDetails","userPanelGetCourseDetails","pushSendDeviceToken","pushEvent","shouldShopProducts","shouldShowGuestCatalog","getGuestCatalog","userPanelResolveProductAccess","getShopProducts","didBuyProduct","getAppStoreAccountToken","verifyAppStorePurchase","getAppStoreEntitlements","restoreAppStorePurchases","clearAppStoreAccountToken","getStoreKitCatalog","getNotificationSettings","getNotificationSettingsDetails","updateGlobalNotificationSettings","updateNotificationSettings","getNotificationHistory","getAvailableCountForProduct","isOneClickPaymentAvailable","getPreOrderDetails","applePayValidateMerchant","authorizeOneClickPayment","notifyUserAboutProductAvailability","getPublicOrderDetails","addPublicOrderComment","getOrderForTestimonial","submitTestimonial","getTestimonialUploadUrl","returns_ReturnsService_connectquery_exports","__export","createReturnRequest","getMyReturn","getReturnableOrder","listMyReturns","listReturnOrders","startReturnSession","verifyReturnSession","import_codegenv2","import_codegenv2","file_common_v1_environment","Environment","import_wkt","file_public_v1_returns","file_common_v1_environment","ReturnsService","file_public_v1_returns","startReturnSession","ReturnsService","verifyReturnSession","listReturnOrders","getReturnableOrder","createReturnRequest","listMyReturns","getMyReturn","import_jsx_runtime","currentFinalTransportHost","finalTransport","rpcProvider","public_api_PublicApiService_connectquery_exports","notifications_NotificationsService_connectquery_exports","returns_ReturnsService_connectquery_exports","useQuery","uq","useMutation","um","customHost","getTransportHost","customHost","HOST","RpcProvider","children","transportHost","finalTransport","currentFinalTransportHost","input","init","queryClient","import_class_variance_authority","import_radix_ui","import_jsx_runtime","buttonVariants","Button","className","variant","size","asChild","props","Comp","cn","import_jsx_runtime","Card","className","props","cn","CardHeader","CardTitle","CardDescription","CardContent","className","props","cn","import_jsx_runtime","Input","className","type","props","cn","React","import_input_otp","import_lucide_react","import_jsx_runtime","InputOTP","className","containerClassName","props","cn","InputOTPGroup","InputOTPSlot","index","inputOTPContext","char","hasFakeCaret","isActive","InputOTPSeparator","import_input_otp","LabelPrimitive","import_jsx_runtime","Label","className","props","cn","import_jsx_runtime","LoadingIndicator","LoadingIndicator_default","config","allowedReturnOrigins","setPanelConfig","newConfig","getPanelConfig","setProjectID","projectID","setTheme","theme","setLoginURL","loginURL","setHost","host","setAllowedReturnOrigins","origins","getAllowedReturnOrigins","import_react","import_jsx_runtime","PanelContext","getPanelConfig","PanelProvider","children","RpcProvider","usePanelConfig","RETURN_URL_PARAM","RETURN_URL_STORAGE_KEY","ACCESS_TOKEN_PARAM","getReturnURLFromSearch","search","raw","validateReturnURL","persistReturnURL","returnURL","readPersistedReturnURL","stored","isOriginAllowed","origin","allowedOrigins","allowed","allowedHost","originHost","u","getAllowedReturnOrigins","buildAccessTokenRedirect","accessToken","panelSessionKey","projectID","host","panelEmailKey","getPanelSession","savePanelSession","token","email","getPanelEmail","clearPanelSession","import_jsx_runtime","knownSiblings","getAllowedReturnOrigins","setAllowedReturnOrigins","LoginUserPanel","projectID","host","reveal","email","setEmail","loginUser","isLoginLoading","errMsg","configuredProjectID","configuredHost","usePanelConfig","getPanelSession","isValidEmail","setIsValidEmail","emailValidation","input","handleInputChange","e","value","goToVerifyCode","onSubmit","cn","Card","CardHeader","CardTitle","CardDescription","CardContent","Label","Input","Button","LoadingIndicator_default","VerifyCodePanel","loginUserResponse","setLoginUserResponse","setResponseStatus","verifyCodeAsync","isVerifyLoading","useMutation","rpcProvider","code","setCode","isValidCode","setIsValidCode","isSubmitted","setIsSubmitted","retryIn","setRetryIn","codeValidation","login","codeValue","verifyCodeResult","status","message","accessToken","savePanelSession","returnURL","readPersistedReturnURL","buildAccessTokenRedirect","handleRetryInTime","intervalId","prevRetryIn","backToLoginComponent","onCodeSubmit","InputOTP","newValue","InputOTPGroup","InputOTPSlot","InputOTPSeparator","PanelLoginComponentWrapper","theme","allowedReturnOrigins","styles","activeScreen","setActiveScreen","parent","prevScreen","responseStatus","loginUserAsync","setErrMsg","queryReturnURL","getReturnURLFromSearch","persistReturnURL","existingToken","loginUserResult","PanelLogin","import_react","import_react","useUrlSearchParams","initialValue","params","setParams","urlParams","parsed","key","value","updateParams","newParams","prev","updated","newUrl","handlePopState","SwitchPrimitive","import_jsx_runtime","Switch","className","props","cn","import_react","import_jsx_runtime","PanelNotificationsComponent","notifications","setNotifications","Switch","checked","prevState","Label","PanelNotifications_default","import_lucide_react","import_jsx_runtime","Pagination","className","props","cn","PaginationContent","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","PaginationNext","PaginationEllipsis","import_jsx_runtime","Skeleton","className","props","cn","import_react","import_jsx_runtime","formatDate","ts","formatAmount","amount","currency","statusLabel","statusColor","PanelOrderHistory","openOrderDetails","projectID","accessToken","offset","setOffset","limit","data","isFetching","useQuery","rpcProvider","orders","totalCount","currentPage","totalPages","handlePageChange","newOffset","_","i","Skeleton","order","Pagination","PaginationContent","PaginationItem","PaginationPrevious","PaginationLink","PaginationEllipsis","page","PaginationNext","PanelOrderHistory_default","import_react","import_jsx_runtime","formatDate","ts","statusLabel","statusColor","PanelPlansComponent","_projectID","plans","setPlans","isLoading","setIsLoading","plan","PanelPlans_default","import_react","import_jsx_runtime","URL_REGEX","findURLIndices","text","match","replaceTextByIndices","originalText","replacements","result","lastIndex","a","b","startIndex","endIndex","replacementText","renderText","txt","urlIndices","el","import_protobuf","import_react","import_lucide_react","import_hls","import_lucide_react","import_react","mediaSessionPlay","mediaSessionPause","mediaSessionUpdateDurationAndPosition","duration","currentTime","startMediaSessionCoordinator","args","e","stopMediaSessionCoordinator","import_jsx_runtime","AudioPlayer","chapters","styles","updateCurrentTime","setCurrentTimeHandler","title","imageURL","uniqueProductID","onChapterChange","ref","PlayState","playState","setPlayState","mediaSessionPlay","mediaSessionPause","chapter","playChapter","currentTime","setCurrentTime","duration","setDuration","videoRef","hlsRef","timerRef","audioPlayerContainerRef","currentChapterRef","playWhenReady","setPlayWhenReady","isStarted","setIsStarted","isLoading","setIsLoading","isSafari","saveLastPlayedTime","timeInSeconds","getLastPlayedTime","time","result","getLastSelectedChapterID","lastSelectedChapterID","setLastSelectedChapterID","chapterID","deleteMemoryChapter","setupObservers","lastPlayedTime","seekTo","play","e","playNextChapter","startMediaSessionCoordinator","details","pause","seekBy","startTimer","currentChapterIndex","updatePlayerDetails","stopTimer","mediaSessionUpdateDurationAndPosition","togglePlayState","seconds","newTime","toSecond","destroyPlayer","loadChapters","playURL","src","Hls","stopMediaSessionCoordinator","calculateTime","secs","hours","minutes","returnedHours","returnedSeconds","showRangeProgress","rangeInput","barProgress","selectedTime","Button","LoadingIndicator_default","AudioPlayer_default","React","import_jsx_runtime","ProgressBar","progress","setProgress","timer","import_jsx_runtime","warn","message","args","error","PanelProductDetails","accessToken","product","styles","reveal","productType","audioPlayerRef","filesRefAnimation","filesResponse","setFilesResponse","fileDetailsAsync","isFileLoading","useMutation","rpcProvider","audioPlayerSeekToHandler","audioResponse","setAudioResponse","audioDownloadURLs","setAudioDownloadURLs","isAvailableToDownloadInMobileApp","setIsAvailableToDownloadInMobileApp","isCourseLoading","setIsCourseLoading","courseError","setCourseError","audioDetailsAsync","isAudioLoading","audioDetailsDownloadURLsAsync","isAudioDownloadURLsLoading","courseDetailsAsync","selectedChapter","setSelectedChapter","chapters","setChapters","handleFileDownload","filesResult","err","handleAudioDownload","audioResult","handleAudioURLsDownload","audioURLsResult","handleCourseRedirect","courseResult","audioChapters","mappedChapters","chapter","details","el","Button","LoadingIndicator_default","ProgressBar","index","AudioPlayer_default","handler","cn","PanelProductDetails_default","import_jsx_runtime","PanelProductGridComponent","accessToken","projectID","loginURL","styles","activeScreen","params","setParams","products","isProductsLoading","useQuery","rpcProvider","LoadingIndicator_default","clearPanelSession","productsList","ProductsComponent","PanelProductGrid_default","selectedProduct","setSelectedProduct","UserProductSchema","reveal","product","getProductTypeName","type","handleSelectedProduct","PanelProductDetails_default","index","renderText","Button","e","import_react","import_lucide_react","import_jsx_runtime","PanelProductHeaderComponent","activeScreen","setActiveScreen","setParams","_styles","theme","logout","MobileMenu","SidebarMenu","PanelProductHeader_default","MobileButton","panelScreen","label","imageURL","Button","cn","SidebarButton","darkImageURL","isExpanded","sidebarExpandRef","setIsExpanded","CompanyLogo","SidebarSeparator","className","_isExpanded","import_lucide_react","import_jsx_runtime","PanelProfileComponent","email","logout","Button","PanelProfile_default","import_lucide_react","import_react","React","import_jsx_runtime","Textarea","className","props","ref","cn","import_jsx_runtime","StatusBadge","status","statusConfig","config","Icon","statusLabels","AddCommentForm","orderID","email","message","setMessage","addCommentMutation","useMutation","rpcProvider","e","error","Label","Textarea","Button","formatDate","timestamp","formatCurrency","amount","currency","PublicOrderPageContent","initialEmail","onBack","accessToken","theme","projectID","usePanelConfig","verifyEmail","setVerifyEmail","isVerifyDialogOpen","setIsVerifyDialogOpen","orderData","isLoading","refetch","useQuery","order","isVerified","handleVerifyEmail","styles","Card","CardContent","CardHeader","CardTitle","item","index","comment","Input","PublicOrderPage","props","PublicOrderPage_default","import_jsx_runtime","PanelPage","projectID","theme","loginURL","host","usePanelConfig","accessToken","getPanelSession","email","getPanelEmail","logoutUserAsync","useMutation","rpcProvider","logout","clearPanelSession","panelParentRef","isScreen","value","params","setParams","useUrlSearchParams","activeScreen","setActiveScreen","handleOpenOrderDetails","orderID","handleBackToOrders","styles","queryReturnURL","getReturnURLFromSearch","persistReturnURL","returnURL","readPersistedReturnURL","buildAccessTokenRedirect","PanelProductHeader_default","PanelProductGrid_default","PanelNotifications_default","PanelPlans_default","PanelOrderHistory_default","PublicOrderPage_default","PanelProfile_default","PanelPage_default","import_protobuf","import_react_query","import_react","import_zod","import_zod","round","num","numberOfDecimals","formatCurrency","amount","currency","language","eventPayload","zod","sendAnalyticEvent","payload","sendGoogleAnalyticsEvent","sendPixelAnalyticsEvent","sendTikTokAnalyticsEvent","ga4Event","mapToGA4EcommerceEvent","e","totalValue","sum","item","items","round","ecommerce","eventName","eventType","tiktokEvent","mapToTikTokEvent","contents","mapGooglePayConfiguration","args","items","googlePayConfig","checkout","result","cartRequiresShipping","intents","method","formatCurrency","round","mapGooglePayDisplayItems","methods","deliveryMethod","couponCode","couponValue","displayItems","subtotalAmount","item","selectedDeliveryMethod","buildURL","projectID","path","HOST","isErr","x","Err","message","type","data","import_zustand","useCheckoutStore","set","state","numberOfProductsInCart","Bitsnap","addProductToCart","id","quantity","metadata","args","projectID","getProjectID","err","getCheckoutMethods","showCart","useCheckoutStore","hideCart","createPaymentURL","request","injectReferenceToRequestIfNeeded","getLocale","result","buildURL","payload","itemIds","Err","createCheckout","headers","path","HOST","getReferenceIfPossible","refLink","ref","DEFAULT_LOCALE","localeStorageKey","activeLocale","setLocale","locale","value","getLocale","translate","key","english","polish","import_jsx_runtime","MARKETING_AGREEMENT_ID","CartProviderContext","bitsnapProjectID","setProjectID","projectID","setPanelConfig","setAllowedReturnOrigins","getProjectID","getNewHostIfExist","CartProvider","children","locale","queryClient","updateNumberOfProductsInCart","checkoutMethods","getCheckoutMethods","getProducts","args","products","getCheckout","productIds","product","params","getLocale","result","buildURL","payload","el","variant","resolveProductDetailsFromSingleProduct","useCartProvider","context","CartProvider_default","googlePayConfigSchema","zod","checkoutProduct","checkoutSchema","emptyCheckout","checkoutKey","value","addProducts","latestProducts","item","index","isErr","checkout","sendAnalyticEvent","saveCheckout","removeProductFromCheckout","ids","newCheckout","id","model","newHost","setCustomHost","PublicApiClient","HOST","e","googlePayConfig","resolveGooglePayConfiguration","PreOrderItemSchema","cartRequiresShipping","mappedPaymentRequest","mapGooglePayConfiguration","empty","Err","country","acc","couponCode","postalCode","deliveryMethod","email","mergedMetadata","key","paymentResponse","createPaymentURL","injectReferenceToRequestIfNeeded","shippingName","metadata","ref","getReferenceIfPossible","GetPreOrderDetailsRequestSchema","AddressSchema","BillingAddressSchema","error","items","round","variantIndex","v","numberOfProductsInCart","useCheckoutStore","state","import_react_query","import_jsx_runtime","ApplePayButtonComponent","style","buttonType","colorType","items","onClick","checkIfApplePayIsAvailable","getApplePayPaymentRequest","completeApplePayPayment","setCountry","setCouponCodeIfPossible","setDeliveryMethod","setEmail","setPostalCode","clearCart","useCartProvider","isApplePayAvailable","expectedItems","el","beginSession","sendAnalyticEvent","requiresShipping","session","round","acc","item","apRequest","isErr","event","result","PublicApiClient","HOST","getProjectID","error","ApplePayButton","Wrapper","props","CartProvider_default","ApplePay_default","import_react","import_zod","import_react","import_react_dom","import_react","CHECKOUT_SLOT_NAMES","CHECKOUT_TOKEN_VARIABLES","CHECKOUT_THEME_PRESETS","CHECKOUT_SHADCN_VARIABLES","omitUndefined","tokens","result","key","value","hasAnyElement","elements","element","resolveBoundaryStyle","style","token","variable","resolveDropdownStyle","resolveCheckoutAppearance","appearance","theme","getCheckoutSlotAppearance","resolved","slot","import_jsx_runtime","CheckoutAppearanceContext","resolveCheckoutAppearance","CheckoutAppearanceProvider","appearance","children","resolved","useCheckoutAppearance","useCheckoutSlot","slot","getCheckoutSlotAppearance","import_react","import_react","SelectPrimitive","import_lucide_react","import_jsx_runtime","Select","props","SelectValue","props","selectTriggerThemeClasses","SelectTrigger","className","size","theme","children","cn","SelectContent","position","align","SelectScrollUpButton","SelectScrollDownButton","SelectItem","className","children","props","cn","SelectScrollUpButton","className","props","cn","SelectScrollDownButton","import_jsx_runtime","CountrySelector","id","open","disabled","onToggle","onChange","selectedValue","countries","query","setQuery","isCustomized","boundaryClassName","boundaryStyle","dropdownStyle","useCheckoutAppearance","countryTrigger","useCheckoutSlot","countryDropdown","countrySearch","countryOption","filteredCountries","country","selectedCountry","el","Select","value","isOpen","SelectTrigger","cn","SelectValue","SelectContent","e","SelectItem","CountrySelector_default","import_react","import_lucide_react","import_react_slot","import_class_variance_authority","import_jsx_runtime","buttonGroupVariants","ButtonGroup","className","orientation","props","cn","import_jsx_runtime","ProductPrice","price","currency","pricing","quantity","regular","effective","onSale","formatCurrency","import_jsx_runtime","SingleProduct","isNotAvailable","quantity","details","shouldUpdate","product","useCheckoutSlot","productImage","productName","productPrice","removeButton","cn","ProductPrice","QuantityComponent","Button","SingleProduct_default","className","quantityString","setQuantityString","quantityValue","setQuantityValue","quantityControl","quantityInput","quantityButton","setNewQuantity","newQuantity","parsedInt","increaseQuantity","decreaseQuantity","ButtonGroup","e","import_jsx_runtime","Skeleton","className","props","import_lucide_react","import_jsx_runtime","Spinner","className","props","cn","import_react_query","import_jsx_runtime","CartComponentContent","className","locale","provider","useCartProvider","currentLocale","getLocale","productList","useCheckoutSlot","summary","totalLabel","totalValue","deliveryText","countryLabel","paymentButtons","checkoutButton","emptyState","error","skeleton","removeProduct","updateQuantity","setCountryAsync","clearCart","errMsg","setErrMsg","React","missingItemIds","setMissingItemIds","isCountryOpen","setIsCountryOpen","continueToCheckoutAsync","isContinueToCheckoutLoading","availableCountries","isApplePayAvailable","data","isLoading","refetch","countryData","refetchCountry","productsParent","products","isErr","countries","sumOfProducts","prev","curr","currency","isSomeProductDeliverable","product","selectedCountry","shouldUpdate","id","newQuantity","continueToCheckout","sendAnalyticEvent","el","response","translate","e","Skeleton","cn","SingleProduct_default","formatCurrency","CountrySelector_default","newValue","ApplePay_default","GooglePay_default","Spinner","CartComponentContent_default","import_jsx_runtime","CartComponent","isVisible","shouldHide","locale","parent","boundaryClassName","boundaryStyle","useCheckoutAppearance","root","useCheckoutSlot","overlay","panel","header","title","closeButton","cn","translate","getLocale","CartComponentContent_default","WrapperCartComponent","props","CheckoutAppearanceProvider","CartProvider_default","CartComponent_default","import_jsx_runtime","cartAddToCartSchema","zod","BitsnapCart","projectID","locale","children","onVisibleChange","className","numberOfProductsInCartOptions","appearance","isCartVisible","showCart","hideCart","numberOfProductsInCart","useCheckoutStore","sentPostMessageToIframe","msg","iframe","sendAnalyticEvent","setProjectID","setLocale","getProjectID","args","payload","methods","getCheckoutMethods","products","isErr","el","result","e","handleAddingToCart","id","data","handleAddingSubscriptionToCart","event","setupEventListener","type","parsedParams","refLink","CartComponent_default","BitsnapCart_default","import_button_react","import_react_query","import_jsx_runtime","GooglePayButtonComponent","items","style","buttonColor","buttonSizeMode","test","getGooglePayConfiguration","completeGooglePayPayment","setCountry","setCouponCodeIfPossible","setDeliveryMethod","setEmail","setPostalCode","clearCart","useCartProvider","googlePayConfiguration","el","completeGooglePayPaymentAsync","isPending","GooglePayButton","paymentData","sendAnalyticEvent","config","paymentRequest","result","isErr","e","Spinner","Wrapper","props","CartProvider_default","GooglePay_default","import_react","import_react_query","import_lucide_react","import_jsx_runtime","DEFAULT_TEXTS","import_lucide_react","import_jsx_runtime","NotificationHeader","projectName","projectLogo","projectLogoDark","description","className","onLogout","cn","Button","import_react","import_lucide_react","PopoverPrimitive","import_jsx_runtime","Popover","props","PopoverTrigger","PopoverContent","className","align","sideOffset","cn","import_lucide_react","import_jsx_runtime","HowOftenComponent","regularity","text","Popover","PopoverTrigger","e","PopoverContent","import_jsx_runtime","NotificationGroupsList","groups","isManaging","onToggle","onCheckAll","onUpdate","isUpdating","wasChanged","isUserGroupsUpdated","className","texts","groupsParent","updateGroupsParent","hasNoSelection","group","hasUnchecked","content","cn","e","Switch","HowOftenComponent","Button","DEFAULT_TEXTS","Spinner","Card","CardHeader","CardTitle","CardContent","import_jsx_runtime","QRCodeSection","showQRCode","_isManaging","className","texts","isBrowser","darkMode","getURL","Card","cn","CardHeader","CardTitle","DEFAULT_TEXTS","CardContent","HOST","import_react","import_react_phone_number_input","import_react","import_react_label","import_lucide_react","import_jsx_runtime","FormInput","submit","isLoading","errMsg","emailLack","warnMsg","isSubmited","agreementLack","showPhoneInput","agreementText","className","texts","email","setEmail","phone","setPhone","isChecked","setIsChecked","parent","submitForm","e","cn","DEFAULT_TEXTS","Input","newVal","Button","Spinner","import_jsx_runtime","emailRegex","AddUserToGroups","groups","onToggle","onCheckAll","slug","showPhoneInput","agreementText","className","texts","isUpdating","wasChanged","onSuccess","errMsg","setErrMsg","warnMsg","setWarnMsg","isSubmited","setIsSubmited","agreementLack","setAgreementLack","emailLack","setEmailLack","createNotificationUserMutation","isCreateNotificationUserPending","useMutation","rpcProvider","validatePhoneNumber","phone","save","email","agreement","newNotificationUser","el","failureMessage","FailureMessage","e","text","DEFAULT_TEXTS","cn","NotificationGroupsList","FormInput","import_react","import_react_label","import_lucide_react","import_use_debounce","import_lucide_react","import_react_dom","import_react","import_jsx_runtime","UnsubscribeDialog","open","onOpenChange","onConfirm","isDeleting","mounted","setMounted","handleBackdropClick","e","handleConfirm","cn","Button","import_react","import_jsx_runtime","ManageMyData","accessToken","slug","userID","className","texts","parent","parentCard","deleteMyData","isDeleting","useMutation","rpcProvider","updateNotificationUser","isUpdating","userSettings","isLoading","useQuery","email","setEmail","phone","setPhone","isDataUpdated","setIsDataUpdated","push","setPush","isDialogOpen","setIsDialogOpen","details","deleteData","handleConfirmDelete","updateData","debouncedUpdateData","_","setData","key","value","cn","DEFAULT_TEXTS","Skeleton","Card","CardHeader","CardTitle","CardContent","Switch","Button","Spinner","UnsubscribeDialog","import_react","import_lucide_react","import_react","DialogPrimitive","import_lucide_react","import_jsx_runtime","Dialog","props","DialogPortal","props","DialogOverlay","className","props","cn","DialogContent","children","showCloseButton","DialogPortal","import_jsx_runtime","LoginScreen","slug","onSuccess","onError","_className","isOpen","onClose","texts","parentContent","parentHeader","email","setEmail","code","setCode","isEmailSent","setIsEmailSent","error","setError","verifyUserEmail","isVerifying","useMutation","rpcProvider","handleSendEmail","e","err","handleVerifyCode","value","response","handleResendEmail","handleChangeEmail","Dialog","DialogContent","Button","CardTitle","CardDescription","Label","InputOTP","InputOTPGroup","InputOTPSlot","Spinner","Input","import_react","import_jsx_runtime","reducer","state","action","group","g","isDefaultOn","newGroupsWithIsOn","updatedGroups","updated","NotificationsComponentPublic","slugProp","userID","_productID","projectName","projectLogo","projectLogoDark","groups","isManaging","texts","showQRCode","showPhoneInput","hiddenGroupIds","className","parent","slug","getProjectID","updateUserGroups","isUpdating","useMutation","rpcProvider","userInfo","refetchAccessToken","UQ","groupsDownloaded","isGroupsDownloading","refetchGroups","useQuery","dispatch","newGroups","howOften","timeoutRef","preparedGroups","el","mergedTexts","DEFAULT_TEXTS","updateGroups","toggleGroup","groupID","checkAllGroups","handleSettingsClick","handleCloseSettings","handleLogout","handleLoginSuccess","accessToken","e","isManagingEnabled","cn","Button","NotificationHeader","Spinner","NotificationGroupsList","ManageMyData","QRCodeSection","AddUserToGroups","id","userAlreadyExists","LoginScreen","Wrapper","productID","RpcProvider","NotificationsComponentPublic_default","import_connect","import_connect_web","import_react_query","import_react","import_jsx_runtime","ReturnsContext","BitsnapReturnsProvider","projectID","host","environment","children","scope","session","setSessionState","sessionToken","expiresAt","queryClient","client","ReturnsService","contextValue","token","expiry","useReturnsContext","value","handleSessionError","error","clear","useReturnSession","ctx","start","email","verify","challengeId","code","result","logout","useReturnOrders","pageSize","pageToken","e","useReturnableOrder","canonicalOrderID","useCreateReturn","input","useMyReturns","defaultTexts","BitsnapReturns","props","BitsnapReturnsForm","texts","orderPageToken","setOrderPageToken","ordersQuery","mineQuery","create","setEmail","challengeID","setChallengeID","setCode","selectedOrder","setSelectedOrder","orderDetail","setOrderDetail","quantities","setQuantities","note","setNote","created","setCreated","submittingRef","idempotencyKeyRef","orderQuery","React","style","response","order","formatMinor","line","prev","q","quantity","lineId","item","amount"]}
|