@gem-sdk/pages 3.0.0-pre-production.0 → 3.0.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.
Files changed (150) hide show
  1. package/dist/cjs/components/ErrorBoundary.js +2 -40
  2. package/dist/cjs/components/ErrorFallback.js +2 -26
  3. package/dist/cjs/components/FacebookPixel.js +4 -36
  4. package/dist/cjs/components/FooterForPostPurchase.js +2 -34
  5. package/dist/cjs/components/GoogleAnalytic.js +6 -67
  6. package/dist/cjs/components/TikTokPixel.js +4 -19
  7. package/dist/cjs/components/builder/Body.js +2 -36
  8. package/dist/cjs/components/builder/Footer.js +2 -154
  9. package/dist/cjs/components/builder/Header.js +2 -189
  10. package/dist/cjs/components/builder/PopupManager.js +2 -63
  11. package/dist/cjs/components/builder/SwitchView.js +2 -184
  12. package/dist/cjs/components/builder/Toolbar.js +2 -706
  13. package/dist/cjs/components/builder/Toolbox.js +2 -494
  14. package/dist/cjs/components/builder/const.js +1 -56
  15. package/dist/cjs/components/builder/toolbar/const.js +1 -7
  16. package/dist/cjs/components/builder/toolbar/utils/findDOMClosest.js +1 -41
  17. package/dist/cjs/components/builder/toolbar/utils/findOverflowParent.js +1 -20
  18. package/dist/cjs/components/builder/toolbar/utils/getChildrenByAttrSelector.js +1 -18
  19. package/dist/cjs/components/builder/toolbar/utils/getDOMElementParents.js +1 -32
  20. package/dist/cjs/components/builder/toolbar/utils/isOverParent.js +1 -16
  21. package/dist/cjs/components/builder/toolbar/utils/isOverToolbarPosition.js +1 -12
  22. package/dist/cjs/components/builder/toolbar/utils/isSection.js +1 -8
  23. package/dist/cjs/components/builder/toolbar/utils/notVisible.js +1 -8
  24. package/dist/cjs/components/builder/toolbar/utils/waitForElementToExist.js +1 -27
  25. package/dist/cjs/components/image-to-layout/AddSectionImageToLayout.js +2 -150
  26. package/dist/cjs/components/image-to-layout/DropElement.js +2 -190
  27. package/dist/cjs/components/image-to-layout/ImageToLayout.js +2 -41
  28. package/dist/cjs/constants/index.js +1 -0
  29. package/dist/cjs/index.js +1 -82
  30. package/dist/cjs/layouts/main.js +2 -30
  31. package/dist/cjs/libs/api/get-builder-props.js +1 -46
  32. package/dist/cjs/libs/api/get-collection-props.js +1 -68
  33. package/dist/cjs/libs/api/get-home-page-props-v2.js +1 -145
  34. package/dist/cjs/libs/api/get-home-page-props.js +1 -151
  35. package/dist/cjs/libs/api/get-post-purchase-props-preview.js +1 -300
  36. package/dist/cjs/libs/api/get-preview-props.js +1 -18
  37. package/dist/cjs/libs/api/get-product-props.js +1 -73
  38. package/dist/cjs/libs/api/get-static-page-props-preview.js +1 -159
  39. package/dist/cjs/libs/api/get-static-page-props-v2.js +1 -168
  40. package/dist/cjs/libs/api/get-static-page-props.js +1 -148
  41. package/dist/cjs/libs/custom-fonts.js +6 -60
  42. package/dist/cjs/libs/fetcher.js +1 -100
  43. package/dist/cjs/libs/get-layout.js +1 -13
  44. package/dist/cjs/libs/get-storefront-api.js +1 -12
  45. package/dist/cjs/libs/getStaticPaths.js +1 -10
  46. package/dist/cjs/libs/google-fonts.js +1 -118
  47. package/dist/cjs/libs/helpers/check-option-font.js +1 -65
  48. package/dist/cjs/libs/helpers/common.js +1 -27
  49. package/dist/cjs/libs/helpers/extract-operation.js +1 -0
  50. package/dist/cjs/libs/helpers/gen-css.js +1 -135
  51. package/dist/cjs/libs/helpers/gen-fonts.js +1 -90
  52. package/dist/cjs/libs/helpers/generate-manifres.js +1 -5
  53. package/dist/cjs/libs/helpers/get-fallback.js +1 -34
  54. package/dist/cjs/libs/helpers/get-metafield.js +1 -0
  55. package/dist/cjs/libs/helpers/normalize.js +1 -103
  56. package/dist/cjs/libs/helpers/parse-json.js +1 -16
  57. package/dist/cjs/libs/helpers/sentry.js +1 -17
  58. package/dist/cjs/libs/helpers/user-agent.js +1 -7
  59. package/dist/cjs/libs/hooks/use-tracking-view.js +2 -42
  60. package/dist/cjs/libs/hooks/usePagePreview.js +1 -92
  61. package/dist/cjs/libs/parse-html.js +1 -34
  62. package/dist/cjs/libs/shopify-cdn-with-google-fonts.js +1 -1845
  63. package/dist/cjs/pages/404.js +2 -43
  64. package/dist/cjs/pages/500.js +2 -74
  65. package/dist/cjs/pages/CollectionGlobalProvider.js +2 -59
  66. package/dist/cjs/pages/builder.js +2 -115
  67. package/dist/cjs/pages/collection-detail.js +2 -64
  68. package/dist/cjs/pages/preview.js +2 -26
  69. package/dist/cjs/pages/product-detail.js +2 -69
  70. package/dist/cjs/pages/static-v2.js +5 -133
  71. package/dist/cjs/pages/static.js +2 -75
  72. package/dist/cjs/store/libs-store.js +1 -14
  73. package/dist/esm/components/ErrorBoundary.js +2 -38
  74. package/dist/esm/components/ErrorFallback.js +2 -24
  75. package/dist/esm/components/FacebookPixel.js +4 -34
  76. package/dist/esm/components/FooterForPostPurchase.js +2 -30
  77. package/dist/esm/components/GoogleAnalytic.js +6 -65
  78. package/dist/esm/components/TikTokPixel.js +4 -17
  79. package/dist/esm/components/builder/Body.js +2 -32
  80. package/dist/esm/components/builder/Footer.js +2 -150
  81. package/dist/esm/components/builder/Header.js +2 -185
  82. package/dist/esm/components/builder/PopupManager.js +2 -59
  83. package/dist/esm/components/builder/SwitchView.js +2 -180
  84. package/dist/esm/components/builder/Toolbar.js +2 -702
  85. package/dist/esm/components/builder/Toolbox.js +2 -490
  86. package/dist/esm/components/builder/const.js +1 -54
  87. package/dist/esm/components/builder/toolbar/const.js +1 -4
  88. package/dist/esm/components/builder/toolbar/utils/findDOMClosest.js +1 -39
  89. package/dist/esm/components/builder/toolbar/utils/findOverflowParent.js +1 -18
  90. package/dist/esm/components/builder/toolbar/utils/getChildrenByAttrSelector.js +1 -16
  91. package/dist/esm/components/builder/toolbar/utils/getDOMElementParents.js +1 -30
  92. package/dist/esm/components/builder/toolbar/utils/isOverParent.js +1 -14
  93. package/dist/esm/components/builder/toolbar/utils/isOverToolbarPosition.js +1 -10
  94. package/dist/esm/components/builder/toolbar/utils/isSection.js +1 -6
  95. package/dist/esm/components/builder/toolbar/utils/notVisible.js +1 -6
  96. package/dist/esm/components/builder/toolbar/utils/waitForElementToExist.js +1 -25
  97. package/dist/esm/components/image-to-layout/AddSectionImageToLayout.js +2 -146
  98. package/dist/esm/components/image-to-layout/DropElement.js +2 -188
  99. package/dist/esm/components/image-to-layout/ImageToLayout.js +2 -37
  100. package/dist/esm/constants/index.js +1 -0
  101. package/dist/esm/index.js +1 -36
  102. package/dist/esm/layouts/main.js +2 -26
  103. package/dist/esm/libs/api/get-builder-props.js +1 -44
  104. package/dist/esm/libs/api/get-collection-props.js +1 -66
  105. package/dist/esm/libs/api/get-home-page-props-v2.js +1 -143
  106. package/dist/esm/libs/api/get-home-page-props.js +1 -149
  107. package/dist/esm/libs/api/get-post-purchase-props-preview.js +1 -292
  108. package/dist/esm/libs/api/get-preview-props.js +1 -16
  109. package/dist/esm/libs/api/get-product-props.js +1 -71
  110. package/dist/esm/libs/api/get-static-page-props-preview.js +1 -157
  111. package/dist/esm/libs/api/get-static-page-props-v2.js +1 -166
  112. package/dist/esm/libs/api/get-static-page-props.js +1 -146
  113. package/dist/esm/libs/custom-fonts.js +6 -55
  114. package/dist/esm/libs/fetcher.js +1 -96
  115. package/dist/esm/libs/get-layout.js +1 -11
  116. package/dist/esm/libs/get-storefront-api.js +1 -10
  117. package/dist/esm/libs/getStaticPaths.js +1 -8
  118. package/dist/esm/libs/google-fonts.js +1 -112
  119. package/dist/esm/libs/helpers/check-option-font.js +1 -63
  120. package/dist/esm/libs/helpers/common.js +1 -24
  121. package/dist/esm/libs/helpers/extract-operation.js +1 -0
  122. package/dist/esm/libs/helpers/gen-css.js +1 -133
  123. package/dist/esm/libs/helpers/gen-fonts.js +1 -87
  124. package/dist/esm/libs/helpers/generate-manifres.js +1 -3
  125. package/dist/esm/libs/helpers/get-fallback.js +1 -32
  126. package/dist/esm/libs/helpers/get-metafield.js +1 -0
  127. package/dist/esm/libs/helpers/normalize.js +1 -96
  128. package/dist/esm/libs/helpers/parse-json.js +1 -13
  129. package/dist/esm/libs/helpers/sentry.js +1 -15
  130. package/dist/esm/libs/helpers/user-agent.js +1 -5
  131. package/dist/esm/libs/hooks/use-tracking-view.js +2 -40
  132. package/dist/esm/libs/hooks/usePagePreview.js +1 -90
  133. package/dist/esm/libs/parse-html.js +1 -32
  134. package/dist/esm/libs/shopify-cdn-with-google-fonts.js +1 -1843
  135. package/dist/esm/pages/404.js +2 -41
  136. package/dist/esm/pages/500.js +2 -72
  137. package/dist/esm/pages/CollectionGlobalProvider.js +2 -55
  138. package/dist/esm/pages/builder.js +2 -113
  139. package/dist/esm/pages/collection-detail.js +2 -60
  140. package/dist/esm/pages/preview.js +2 -24
  141. package/dist/esm/pages/product-detail.js +2 -65
  142. package/dist/esm/pages/static-v2.js +5 -131
  143. package/dist/esm/pages/static.js +2 -71
  144. package/dist/esm/store/libs-store.js +1 -12
  145. package/dist/types/index.d.ts +61 -63
  146. package/package.json +7 -7
  147. package/dist/cjs/components/builder/InteractionSelectOnPageHeader.js +0 -192
  148. package/dist/cjs/libs/helpers/gen-favicon.js +0 -22
  149. package/dist/esm/components/builder/InteractionSelectOnPageHeader.js +0 -188
  150. package/dist/esm/libs/helpers/gen-favicon.js +0 -20
@@ -1,75 +1,2 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var jsxRuntime = require('react/jsx-runtime');
6
- var core = require('@gem-sdk/core');
7
- var nextSeo = require('next-seo');
8
- var Head = require('next/head');
9
- var router = require('next/router');
10
-
11
- const StaticPage = ({ components, builderData, sectionData, seo, themeStyle, fontStyle })=>{
12
- const router$1 = router.useRouter();
13
- if (router$1.isFallback) {
14
- return /*#__PURE__*/ jsxRuntime.jsx("div", {
15
- className: "gp-flex gp-h-[100vh] gp-items-center gp-justify-center",
16
- children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
17
- className: "gp-flex gp-gap-2",
18
- children: [
19
- /*#__PURE__*/ jsxRuntime.jsx("span", {
20
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_alternate] gp-rounded-full gp-bg-slate-800"
21
- }),
22
- /*#__PURE__*/ jsxRuntime.jsx("span", {
23
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_200ms_linear_alternate] gp-rounded-full gp-bg-slate-800"
24
- }),
25
- /*#__PURE__*/ jsxRuntime.jsx("span", {
26
- className: "gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_500ms_alternate] gp-rounded-full gp-bg-slate-800"
27
- })
28
- ]
29
- })
30
- });
31
- }
32
- return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
33
- children: [
34
- /*#__PURE__*/ jsxRuntime.jsx(nextSeo.NextSeo, {
35
- ...seo
36
- }),
37
- /*#__PURE__*/ jsxRuntime.jsxs(Head, {
38
- children: [
39
- themeStyle && /*#__PURE__*/ jsxRuntime.jsx("style", {
40
- "data-id": "global-style",
41
- type: "text/css",
42
- dangerouslySetInnerHTML: {
43
- __html: themeStyle
44
- }
45
- }),
46
- fontStyle && /*#__PURE__*/ jsxRuntime.jsx("style", {
47
- "data-id": "google-fonts",
48
- type: "text/css",
49
- dangerouslySetInnerHTML: {
50
- __html: fontStyle
51
- }
52
- })
53
- ]
54
- }),
55
- /*#__PURE__*/ jsxRuntime.jsx(core.PageProvider, {
56
- children: /*#__PURE__*/ jsxRuntime.jsx(core.BuilderComponentProvider, {
57
- components: components,
58
- children: /*#__PURE__*/ jsxRuntime.jsx(core.SectionProvider, {
59
- data: sectionData,
60
- children: /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
61
- children: builderData && /*#__PURE__*/ jsxRuntime.jsx(core.BuilderProvider, {
62
- state: builderData,
63
- children: /*#__PURE__*/ jsxRuntime.jsx(core.Render, {
64
- uid: "ROOT"
65
- })
66
- }, "body")
67
- })
68
- })
69
- })
70
- })
71
- ]
72
- });
73
- };
74
-
75
- exports.default = StaticPage;
1
+ 'use client';
2
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),nextSeo=require("next-seo"),Head=require("next/head"),router=require("next/router");const StaticPage=({components:e,builderData:s,sectionData:t,seo:n,themeStyle:r,fontStyle:i})=>{let a=router.useRouter();return a.isFallback?jsxRuntime.jsx("div",{className:"gp-flex gp-h-[100vh] gp-items-center gp-justify-center",children:jsxRuntime.jsxs("div",{className:"gp-flex gp-gap-2",children:[jsxRuntime.jsx("span",{className:"gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_alternate] gp-rounded-full gp-bg-slate-800"}),jsxRuntime.jsx("span",{className:"gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_200ms_linear_alternate] gp-rounded-full gp-bg-slate-800"}),jsxRuntime.jsx("span",{className:"gp-aspect-square gp-h-2 gp-animate-[flashing_500ms_infinite_500ms_alternate] gp-rounded-full gp-bg-slate-800"})]})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(nextSeo.NextSeo,{...n}),jsxRuntime.jsxs(Head,{children:[r&&jsxRuntime.jsx("style",{"data-id":"global-style",type:"text/css",dangerouslySetInnerHTML:{__html:r}}),i&&jsxRuntime.jsx("style",{"data-id":"google-fonts",type:"text/css",dangerouslySetInnerHTML:{__html:i}})]}),jsxRuntime.jsx(core.PageProvider,{children:jsxRuntime.jsx(core.BuilderComponentProvider,{components:e,children:jsxRuntime.jsx(core.SectionProvider,{data:t,children:jsxRuntime.jsx(jsxRuntime.Fragment,{children:s&&jsxRuntime.jsx(core.BuilderProvider,{state:s,children:jsxRuntime.jsx(core.Render,{uid:"ROOT"})},"body")})})})})]})};exports.default=StaticPage;
@@ -1,14 +1 @@
1
- 'use strict';
2
-
3
- var zustand = require('zustand');
4
-
5
- const libsStore = zustand.create((set)=>({
6
- fontType: 'google',
7
- changeFontType: (fontType)=>{
8
- set({
9
- fontType
10
- });
11
- }
12
- }));
13
-
14
- exports.libsStore = libsStore;
1
+ "use strict";var zustand=require("zustand");const libsStore=zustand.create(e=>({fontType:"google",changeFontType:t=>{e({fontType:t})}}));exports.libsStore=libsStore;
@@ -1,38 +1,2 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { Component } from 'react';
3
-
4
- const initialState = {
5
- hasError: false
6
- };
7
- class ErrorBoundary extends Component {
8
- state = initialState;
9
- static getDerivedStateFromError(error) {
10
- // Update state so the next render will show the fallback UI
11
- return {
12
- hasError: true,
13
- error
14
- };
15
- }
16
- reset = ()=>{
17
- this.setState(initialState);
18
- };
19
- componentDidCatch(error, errorInfo) {
20
- // You can use your own error logging service here
21
- this.props.onError?.(error, errorInfo);
22
- }
23
- render() {
24
- const { FallbackComponent } = this.props;
25
- // Check if the error is thrown
26
- if (this.state.hasError) {
27
- // You can render any custom fallback UI
28
- return /*#__PURE__*/ jsx(FallbackComponent, {
29
- error: this.state.error,
30
- resetErrorBoundary: this.reset
31
- });
32
- }
33
- // Return children components in case of no error
34
- return this.props.children;
35
- }
36
- }
37
-
38
- export { ErrorBoundary };
1
+ 'use client';
2
+ import{jsx as r}from"react/jsx-runtime";import{Component as t}from"react";function _define_property(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}let initialState={hasError:!1};class ErrorBoundary extends t{static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,t){this.props.onError?.(r,t)}render(){let{FallbackComponent:t}=this.props;return this.state.hasError?r(t,{error:this.state.error,resetErrorBoundary:this.reset}):this.props.children}constructor(...r){super(...r),_define_property(this,"state",initialState),_define_property(this,"reset",()=>{this.setState(initialState)})}}export{ErrorBoundary};
@@ -1,24 +1,2 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
-
3
- const ErrorFallback = ({ error, resetErrorBoundary })=>{
4
- return /*#__PURE__*/ jsxs("div", {
5
- role: "alert",
6
- className: "gp-flex gp-flex-col gp-items-center gp-gap-2",
7
- children: [
8
- /*#__PURE__*/ jsx("p", {
9
- className: "gp-text-center gp-text-2xl",
10
- children: "Oops! Something went wrong"
11
- }),
12
- /*#__PURE__*/ jsx("pre", {
13
- children: error?.message
14
- }),
15
- /*#__PURE__*/ jsx("button", {
16
- onClick: resetErrorBoundary,
17
- className: "gp-inline-flex gp-h-10 gp-items-center gp-justify-center gp-gap-2 gp-rounded gp-bg-[#3C67FF] gp-px-6 gp-text-white active:gp-translate-y-1",
18
- children: "Try again"
19
- })
20
- ]
21
- });
22
- };
23
-
24
- export { ErrorFallback };
1
+ 'use client';
2
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";let ErrorFallback=({error:r,resetErrorBoundary:p})=>e("div",{role:"alert",className:"gp-flex gp-flex-col gp-items-center gp-gap-2",children:[t("p",{className:"gp-text-center gp-text-2xl",children:"Oops! Something went wrong"}),t("pre",{children:r?.message}),t("button",{onClick:p,className:"gp-inline-flex gp-h-10 gp-items-center gp-justify-center gp-gap-2 gp-rounded gp-bg-[#3C67FF] gp-px-6 gp-text-white active:gp-translate-y-1",children:"Try again"})]});export{ErrorFallback};
@@ -1,30 +1,5 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import { fpixel } from '@gem-sdk/core';
3
- import { useRouter } from 'next/router';
4
- import Script from 'next/script';
5
- import { useEffect } from 'react';
6
-
7
- const FacebookPixel = ({ pixelId })=>{
8
- const router = useRouter();
9
- useEffect(()=>{
10
- const handleRouteChange = ()=>{
11
- fpixel.pageview();
12
- };
13
- router.events.on('routeChangeComplete', handleRouteChange);
14
- router.events.on('hashChangeComplete', handleRouteChange);
15
- return ()=>{
16
- router.events.off('routeChangeComplete', handleRouteChange);
17
- router.events.off('hashChangeComplete', handleRouteChange);
18
- };
19
- }, [
20
- router.events
21
- ]);
22
- if (!pixelId) return null;
23
- return /*#__PURE__*/ jsx(Script, {
24
- id: "fb-pixel",
25
- strategy: "lazyOnload",
26
- dangerouslySetInnerHTML: {
27
- __html: `
1
+ 'use client';
2
+ import{jsx as e}from"react/jsx-runtime";import{fpixel as t}from"@gem-sdk/core";import{usePathname as n,useSearchParams as r}from"next/navigation";import o from"next/script";import{useEffect as a}from"react";let FacebookPixel=({pixelId:i})=>{let f=n(),s=r();return(a(()=>{let e=()=>{t.pageview()};e()},[f,s]),i)?e(o,{id:"fb-pixel",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
28
3
  !function(f,b,e,v,n,t,s)
29
4
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
30
5
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
@@ -33,11 +8,6 @@ const FacebookPixel = ({ pixelId })=>{
33
8
  t.src=v;s=b.getElementsByTagName(e)[0];
34
9
  s.parentNode.insertBefore(t,s)}(window, document,'script',
35
10
  'https://connect.facebook.net/en_US/fbevents.js');
36
- fbq('init', ${pixelId});
11
+ fbq('init', ${i});
37
12
  fbq('track', 'PageView');
38
- `
39
- }
40
- });
41
- };
42
-
43
- export { FacebookPixel };
13
+ `}}):null};export{FacebookPixel};
@@ -1,30 +1,2 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { cls, makeStyleResponsive } from '@gem-sdk/core';
3
-
4
- const defaultMargin = {
5
- desktop: '40px',
6
- tablet: '40px',
7
- mobile: '40px'
8
- };
9
- const FooterForPostPurchase = (props)=>{
10
- return /*#__PURE__*/ jsx("div", {
11
- className: cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-bg-white gp-font-sans'),
12
- children: /*#__PURE__*/ jsx("div", {
13
- className: "gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",
14
- style: {
15
- maxWidth: `var(--g-ct-w, 1200px)`,
16
- ...makeStyleResponsive('ml', defaultMargin),
17
- ...makeStyleResponsive('mr', defaultMargin)
18
- },
19
- children: /*#__PURE__*/ jsxs("p", {
20
- className: "gp-text-lg",
21
- children: [
22
- "All rights reserved ",
23
- props.shopName
24
- ]
25
- })
26
- })
27
- });
28
- };
29
-
30
- export { FooterForPostPurchase as default };
1
+ 'use client';
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{cls as t,makeStyleResponsive as p}from"@gem-sdk/core";let defaultMargin={desktop:"40px",tablet:"40px",mobile:"40px"},FooterForPostPurchase=o=>e("div",{className:t("gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans"),children:e("div",{className:"gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",style:{maxWidth:"var(--g-ct-w, 1200px)",...p("ml",defaultMargin),...p("mr",defaultMargin)},children:r("p",{className:"gp-text-lg",children:["All rights reserved ",o.shopName]})})});export{FooterForPostPurchase as default};
@@ -1,72 +1,13 @@
1
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import { gtag } from '@gem-sdk/core';
3
- import { useRouter } from 'next/router';
4
- import Script from 'next/script';
5
- import { useEffect } from 'react';
6
-
7
- const GoogleAnalytic = ({ trackingId })=>{
8
- const router = useRouter();
9
- useEffect(()=>{
10
- const handleRouteChange = (url)=>{
11
- gtag.pageview(url, trackingId);
12
- };
13
- router.events.on('routeChangeComplete', handleRouteChange);
14
- router.events.on('hashChangeComplete', handleRouteChange);
15
- return ()=>{
16
- router.events.off('routeChangeComplete', handleRouteChange);
17
- router.events.off('hashChangeComplete', handleRouteChange);
18
- };
19
- }, [
20
- trackingId,
21
- router.events
22
- ]);
23
- const handleOnReady = ()=>{
24
- gtag.pageview(router.pathname, trackingId);
25
- };
26
- if (!trackingId) return null;
27
- if (trackingId.startsWith('UA-')) return /*#__PURE__*/ jsxs(Fragment, {
28
- children: [
29
- /*#__PURE__*/ jsx(Script, {
30
- strategy: "lazyOnload",
31
- onReady: handleOnReady,
32
- src: "https://www.google-analytics.com/analytics.js"
33
- }),
34
- /*#__PURE__*/ jsx(Script, {
35
- id: "google-analytics",
36
- strategy: "lazyOnload",
37
- dangerouslySetInnerHTML: {
38
- __html: `window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
39
- ga('create', '${trackingId}', 'auto');
1
+ 'use client';
2
+ import{jsxs as a,Fragment as t,jsx as e}from"react/jsx-runtime";import{gtag as n}from"@gem-sdk/core";import{useSearchParams as o,usePathname as g}from"next/navigation";import r from"next/script";import{useEffect as i}from"react";let GoogleAnalytic=({trackingId:l})=>{let s=o(),d=g();i(()=>{let a=d+s.toString(),t=a=>{n.pageview(a,l)};t(a)},[l,d,s]);let c=()=>{n.pageview(d,l)};return l?l.startsWith("UA-")?a(t,{children:[e(r,{strategy:"lazyOnload",onReady:c,src:"https://www.google-analytics.com/analytics.js"}),e(r,{id:"google-analytics",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
3
+ ga('create', '${l}', 'auto');
40
4
  ga('require', 'ec');
41
5
  ga('send', 'pageview');
42
- `
43
- }
44
- })
45
- ]
46
- });
47
- return /*#__PURE__*/ jsxs(Fragment, {
48
- children: [
49
- /*#__PURE__*/ jsx(Script, {
50
- strategy: "lazyOnload",
51
- onReady: handleOnReady,
52
- src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}`
53
- }),
54
- /*#__PURE__*/ jsx(Script, {
55
- id: "gtag-init",
56
- strategy: "lazyOnload",
57
- dangerouslySetInnerHTML: {
58
- __html: `
6
+ `}})]}):a(t,{children:[e(r,{strategy:"lazyOnload",onReady:c,src:`https://www.googletagmanager.com/gtag/js?id=${l}`}),e(r,{id:"gtag-init",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
59
7
  window.dataLayer = window.dataLayer || [];
60
8
  function gtag(){dataLayer.push(arguments);}
61
9
  gtag('js', new Date());
62
- gtag('config', '${trackingId}', {
10
+ gtag('config', '${l}', {
63
11
  page_path: window.location.pathname,
64
12
  });
65
- `
66
- }
67
- })
68
- ]
69
- });
70
- };
71
-
72
- export { GoogleAnalytic };
13
+ `}})]}):null};export{GoogleAnalytic};
@@ -1,21 +1,8 @@
1
- import { jsx } from 'react/jsx-runtime';
2
- import Script from 'next/script';
3
-
4
- const TikTokPixel = ({ pixelId })=>{
5
- if (!pixelId) return null;
6
- return /*#__PURE__*/ jsx(Script, {
7
- id: "tiktok-pixel",
8
- strategy: "lazyOnload",
9
- dangerouslySetInnerHTML: {
10
- __html: `
1
+ 'use client';
2
+ import{jsx as t}from"react/jsx-runtime";import e from"next/script";let TikTokPixel=({pixelId:n})=>n?t(e,{id:"tiktok-pixel",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
11
3
  !function (w, d, t) {
12
4
  w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=i+"?sdkid="+e+"&lib="+t;var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(o,a)};
13
- ttq.load('${pixelId}');
5
+ ttq.load('${n}');
14
6
  ttq.page();
15
7
  }(window, document, 'ttq');
16
- `
17
- }
18
- });
19
- };
20
-
21
- export { TikTokPixel };
8
+ `}}):null;export{TikTokPixel};
@@ -1,32 +1,2 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { useMemo } from 'react';
3
- import { useInteraction, cls, RenderPreview } from '@gem-sdk/core';
4
- import CollectionGlobalProvider from '../../pages/CollectionGlobalProvider.js';
5
-
6
- const Body = ({ pageType, isThemeSectionEditor })=>{
7
- const { isInteractionMode, isSelectOnPage } = useInteraction();
8
- const interactionSelectModeClass = useMemo(()=>isSelectOnPage ? 'interaction-select-mode' : '', [
9
- isSelectOnPage
10
- ]);
11
- return /*#__PURE__*/ jsxs("div", {
12
- id: "storefront",
13
- className: cls(isThemeSectionEditor ? 'theme-section-editor' : '', pageType === 'POST_PURCHASE' ? 'post-purchase-page' : '', interactionSelectModeClass),
14
- children: [
15
- pageType !== 'POST_PURCHASE' && /*#__PURE__*/ jsx("div", {
16
- className: "gp-w-full gp-h-full gp-fixed gp-left-0 gp-top-0 gp-z-[99999999]",
17
- style: {
18
- pointerEvents: isInteractionMode ? 'auto' : 'none'
19
- }
20
- }),
21
- pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsx(CollectionGlobalProvider, {
22
- children: /*#__PURE__*/ jsx(RenderPreview, {
23
- uid: "ROOT"
24
- })
25
- }) : /*#__PURE__*/ jsx(RenderPreview, {
26
- uid: "ROOT"
27
- })
28
- ]
29
- });
30
- };
31
-
32
- export { Body as default };
1
+ 'use client';
2
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useMemo as o}from"react";import{useInteraction as r,cls as i,RenderPreview as l}from"@gem-sdk/core";import p from"../../pages/CollectionGlobalProvider.js";let Body=({pageType:s,isThemeSectionEditor:d})=>{let{isInteractionMode:a,isSelectOnPage:m}=r(),n=o(()=>m?"interaction-select-mode":"",[m]);return e("div",{id:"storefront",className:i(d?"theme-section-editor":"","POST_PURCHASE"===s?"post-purchase-page":"",n),children:["POST_PURCHASE"!==s&&t("div",{className:"gp-w-full gp-h-full gp-fixed gp-left-0 gp-top-0 gp-z-[99999999]",style:{pointerEvents:a?"auto":"none"}}),"GP_COLLECTION"===s?t(p,{children:t(l,{uid:"ROOT"})}):t(l,{uid:"ROOT"})]})};export{Body as default};
@@ -1,150 +1,2 @@
1
- import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
- import { useShopStore, cls, makeStyleResponsive } from '@gem-sdk/core';
3
- import { useState, useEffect } from 'react';
4
-
5
- const defaultMargin = {
6
- desktop: '16px',
7
- tablet: '16px',
8
- mobile: '16px'
9
- };
10
- const FOOTER_ON_COLOR = '#E2E2E2';
11
- const FOOTER_OFF_COLOR = '#F4F4F4';
12
- const Footer = (props)=>{
13
- const { pageType, isOriginTemplate, openPageSetting } = props;
14
- const urlParams = new URLSearchParams(window.location.search);
15
- const shopName = urlParams.get('storefrontHandle');
16
- const layoutSetting = useShopStore((s)=>s.layoutSettings);
17
- const activeFooter = layoutSetting?.showFooter || isOriginTemplate;
18
- const footerColor = activeFooter ? FOOTER_ON_COLOR : FOOTER_OFF_COLOR;
19
- const [shouldFixed, setShouldFixed] = useState(false);
20
- useEffect(()=>{
21
- const $iframe = parent.document.body.querySelector('.iframe');
22
- if (!$iframe) return;
23
- const $storefront = document.body.querySelector('#storefront');
24
- if (!$storefront) return;
25
- const headerHeight = 40;
26
- const footerHeight = 48;
27
- const iframeHeight = $iframe.clientHeight;
28
- const comparedHeight = layoutSetting?.showHeader ? iframeHeight - headerHeight - footerHeight : iframeHeight - footerHeight;
29
- const observer = new ResizeObserver((entries)=>{
30
- // Handle set fixed footer
31
- const currentEditingFrameHeight = entries[0]?.target.clientHeight;
32
- if (currentEditingFrameHeight && comparedHeight) setShouldFixed(currentEditingFrameHeight < comparedHeight);
33
- });
34
- observer.observe($storefront);
35
- return ()=>{
36
- observer.unobserve($storefront);
37
- };
38
- }, [
39
- layoutSetting
40
- ]);
41
- return /*#__PURE__*/ jsx(Fragment, {
42
- children: pageType === 'POST_PURCHASE' ? /*#__PURE__*/ jsx("div", {
43
- className: cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-bg-white gp-font-sans'),
44
- children: /*#__PURE__*/ jsx("div", {
45
- className: "gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",
46
- style: {
47
- maxWidth: `var(--g-ct-w, 1200px)`,
48
- ...makeStyleResponsive('ml', defaultMargin),
49
- ...makeStyleResponsive('mr', defaultMargin)
50
- },
51
- children: /*#__PURE__*/ jsxs("p", {
52
- className: "gp-text-lg",
53
- children: [
54
- "All rights reserved ",
55
- shopName
56
- ]
57
- })
58
- })
59
- }) : /*#__PURE__*/ jsx("div", {
60
- className: cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-bg-white gp-font-sans', {
61
- 'gp-fixed gp-bottom-0 gp-w-full': shouldFixed
62
- }),
63
- children: /*#__PURE__*/ jsxs("div", {
64
- className: "gp-flex gp-h-[40px] gp-flex-1 gp-items-center gp-justify-between",
65
- style: {
66
- maxWidth: `var(--g-ct-w)`,
67
- ...makeStyleResponsive('ml', defaultMargin),
68
- ...makeStyleResponsive('mr', defaultMargin)
69
- },
70
- children: [
71
- /*#__PURE__*/ jsxs("svg", {
72
- width: "68",
73
- height: "8",
74
- viewBox: "0 0 68 8",
75
- fill: "none",
76
- xmlns: "http://www.w3.org/2000/svg",
77
- children: [
78
- /*#__PURE__*/ jsx("path", {
79
- d: "M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4C32 6.20914 30.2091 8 28 8H4C1.79086 8 0 6.20914 0 4Z",
80
- fill: footerColor
81
- }),
82
- /*#__PURE__*/ jsx("path", {
83
- d: "M36 4C36 1.79086 37.7909 0 40 0H64C66.2091 0 68 1.79086 68 4C68 6.20914 66.2091 8 64 8H40C37.7909 8 36 6.20914 36 4Z",
84
- fill: footerColor
85
- })
86
- ]
87
- }),
88
- !isOriginTemplate && /*#__PURE__*/ jsx("button", {
89
- className: "gp-footer gp-invisible gp-absolute gp-left-[8px] gp-flex gp-h-[24px] gp-cursor-pointer gp-items-center gp-justify-center gp-rounded gp-bg-[#EEEEEE] gp-p-[4px] hover:gp-bg-[#f4f4f4] group-hover:gp-visible",
90
- onClick: openPageSetting,
91
- children: /*#__PURE__*/ jsxs("div", {
92
- className: "gp-gap-2 gp-flex gp-px-1 gp-h-[24px] gp-items-center gp-justify-center gp-leading-5 gp-text-xs gp-font-medium gp-text-[#212121]",
93
- children: [
94
- /*#__PURE__*/ jsx("span", {
95
- children: /*#__PURE__*/ jsxs("svg", {
96
- width: "14",
97
- height: "14",
98
- viewBox: "0 0 14 14",
99
- fill: "none",
100
- xmlns: "http://www.w3.org/2000/svg",
101
- children: [
102
- /*#__PURE__*/ jsx("path", {
103
- fillRule: "evenodd",
104
- clipRule: "evenodd",
105
- d: "M6.99985 4.08501C5.38983 4.08501 4.08465 5.39019 4.08465 7.00021C4.08465 8.61023 5.38983 9.9154 6.99985 9.9154C8.60987 9.9154 9.91504 8.61023 9.91504 7.00021C9.91504 5.39019 8.60987 4.08501 6.99985 4.08501ZM5.08465 7.00021C5.08465 5.94247 5.94211 5.08501 6.99985 5.08501C8.05758 5.08501 8.91504 5.94247 8.91504 7.00021C8.91504 8.05794 8.05758 8.9154 6.99985 8.9154C5.94211 8.9154 5.08465 8.05794 5.08465 7.00021Z",
106
- fill: "#212121"
107
- }),
108
- /*#__PURE__*/ jsx("path", {
109
- fillRule: "evenodd",
110
- clipRule: "evenodd",
111
- d: "M5.52351 0.00390625C5.28138 0.00390625 5.07405 0.177388 5.03135 0.415715L4.7415 2.03321C4.40346 2.18248 4.08346 2.36419 3.78558 2.57432L2.18557 2.00147C1.95684 1.91958 1.70235 2.01395 1.58232 2.22517L0.122204 4.79451C0.00217064 5.00572 0.0513362 5.27266 0.238747 5.42725L1.50086 6.46836C1.48358 6.64355 1.47474 6.82106 1.47474 7.00047C1.47474 7.17981 1.48357 7.35726 1.50084 7.53238L0.238747 8.57347C0.0513362 8.72806 0.00217064 8.995 0.122203 9.20622L1.58232 11.7756C1.70235 11.9868 1.95684 12.0811 2.18557 11.9993L3.78537 11.4265C4.08332 11.6367 4.40341 11.8185 4.74155 11.9678L5.03135 13.585C5.07405 13.8233 5.28138 13.9968 5.52351 13.9968H8.47647C8.7186 13.9968 8.92593 13.8233 8.96863 13.585L9.25846 11.9676C9.5965 11.8183 9.91649 11.6365 10.2144 11.4264L11.8144 11.9993C12.0431 12.0811 12.2976 11.9868 12.4177 11.7756L13.8778 9.20622C13.9978 8.995 13.9486 8.72806 13.7612 8.57347L12.4988 7.5321C12.516 7.35706 12.5249 7.17971 12.5249 7.00047C12.5249 6.82116 12.516 6.64375 12.4988 6.46864L13.7612 5.42725C13.9486 5.27266 13.9978 5.00572 13.8778 4.79451L12.4177 2.22517C12.2976 2.01395 12.0431 1.91958 11.8144 2.00147L10.2141 2.57441C9.91636 2.36433 9.59645 2.18264 9.25851 2.0334L8.96863 0.415715C8.92593 0.177389 8.7186 0.00390625 8.47647 0.00390625H5.52351ZM5.67747 2.47943L5.94187 1.00391H8.0581L8.32253 2.47958C8.35348 2.6523 8.47271 2.79616 8.63668 2.85863C9.06768 3.02283 9.46674 3.25007 9.82215 3.5288C9.95734 3.63483 10.1375 3.66402 10.2993 3.6061L11.7559 3.08459L12.8007 4.92323L11.6503 5.8722C11.5145 5.98427 11.4476 6.15956 11.4743 6.33366C11.5076 6.55089 11.5249 6.77354 11.5249 7.00047C11.5249 7.22735 11.5076 7.44993 11.4743 7.66711C11.4476 7.8412 11.5145 8.01648 11.6504 8.12855L12.8007 9.07749L11.7559 10.9161L10.2994 10.3947C10.1377 10.3368 9.95752 10.366 9.82233 10.472C9.46686 10.7508 9.06773 10.9781 8.63664 11.1423C8.47267 11.2048 8.35344 11.3487 8.32249 11.5214L8.0581 12.9968H5.94187L5.67752 11.5215C5.64656 11.3488 5.52732 11.2049 5.36333 11.1425C4.93215 10.9782 4.53292 10.7509 4.17738 10.4721C4.04219 10.3661 3.86203 10.3369 3.70027 10.3948L2.24412 10.9161L1.19924 9.07749L2.34929 8.12883C2.48516 8.01675 2.55204 7.84146 2.52535 7.66736C2.49205 7.4501 2.47474 7.22743 2.47474 7.00047C2.47474 6.77345 2.49206 6.55072 2.52538 6.33341C2.55207 6.15931 2.48519 5.984 2.34932 5.87192L1.19924 4.92323L2.24412 3.08459L3.70047 3.60601C3.86221 3.66392 4.04236 3.63474 4.17755 3.52872C4.53304 3.24994 4.93219 3.02269 5.36329 2.85849C5.52728 2.79603 5.64652 2.65216 5.67747 2.47943Z",
112
- fill: "#212121"
113
- })
114
- ]
115
- })
116
- }),
117
- /*#__PURE__*/ jsx("span", {
118
- children: "Footer"
119
- })
120
- ]
121
- })
122
- }),
123
- /*#__PURE__*/ jsxs("svg", {
124
- width: "104",
125
- height: "8",
126
- viewBox: "0 0 104 8",
127
- fill: "none",
128
- xmlns: "http://www.w3.org/2000/svg",
129
- children: [
130
- /*#__PURE__*/ jsx("path", {
131
- d: "M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4C32 6.20914 30.2091 8 28 8H4C1.79086 8 0 6.20914 0 4Z",
132
- fill: footerColor
133
- }),
134
- /*#__PURE__*/ jsx("path", {
135
- d: "M36 4C36 1.79086 37.7909 0 40 0H64C66.2091 0 68 1.79086 68 4C68 6.20914 66.2091 8 64 8H40C37.7909 8 36 6.20914 36 4Z",
136
- fill: footerColor
137
- }),
138
- /*#__PURE__*/ jsx("path", {
139
- d: "M72 4C72 1.79086 73.7909 0 76 0H100C102.209 0 104 1.79086 104 4C104 6.20914 102.209 8 100 8H76C73.7909 8 72 6.20914 72 4Z",
140
- fill: footerColor
141
- })
142
- ]
143
- })
144
- ]
145
- })
146
- })
147
- });
148
- };
149
-
150
- export { Footer as default };
1
+ 'use client';
2
+ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useShopStore as l,cls as p,makeStyleResponsive as g}from"@gem-sdk/core";import{useState as i,useEffect as o}from"react";let defaultMargin={desktop:"16px",tablet:"16px",mobile:"16px"},FOOTER_ON_COLOR="#E2E2E2",FOOTER_OFF_COLOR="#F4F4F4",Footer=n=>{let{pageType:C,isOriginTemplate:d,openPageSetting:s}=n,a=new URLSearchParams(window.location.search),f=a.get("storefrontHandle"),c=l(e=>e.layoutSettings),h=c?.showFooter||d,m=h?"#E2E2E2":"#F4F4F4",[u,L]=i(!1);return o(()=>{let e=parent.document.body.querySelector(".iframe");if(!e)return;let t=document.body.querySelector("#storefront");if(!t)return;let r=e.clientHeight,l=c?.showHeader?r-40-48:r-48,p=new ResizeObserver(e=>{let t=e[0]?.target.clientHeight;t&&l&&L(t<l)});return p.observe(t),()=>{p.unobserve(t)}},[c]),e(t,{children:"POST_PURCHASE"===C?e("div",{className:p("gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans"),children:e("div",{className:"gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",style:{maxWidth:"var(--g-ct-w, 1200px)",...g("ml",defaultMargin),...g("mr",defaultMargin)},children:r("p",{className:"gp-text-lg",children:["All rights reserved ",f]})})}):e("div",{className:p("gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE gp-font-sans",{"gp-fixed gp-bottom-0 gp-w-full":u}),children:r("div",{className:"gp-flex gp-h-[40px] gp-flex-1 gp-items-center gp-justify-between",style:{maxWidth:"var(--g-ct-w)",...g("ml",defaultMargin),...g("mr",defaultMargin)},children:[r("svg",{width:"68",height:"8",viewBox:"0 0 68 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4C32 6.20914 30.2091 8 28 8H4C1.79086 8 0 6.20914 0 4Z",fill:m}),e("path",{d:"M36 4C36 1.79086 37.7909 0 40 0H64C66.2091 0 68 1.79086 68 4C68 6.20914 66.2091 8 64 8H40C37.7909 8 36 6.20914 36 4Z",fill:m})]}),!d&&e("button",{className:"gp-footer gp-invisible gp-absolute gp-left-[8px] gp-flex gp-h-[24px] gp-cursor-pointer gp-items-center gp-justify-center gp-rounded gp-bg-[#EEEEEE] gp-p-[4px] hover:gp-bg-[#f4f4f4] group-hover:gp-visible",onClick:s,children:r("div",{className:"gp-gap-2 gp-flex gp-px-1 gp-h-[24px] gp-items-center gp-justify-center gp-leading-5 gp-text-xs gp-font-medium gp-text-[#212121]",children:[e("span",{children:r("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99985 4.08501C5.38983 4.08501 4.08465 5.39019 4.08465 7.00021C4.08465 8.61023 5.38983 9.9154 6.99985 9.9154C8.60987 9.9154 9.91504 8.61023 9.91504 7.00021C9.91504 5.39019 8.60987 4.08501 6.99985 4.08501ZM5.08465 7.00021C5.08465 5.94247 5.94211 5.08501 6.99985 5.08501C8.05758 5.08501 8.91504 5.94247 8.91504 7.00021C8.91504 8.05794 8.05758 8.9154 6.99985 8.9154C5.94211 8.9154 5.08465 8.05794 5.08465 7.00021Z",fill:"#212121"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.52351 0.00390625C5.28138 0.00390625 5.07405 0.177388 5.03135 0.415715L4.7415 2.03321C4.40346 2.18248 4.08346 2.36419 3.78558 2.57432L2.18557 2.00147C1.95684 1.91958 1.70235 2.01395 1.58232 2.22517L0.122204 4.79451C0.00217064 5.00572 0.0513362 5.27266 0.238747 5.42725L1.50086 6.46836C1.48358 6.64355 1.47474 6.82106 1.47474 7.00047C1.47474 7.17981 1.48357 7.35726 1.50084 7.53238L0.238747 8.57347C0.0513362 8.72806 0.00217064 8.995 0.122203 9.20622L1.58232 11.7756C1.70235 11.9868 1.95684 12.0811 2.18557 11.9993L3.78537 11.4265C4.08332 11.6367 4.40341 11.8185 4.74155 11.9678L5.03135 13.585C5.07405 13.8233 5.28138 13.9968 5.52351 13.9968H8.47647C8.7186 13.9968 8.92593 13.8233 8.96863 13.585L9.25846 11.9676C9.5965 11.8183 9.91649 11.6365 10.2144 11.4264L11.8144 11.9993C12.0431 12.0811 12.2976 11.9868 12.4177 11.7756L13.8778 9.20622C13.9978 8.995 13.9486 8.72806 13.7612 8.57347L12.4988 7.5321C12.516 7.35706 12.5249 7.17971 12.5249 7.00047C12.5249 6.82116 12.516 6.64375 12.4988 6.46864L13.7612 5.42725C13.9486 5.27266 13.9978 5.00572 13.8778 4.79451L12.4177 2.22517C12.2976 2.01395 12.0431 1.91958 11.8144 2.00147L10.2141 2.57441C9.91636 2.36433 9.59645 2.18264 9.25851 2.0334L8.96863 0.415715C8.92593 0.177389 8.7186 0.00390625 8.47647 0.00390625H5.52351ZM5.67747 2.47943L5.94187 1.00391H8.0581L8.32253 2.47958C8.35348 2.6523 8.47271 2.79616 8.63668 2.85863C9.06768 3.02283 9.46674 3.25007 9.82215 3.5288C9.95734 3.63483 10.1375 3.66402 10.2993 3.6061L11.7559 3.08459L12.8007 4.92323L11.6503 5.8722C11.5145 5.98427 11.4476 6.15956 11.4743 6.33366C11.5076 6.55089 11.5249 6.77354 11.5249 7.00047C11.5249 7.22735 11.5076 7.44993 11.4743 7.66711C11.4476 7.8412 11.5145 8.01648 11.6504 8.12855L12.8007 9.07749L11.7559 10.9161L10.2994 10.3947C10.1377 10.3368 9.95752 10.366 9.82233 10.472C9.46686 10.7508 9.06773 10.9781 8.63664 11.1423C8.47267 11.2048 8.35344 11.3487 8.32249 11.5214L8.0581 12.9968H5.94187L5.67752 11.5215C5.64656 11.3488 5.52732 11.2049 5.36333 11.1425C4.93215 10.9782 4.53292 10.7509 4.17738 10.4721C4.04219 10.3661 3.86203 10.3369 3.70027 10.3948L2.24412 10.9161L1.19924 9.07749L2.34929 8.12883C2.48516 8.01675 2.55204 7.84146 2.52535 7.66736C2.49205 7.4501 2.47474 7.22743 2.47474 7.00047C2.47474 6.77345 2.49206 6.55072 2.52538 6.33341C2.55207 6.15931 2.48519 5.984 2.34932 5.87192L1.19924 4.92323L2.24412 3.08459L3.70047 3.60601C3.86221 3.66392 4.04236 3.63474 4.17755 3.52872C4.53304 3.24994 4.93219 3.02269 5.36329 2.85849C5.52728 2.79603 5.64652 2.65216 5.67747 2.47943Z",fill:"#212121"})]})}),e("span",{children:"Footer"})]})}),r("svg",{width:"104",height:"8",viewBox:"0 0 104 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H28C30.2091 0 32 1.79086 32 4C32 6.20914 30.2091 8 28 8H4C1.79086 8 0 6.20914 0 4Z",fill:m}),e("path",{d:"M36 4C36 1.79086 37.7909 0 40 0H64C66.2091 0 68 1.79086 68 4C68 6.20914 66.2091 8 64 8H40C37.7909 8 36 6.20914 36 4Z",fill:m}),e("path",{d:"M72 4C72 1.79086 73.7909 0 76 0H100C102.209 0 104 1.79086 104 4C104 6.20914 102.209 8 100 8H76C73.7909 8 72 6.20914 72 4Z",fill:m})]})]})})})};export{Footer as default};