@gem-sdk/pages 2.0.0-staging.711 → 2.0.0-staging.764
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/dist/cjs/components/ErrorBoundary.js +1 -40
- package/dist/cjs/components/ErrorFallback.js +1 -26
- package/dist/cjs/components/FacebookPixel.js +3 -33
- package/dist/cjs/components/FooterForPostPurchase.js +1 -34
- package/dist/cjs/components/GoogleAnalytic.js +5 -65
- package/dist/cjs/components/TikTokPixel.js +3 -19
- package/dist/cjs/components/builder/Body.js +1 -36
- package/dist/cjs/components/builder/Footer.js +1 -154
- package/dist/cjs/components/builder/Header.js +1 -186
- package/dist/cjs/components/builder/PopupManager.js +1 -63
- package/dist/cjs/components/builder/SwitchView.js +1 -184
- package/dist/cjs/components/builder/Toolbar.js +1 -706
- package/dist/cjs/components/builder/Toolbox.js +1 -508
- package/dist/cjs/components/builder/const.js +1 -56
- package/dist/cjs/components/builder/toolbar/const.js +1 -7
- package/dist/cjs/components/builder/toolbar/utils/findDOMClosest.js +1 -41
- package/dist/cjs/components/builder/toolbar/utils/findOverflowParent.js +1 -20
- package/dist/cjs/components/builder/toolbar/utils/getChildrenByAttrSelector.js +1 -18
- package/dist/cjs/components/builder/toolbar/utils/getDOMElementParents.js +1 -32
- package/dist/cjs/components/builder/toolbar/utils/isOverParent.js +1 -16
- package/dist/cjs/components/builder/toolbar/utils/isOverToolbarPosition.js +1 -12
- package/dist/cjs/components/builder/toolbar/utils/isSection.js +1 -8
- package/dist/cjs/components/builder/toolbar/utils/notVisible.js +1 -8
- package/dist/cjs/components/builder/toolbar/utils/waitForElementToExist.js +1 -27
- package/dist/cjs/components/composable/getListFontWeightTypos.js +1 -14
- package/dist/cjs/components/image-to-layout/AddSectionImageToLayout.js +1 -151
- package/dist/cjs/components/image-to-layout/DropElement.js +1 -191
- package/dist/cjs/components/image-to-layout/ImageToLayout.js +1 -41
- package/dist/cjs/constants/index.js +1 -15
- package/dist/cjs/index.js +1 -80
- package/dist/cjs/layouts/main.js +1 -30
- package/dist/cjs/libs/api/get-builder-props.js +1 -46
- package/dist/cjs/libs/api/get-collection-props.js +1 -68
- package/dist/cjs/libs/api/get-home-page-props-v2.js +1 -157
- package/dist/cjs/libs/api/get-home-page-props.js +1 -163
- package/dist/cjs/libs/api/get-post-purchase-props-preview.js +1 -301
- package/dist/cjs/libs/api/get-preview-props.js +1 -18
- package/dist/cjs/libs/api/get-product-props.js +1 -73
- package/dist/cjs/libs/api/get-static-page-props-preview.js +1 -160
- package/dist/cjs/libs/api/get-static-page-props-v2.js +1 -173
- package/dist/cjs/libs/api/get-static-page-props.js +1 -161
- package/dist/cjs/libs/custom-fonts.js +6 -60
- package/dist/cjs/libs/fetcher.js +1 -100
- package/dist/cjs/libs/get-layout.js +1 -13
- package/dist/cjs/libs/get-storefront-api.js +1 -12
- package/dist/cjs/libs/getStaticPaths.js +1 -10
- package/dist/cjs/libs/google-fonts.js +1 -138
- package/dist/cjs/libs/helpers/check-option-font.js +1 -65
- package/dist/cjs/libs/helpers/common.js +1 -27
- package/dist/cjs/libs/helpers/gen-css.js +1 -135
- package/dist/cjs/libs/helpers/gen-fonts.js +1 -96
- package/dist/cjs/libs/helpers/generate-manifres.js +1 -5
- package/dist/cjs/libs/helpers/get-fallback.js +1 -34
- package/dist/cjs/libs/helpers/get-metafield.js +1 -7
- package/dist/cjs/libs/helpers/normalize.js +1 -112
- package/dist/cjs/libs/helpers/parse-json.js +1 -16
- package/dist/cjs/libs/helpers/sentry.js +1 -17
- package/dist/cjs/libs/helpers/user-agent.js +1 -7
- package/dist/cjs/libs/hooks/use-tracking-view.js +1 -42
- package/dist/cjs/libs/hooks/usePagePreview.js +1 -92
- package/dist/cjs/libs/parse-html.js +1 -34
- package/dist/cjs/libs/shopify-cdn-with-google-fonts.js +1 -1845
- package/dist/cjs/pages/404.js +1 -43
- package/dist/cjs/pages/500.js +1 -74
- package/dist/cjs/pages/CollectionGlobalProvider.js +1 -59
- package/dist/cjs/pages/builder.js +1 -119
- package/dist/cjs/pages/collection-detail.js +1 -64
- package/dist/cjs/pages/preview.js +1 -26
- package/dist/cjs/pages/product-detail.js +1 -69
- package/dist/cjs/pages/static-v2.js +3 -142
- package/dist/cjs/pages/static.js +1 -75
- package/dist/cjs/store/libs-store.js +1 -14
- package/dist/esm/components/ErrorBoundary.js +1 -38
- package/dist/esm/components/ErrorFallback.js +1 -24
- package/dist/esm/components/FacebookPixel.js +3 -31
- package/dist/esm/components/FooterForPostPurchase.js +1 -30
- package/dist/esm/components/GoogleAnalytic.js +5 -63
- package/dist/esm/components/TikTokPixel.js +3 -17
- package/dist/esm/components/builder/Body.js +1 -32
- package/dist/esm/components/builder/Footer.js +1 -150
- package/dist/esm/components/builder/Header.js +1 -182
- package/dist/esm/components/builder/PopupManager.js +1 -59
- package/dist/esm/components/builder/SwitchView.js +1 -180
- package/dist/esm/components/builder/Toolbar.js +1 -702
- package/dist/esm/components/builder/Toolbox.js +1 -504
- package/dist/esm/components/builder/const.js +1 -54
- package/dist/esm/components/builder/toolbar/const.js +1 -4
- package/dist/esm/components/builder/toolbar/utils/findDOMClosest.js +1 -39
- package/dist/esm/components/builder/toolbar/utils/findOverflowParent.js +1 -18
- package/dist/esm/components/builder/toolbar/utils/getChildrenByAttrSelector.js +1 -16
- package/dist/esm/components/builder/toolbar/utils/getDOMElementParents.js +1 -30
- package/dist/esm/components/builder/toolbar/utils/isOverParent.js +1 -14
- package/dist/esm/components/builder/toolbar/utils/isOverToolbarPosition.js +1 -10
- package/dist/esm/components/builder/toolbar/utils/isSection.js +1 -6
- package/dist/esm/components/builder/toolbar/utils/notVisible.js +1 -6
- package/dist/esm/components/builder/toolbar/utils/waitForElementToExist.js +1 -25
- package/dist/esm/components/composable/getListFontWeightTypos.js +1 -12
- package/dist/esm/components/image-to-layout/AddSectionImageToLayout.js +1 -147
- package/dist/esm/components/image-to-layout/DropElement.js +1 -189
- package/dist/esm/components/image-to-layout/ImageToLayout.js +1 -37
- package/dist/esm/constants/index.js +1 -15
- package/dist/esm/index.js +1 -35
- package/dist/esm/layouts/main.js +1 -26
- package/dist/esm/libs/api/get-builder-props.js +1 -44
- package/dist/esm/libs/api/get-collection-props.js +1 -66
- package/dist/esm/libs/api/get-home-page-props-v2.js +1 -155
- package/dist/esm/libs/api/get-home-page-props.js +1 -161
- package/dist/esm/libs/api/get-post-purchase-props-preview.js +1 -293
- package/dist/esm/libs/api/get-preview-props.js +1 -16
- package/dist/esm/libs/api/get-product-props.js +1 -71
- package/dist/esm/libs/api/get-static-page-props-preview.js +1 -158
- package/dist/esm/libs/api/get-static-page-props-v2.js +1 -171
- package/dist/esm/libs/api/get-static-page-props.js +1 -159
- package/dist/esm/libs/custom-fonts.js +6 -55
- package/dist/esm/libs/fetcher.js +1 -96
- package/dist/esm/libs/get-layout.js +1 -11
- package/dist/esm/libs/get-storefront-api.js +1 -10
- package/dist/esm/libs/getStaticPaths.js +1 -8
- package/dist/esm/libs/google-fonts.js +1 -132
- package/dist/esm/libs/helpers/check-option-font.js +1 -63
- package/dist/esm/libs/helpers/common.js +1 -24
- package/dist/esm/libs/helpers/gen-css.js +1 -133
- package/dist/esm/libs/helpers/gen-fonts.js +1 -93
- package/dist/esm/libs/helpers/generate-manifres.js +1 -3
- package/dist/esm/libs/helpers/get-fallback.js +1 -32
- package/dist/esm/libs/helpers/get-metafield.js +1 -5
- package/dist/esm/libs/helpers/normalize.js +1 -104
- package/dist/esm/libs/helpers/parse-json.js +1 -13
- package/dist/esm/libs/helpers/sentry.js +1 -15
- package/dist/esm/libs/helpers/user-agent.js +1 -5
- package/dist/esm/libs/hooks/use-tracking-view.js +1 -40
- package/dist/esm/libs/hooks/usePagePreview.js +1 -90
- package/dist/esm/libs/parse-html.js +1 -32
- package/dist/esm/libs/shopify-cdn-with-google-fonts.js +1 -1843
- package/dist/esm/pages/404.js +1 -41
- package/dist/esm/pages/500.js +1 -72
- package/dist/esm/pages/CollectionGlobalProvider.js +1 -55
- package/dist/esm/pages/builder.js +1 -117
- package/dist/esm/pages/collection-detail.js +1 -60
- package/dist/esm/pages/preview.js +1 -24
- package/dist/esm/pages/product-detail.js +1 -65
- package/dist/esm/pages/static-v2.js +3 -140
- package/dist/esm/pages/static.js +1 -71
- package/dist/esm/store/libs-store.js +1 -12
- package/package.json +2 -2
|
@@ -1,41 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
|
|
7
|
-
const initialState = {
|
|
8
|
-
hasError: false
|
|
9
|
-
};
|
|
10
|
-
class ErrorBoundary extends react.Component {
|
|
11
|
-
state = initialState;
|
|
12
|
-
static getDerivedStateFromError(error) {
|
|
13
|
-
// Update state so the next render will show the fallback UI
|
|
14
|
-
return {
|
|
15
|
-
hasError: true,
|
|
16
|
-
error
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
reset = ()=>{
|
|
20
|
-
this.setState(initialState);
|
|
21
|
-
};
|
|
22
|
-
componentDidCatch(error, errorInfo) {
|
|
23
|
-
// You can use your own error logging service here
|
|
24
|
-
this.props.onError?.(error, errorInfo);
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const { FallbackComponent } = this.props;
|
|
28
|
-
// Check if the error is thrown
|
|
29
|
-
if (this.state.hasError) {
|
|
30
|
-
// You can render any custom fallback UI
|
|
31
|
-
return /*#__PURE__*/ jsxRuntime.jsx(FallbackComponent, {
|
|
32
|
-
error: this.state.error,
|
|
33
|
-
resetErrorBoundary: this.reset
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
// Return children components in case of no error
|
|
37
|
-
return this.props.children;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.ErrorBoundary = ErrorBoundary;
|
|
2
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),react=require("react");function _define_property(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}const initialState={hasError:!1};class ErrorBoundary extends react.Component{static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,e){this.props.onError?.(r,e)}render(){let{FallbackComponent:r}=this.props;return this.state.hasError?jsxRuntime.jsx(r,{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)})}}exports.ErrorBoundary=ErrorBoundary;
|
|
@@ -1,27 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
const ErrorFallback = ({ error, resetErrorBoundary })=>{
|
|
7
|
-
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
8
|
-
role: "alert",
|
|
9
|
-
className: "gp-flex gp-flex-col gp-items-center gp-gap-2",
|
|
10
|
-
children: [
|
|
11
|
-
/*#__PURE__*/ jsxRuntime.jsx("p", {
|
|
12
|
-
className: "gp-text-center gp-text-2xl",
|
|
13
|
-
children: "Oops! Something went wrong"
|
|
14
|
-
}),
|
|
15
|
-
/*#__PURE__*/ jsxRuntime.jsx("pre", {
|
|
16
|
-
children: error?.message
|
|
17
|
-
}),
|
|
18
|
-
/*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
19
|
-
onClick: resetErrorBoundary,
|
|
20
|
-
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",
|
|
21
|
-
children: "Try again"
|
|
22
|
-
})
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.ErrorFallback = ErrorFallback;
|
|
2
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime");const ErrorFallback=({error:e,resetErrorBoundary:t})=>jsxRuntime.jsxs("div",{role:"alert",className:"gp-flex gp-flex-col gp-items-center gp-gap-2",children:[jsxRuntime.jsx("p",{className:"gp-text-center gp-text-2xl",children:"Oops! Something went wrong"}),jsxRuntime.jsx("pre",{children:e?.message}),jsxRuntime.jsx("button",{onClick:t,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"})]});exports.ErrorFallback=ErrorFallback;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var core = require('@gem-sdk/core');
|
|
6
|
-
var navigation = require('next/navigation');
|
|
7
|
-
var Script = require('next/script');
|
|
8
|
-
var react = require('react');
|
|
9
|
-
|
|
10
|
-
const FacebookPixel = ({ pixelId })=>{
|
|
11
|
-
const pathName = navigation.usePathname();
|
|
12
|
-
const searchParams = navigation.useSearchParams();
|
|
13
|
-
react.useEffect(()=>{
|
|
14
|
-
const handleRouteChange = ()=>{
|
|
15
|
-
core.fpixel.pageview();
|
|
16
|
-
};
|
|
17
|
-
handleRouteChange();
|
|
18
|
-
}, [
|
|
19
|
-
pathName,
|
|
20
|
-
searchParams
|
|
21
|
-
]);
|
|
22
|
-
if (!pixelId) return null;
|
|
23
|
-
return /*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
24
|
-
id: "fb-pixel",
|
|
25
|
-
strategy: "lazyOnload",
|
|
26
|
-
dangerouslySetInnerHTML: {
|
|
27
|
-
__html: `
|
|
2
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),navigation=require("next/navigation"),Script=require("next/script"),react=require("react");const FacebookPixel=({pixelId:e})=>{let t=navigation.usePathname(),n=navigation.useSearchParams();return(react.useEffect(()=>{let e=()=>{core.fpixel.pageview()};e()},[t,n]),e)?jsxRuntime.jsx(Script,{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', ${
|
|
11
|
+
fbq('init', ${e});
|
|
37
12
|
fbq('track', 'PageView');
|
|
38
|
-
`
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.FacebookPixel = FacebookPixel;
|
|
13
|
+
`}}):null};exports.FacebookPixel=FacebookPixel;
|
|
@@ -1,35 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var core = require('@gem-sdk/core');
|
|
8
|
-
|
|
9
|
-
const defaultMargin = {
|
|
10
|
-
desktop: '40px',
|
|
11
|
-
tablet: '40px',
|
|
12
|
-
mobile: '40px'
|
|
13
|
-
};
|
|
14
|
-
const FooterForPostPurchase = (props)=>{
|
|
15
|
-
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
16
|
-
className: core.cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans'),
|
|
17
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
18
|
-
className: "gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",
|
|
19
|
-
style: {
|
|
20
|
-
maxWidth: `var(--g-ct-w, 1200px)`,
|
|
21
|
-
...core.makeStyleResponsive('ml', defaultMargin),
|
|
22
|
-
...core.makeStyleResponsive('mr', defaultMargin)
|
|
23
|
-
},
|
|
24
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("p", {
|
|
25
|
-
className: "gp-text-lg",
|
|
26
|
-
children: [
|
|
27
|
-
"All rights reserved ",
|
|
28
|
-
props.shopName
|
|
29
|
-
]
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
exports.default = FooterForPostPurchase;
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core");const defaultMargin={desktop:"40px",tablet:"40px",mobile:"40px"},FooterForPostPurchase=e=>jsxRuntime.jsx("div",{className:core.cls("gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans"),children:jsxRuntime.jsx("div",{className:"gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",style:{maxWidth:"var(--g-ct-w, 1200px)",...core.makeStyleResponsive("ml",defaultMargin),...core.makeStyleResponsive("mr",defaultMargin)},children:jsxRuntime.jsxs("p",{className:"gp-text-lg",children:["All rights reserved ",e.shopName]})})});exports.default=FooterForPostPurchase;
|
|
@@ -1,73 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var core = require('@gem-sdk/core');
|
|
6
|
-
var navigation = require('next/navigation');
|
|
7
|
-
var Script = require('next/script');
|
|
8
|
-
var react = require('react');
|
|
9
|
-
|
|
10
|
-
const GoogleAnalytic = ({ trackingId })=>{
|
|
11
|
-
const searchParams = navigation.useSearchParams();
|
|
12
|
-
const pathName = navigation.usePathname();
|
|
13
|
-
react.useEffect(()=>{
|
|
14
|
-
const url = pathName + searchParams.toString();
|
|
15
|
-
const handleRouteChange = (url)=>{
|
|
16
|
-
core.gtag.pageview(url, trackingId);
|
|
17
|
-
};
|
|
18
|
-
handleRouteChange(url);
|
|
19
|
-
}, [
|
|
20
|
-
trackingId,
|
|
21
|
-
pathName,
|
|
22
|
-
searchParams
|
|
23
|
-
]);
|
|
24
|
-
const handleOnReady = ()=>{
|
|
25
|
-
core.gtag.pageview(pathName, trackingId);
|
|
26
|
-
};
|
|
27
|
-
if (!trackingId) return null;
|
|
28
|
-
if (trackingId.startsWith('UA-')) return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
29
|
-
children: [
|
|
30
|
-
/*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
31
|
-
strategy: "lazyOnload",
|
|
32
|
-
onReady: handleOnReady,
|
|
33
|
-
src: "https://www.google-analytics.com/analytics.js"
|
|
34
|
-
}),
|
|
35
|
-
/*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
36
|
-
id: "google-analytics",
|
|
37
|
-
strategy: "lazyOnload",
|
|
38
|
-
dangerouslySetInnerHTML: {
|
|
39
|
-
__html: `window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
|
40
|
-
ga('create', '${trackingId}', 'auto');
|
|
2
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),navigation=require("next/navigation"),Script=require("next/script"),react=require("react");const GoogleAnalytic=({trackingId:e})=>{let t=navigation.useSearchParams(),a=navigation.usePathname();react.useEffect(()=>{let n=a+t.toString(),i=t=>{core.gtag.pageview(t,e)};i(n)},[e,a,t]);let n=()=>{core.gtag.pageview(a,e)};return e?e.startsWith("UA-")?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Script,{strategy:"lazyOnload",onReady:n,src:"https://www.google-analytics.com/analytics.js"}),jsxRuntime.jsx(Script,{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', '${e}', 'auto');
|
|
41
4
|
ga('require', 'ec');
|
|
42
5
|
ga('send', 'pageview');
|
|
43
|
-
`
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
]
|
|
47
|
-
});
|
|
48
|
-
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
49
|
-
children: [
|
|
50
|
-
/*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
51
|
-
strategy: "lazyOnload",
|
|
52
|
-
onReady: handleOnReady,
|
|
53
|
-
src: `https://www.googletagmanager.com/gtag/js?id=${trackingId}`
|
|
54
|
-
}),
|
|
55
|
-
/*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
56
|
-
id: "gtag-init",
|
|
57
|
-
strategy: "lazyOnload",
|
|
58
|
-
dangerouslySetInnerHTML: {
|
|
59
|
-
__html: `
|
|
6
|
+
`}})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Script,{strategy:"lazyOnload",onReady:n,src:`https://www.googletagmanager.com/gtag/js?id=${e}`}),jsxRuntime.jsx(Script,{id:"gtag-init",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
|
|
60
7
|
window.dataLayer = window.dataLayer || [];
|
|
61
8
|
function gtag(){dataLayer.push(arguments);}
|
|
62
9
|
gtag('js', new Date());
|
|
63
|
-
gtag('config', '${
|
|
10
|
+
gtag('config', '${e}', {
|
|
64
11
|
page_path: window.location.pathname,
|
|
65
12
|
});
|
|
66
|
-
`
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
exports.GoogleAnalytic = GoogleAnalytic;
|
|
13
|
+
`}})]}):null};exports.GoogleAnalytic=GoogleAnalytic;
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var Script = require('next/script');
|
|
6
|
-
|
|
7
|
-
const TikTokPixel = ({ pixelId })=>{
|
|
8
|
-
if (!pixelId) return null;
|
|
9
|
-
return /*#__PURE__*/ jsxRuntime.jsx(Script, {
|
|
10
|
-
id: "tiktok-pixel",
|
|
11
|
-
strategy: "lazyOnload",
|
|
12
|
-
dangerouslySetInnerHTML: {
|
|
13
|
-
__html: `
|
|
2
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),Script=require("next/script");const TikTokPixel=({pixelId:t})=>t?jsxRuntime.jsx(Script,{id:"tiktok-pixel",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:`
|
|
14
3
|
!function (w, d, t) {
|
|
15
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)};
|
|
16
|
-
ttq.load('${
|
|
5
|
+
ttq.load('${t}');
|
|
17
6
|
ttq.page();
|
|
18
7
|
}(window, document, 'ttq');
|
|
19
|
-
`
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
exports.TikTokPixel = TikTokPixel;
|
|
8
|
+
`}}):null;exports.TikTokPixel=TikTokPixel;
|
|
@@ -1,37 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var react = require('react');
|
|
8
|
-
var core = require('@gem-sdk/core');
|
|
9
|
-
var CollectionGlobalProvider = require('../../pages/CollectionGlobalProvider.js');
|
|
10
|
-
|
|
11
|
-
const Body = ({ pageType, isThemeSectionEditor })=>{
|
|
12
|
-
const { isInteractionMode, isSelectOnPage } = core.useInteraction();
|
|
13
|
-
const interactionSelectModeClass = react.useMemo(()=>isSelectOnPage ? 'interaction-select-mode' : '', [
|
|
14
|
-
isSelectOnPage
|
|
15
|
-
]);
|
|
16
|
-
return /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
17
|
-
id: "storefront",
|
|
18
|
-
className: core.cls(isThemeSectionEditor ? 'theme-section-editor' : '', pageType === 'POST_PURCHASE' ? 'post-purchase-page' : '', interactionSelectModeClass),
|
|
19
|
-
children: [
|
|
20
|
-
pageType !== 'POST_PURCHASE' && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
21
|
-
className: "gp-w-full gp-h-full gp-fixed gp-left-0 gp-top-0 gp-z-[99999999]",
|
|
22
|
-
style: {
|
|
23
|
-
pointerEvents: isInteractionMode ? 'auto' : 'none'
|
|
24
|
-
}
|
|
25
|
-
}),
|
|
26
|
-
pageType === 'GP_COLLECTION' ? /*#__PURE__*/ jsxRuntime.jsx(CollectionGlobalProvider.default, {
|
|
27
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
|
|
28
|
-
uid: "ROOT"
|
|
29
|
-
})
|
|
30
|
-
}) : /*#__PURE__*/ jsxRuntime.jsx(core.RenderPreview, {
|
|
31
|
-
uid: "ROOT"
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
exports.default = Body;
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),react=require("react"),core=require("@gem-sdk/core"),CollectionGlobalProvider=require("../../pages/CollectionGlobalProvider.js");const Body=({pageType:e,isThemeSectionEditor:r})=>{let{isInteractionMode:t,isSelectOnPage:o}=core.useInteraction(),s=react.useMemo(()=>o?"interaction-select-mode":"",[o]);return jsxRuntime.jsxs("div",{id:"storefront",className:core.cls(r?"theme-section-editor":"","POST_PURCHASE"===e?"post-purchase-page":"",s),children:["POST_PURCHASE"!==e&&jsxRuntime.jsx("div",{className:"gp-w-full gp-h-full gp-fixed gp-left-0 gp-top-0 gp-z-[99999999]",style:{pointerEvents:t?"auto":"none"}}),"GP_COLLECTION"===e?jsxRuntime.jsx(CollectionGlobalProvider.default,{children:jsxRuntime.jsx(core.RenderPreview,{uid:"ROOT"})}):jsxRuntime.jsx(core.RenderPreview,{uid:"ROOT"})]})};exports.default=Body;
|
|
@@ -1,155 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var core = require('@gem-sdk/core');
|
|
8
|
-
var react = require('react');
|
|
9
|
-
|
|
10
|
-
const defaultMargin = {
|
|
11
|
-
desktop: '16px',
|
|
12
|
-
tablet: '16px',
|
|
13
|
-
mobile: '16px'
|
|
14
|
-
};
|
|
15
|
-
const FOOTER_ON_COLOR = '#E2E2E2';
|
|
16
|
-
const FOOTER_OFF_COLOR = '#F4F4F4';
|
|
17
|
-
const Footer = (props)=>{
|
|
18
|
-
const { pageType, isOriginTemplate, openPageSetting } = props;
|
|
19
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
20
|
-
const shopName = urlParams.get('storefrontHandle');
|
|
21
|
-
const layoutSetting = core.useShopStore((s)=>s.layoutSettings);
|
|
22
|
-
const activeFooter = layoutSetting?.showFooter || isOriginTemplate;
|
|
23
|
-
const footerColor = activeFooter ? FOOTER_ON_COLOR : FOOTER_OFF_COLOR;
|
|
24
|
-
const [shouldFixed, setShouldFixed] = react.useState(false);
|
|
25
|
-
react.useEffect(()=>{
|
|
26
|
-
const $iframe = parent.document.body.querySelector('.iframe');
|
|
27
|
-
if (!$iframe) return;
|
|
28
|
-
const $storefront = document.body.querySelector('#storefront');
|
|
29
|
-
if (!$storefront) return;
|
|
30
|
-
const headerHeight = 40;
|
|
31
|
-
const footerHeight = 48;
|
|
32
|
-
const iframeHeight = $iframe.clientHeight;
|
|
33
|
-
const comparedHeight = layoutSetting?.showHeader ? iframeHeight - headerHeight - footerHeight : iframeHeight - footerHeight;
|
|
34
|
-
const observer = new ResizeObserver((entries)=>{
|
|
35
|
-
// Handle set fixed footer
|
|
36
|
-
const currentEditingFrameHeight = entries[0]?.target.clientHeight;
|
|
37
|
-
if (currentEditingFrameHeight && comparedHeight) setShouldFixed(currentEditingFrameHeight < comparedHeight);
|
|
38
|
-
});
|
|
39
|
-
observer.observe($storefront);
|
|
40
|
-
return ()=>{
|
|
41
|
-
observer.unobserve($storefront);
|
|
42
|
-
};
|
|
43
|
-
}, [
|
|
44
|
-
layoutSetting
|
|
45
|
-
]);
|
|
46
|
-
return /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
47
|
-
children: pageType === 'POST_PURCHASE' ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
48
|
-
className: core.cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans'),
|
|
49
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
50
|
-
className: "gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",
|
|
51
|
-
style: {
|
|
52
|
-
maxWidth: `var(--g-ct-w, 1200px)`,
|
|
53
|
-
...core.makeStyleResponsive('ml', defaultMargin),
|
|
54
|
-
...core.makeStyleResponsive('mr', defaultMargin)
|
|
55
|
-
},
|
|
56
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("p", {
|
|
57
|
-
className: "gp-text-lg",
|
|
58
|
-
children: [
|
|
59
|
-
"All rights reserved ",
|
|
60
|
-
shopName
|
|
61
|
-
]
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
}) : /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
65
|
-
className: core.cls('gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE gp-font-sans', {
|
|
66
|
-
'gp-fixed gp-bottom-0 gp-w-full': shouldFixed
|
|
67
|
-
}),
|
|
68
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
69
|
-
className: "gp-flex gp-h-[40px] gp-flex-1 gp-items-center gp-justify-between",
|
|
70
|
-
style: {
|
|
71
|
-
maxWidth: `var(--g-ct-w)`,
|
|
72
|
-
...core.makeStyleResponsive('ml', defaultMargin),
|
|
73
|
-
...core.makeStyleResponsive('mr', defaultMargin)
|
|
74
|
-
},
|
|
75
|
-
children: [
|
|
76
|
-
/*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
77
|
-
width: "68",
|
|
78
|
-
height: "8",
|
|
79
|
-
viewBox: "0 0 68 8",
|
|
80
|
-
fill: "none",
|
|
81
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
82
|
-
children: [
|
|
83
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
84
|
-
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",
|
|
85
|
-
fill: footerColor
|
|
86
|
-
}),
|
|
87
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
88
|
-
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",
|
|
89
|
-
fill: footerColor
|
|
90
|
-
})
|
|
91
|
-
]
|
|
92
|
-
}),
|
|
93
|
-
!isOriginTemplate && /*#__PURE__*/ jsxRuntime.jsx("button", {
|
|
94
|
-
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",
|
|
95
|
-
onClick: openPageSetting,
|
|
96
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
97
|
-
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]",
|
|
98
|
-
children: [
|
|
99
|
-
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
100
|
-
children: /*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
101
|
-
width: "14",
|
|
102
|
-
height: "14",
|
|
103
|
-
viewBox: "0 0 14 14",
|
|
104
|
-
fill: "none",
|
|
105
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
-
children: [
|
|
107
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
108
|
-
fillRule: "evenodd",
|
|
109
|
-
clipRule: "evenodd",
|
|
110
|
-
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",
|
|
111
|
-
fill: "#212121"
|
|
112
|
-
}),
|
|
113
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
114
|
-
fillRule: "evenodd",
|
|
115
|
-
clipRule: "evenodd",
|
|
116
|
-
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",
|
|
117
|
-
fill: "#212121"
|
|
118
|
-
})
|
|
119
|
-
]
|
|
120
|
-
})
|
|
121
|
-
}),
|
|
122
|
-
/*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
123
|
-
children: "Footer"
|
|
124
|
-
})
|
|
125
|
-
]
|
|
126
|
-
})
|
|
127
|
-
}),
|
|
128
|
-
/*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
129
|
-
width: "104",
|
|
130
|
-
height: "8",
|
|
131
|
-
viewBox: "0 0 104 8",
|
|
132
|
-
fill: "none",
|
|
133
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
134
|
-
children: [
|
|
135
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
136
|
-
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",
|
|
137
|
-
fill: footerColor
|
|
138
|
-
}),
|
|
139
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
140
|
-
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",
|
|
141
|
-
fill: footerColor
|
|
142
|
-
}),
|
|
143
|
-
/*#__PURE__*/ jsxRuntime.jsx("path", {
|
|
144
|
-
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",
|
|
145
|
-
fill: footerColor
|
|
146
|
-
})
|
|
147
|
-
]
|
|
148
|
-
})
|
|
149
|
-
]
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
exports.default = Footer;
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),react=require("react");const defaultMargin={desktop:"16px",tablet:"16px",mobile:"16px"},FOOTER_ON_COLOR="#E2E2E2",FOOTER_OFF_COLOR="#F4F4F4",Footer=e=>{let{pageType:t,isOriginTemplate:s,openPageSetting:r}=e,i=new URLSearchParams(window.location.search),n=i.get("storefrontHandle"),l=core.useShopStore(e=>e.layoutSettings),p=l?.showFooter||s,o=p?"#E2E2E2":"#F4F4F4",[g,x]=react.useState(!1);return react.useEffect(()=>{let e=parent.document.body.querySelector(".iframe");if(!e)return;let t=document.body.querySelector("#storefront");if(!t)return;let s=e.clientHeight,r=l?.showHeader?s-40-48:s-48,i=new ResizeObserver(e=>{let t=e[0]?.target.clientHeight;t&&r&&x(t<r)});return i.observe(t),()=>{i.unobserve(t)}},[l]),jsxRuntime.jsx(jsxRuntime.Fragment,{children:"POST_PURCHASE"===t?jsxRuntime.jsx("div",{className:core.cls("gp-footer-container gp-border-1 gp-group gp-flex gp-justify-center gp-border-y gp-border-[#EEEEEE] gp-font-sans"),children:jsxRuntime.jsx("div",{className:"gp-flex gp-flex-1 gp-items-center gp-justify-between gp-py-6",style:{maxWidth:"var(--g-ct-w, 1200px)",...core.makeStyleResponsive("ml",defaultMargin),...core.makeStyleResponsive("mr",defaultMargin)},children:jsxRuntime.jsxs("p",{className:"gp-text-lg",children:["All rights reserved ",n]})})}):jsxRuntime.jsx("div",{className:core.cls("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":g}),children:jsxRuntime.jsxs("div",{className:"gp-flex gp-h-[40px] gp-flex-1 gp-items-center gp-justify-between",style:{maxWidth:"var(--g-ct-w)",...core.makeStyleResponsive("ml",defaultMargin),...core.makeStyleResponsive("mr",defaultMargin)},children:[jsxRuntime.jsxs("svg",{width:"68",height:"8",viewBox:"0 0 68 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("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:o}),jsxRuntime.jsx("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:o})]}),!s&&jsxRuntime.jsx("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:r,children:jsxRuntime.jsxs("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:[jsxRuntime.jsx("span",{children:jsxRuntime.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("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"}),jsxRuntime.jsx("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"})]})}),jsxRuntime.jsx("span",{children:"Footer"})]})}),jsxRuntime.jsxs("svg",{width:"104",height:"8",viewBox:"0 0 104 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("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:o}),jsxRuntime.jsx("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:o}),jsxRuntime.jsx("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:o})]})]})})})};exports.default=Footer;
|