@bigbinary/neeto-thank-you-frontend 4.0.2 → 5.0.1-beta1
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/.ready +1 -1
- package/dist/BrandingInfo-C-YUyKe_.js.map +1 -1
- package/dist/BrandingInfo-CVoR92MO.js.map +1 -1
- package/dist/ConfigureThankYou.js +33 -37
- package/dist/ConfigureThankYou.js.map +1 -1
- package/dist/ShowThankYou.js +7 -13
- package/dist/ShowThankYou.js.map +1 -1
- package/dist/SocialShare-B0luKbFP.js.map +1 -1
- package/dist/SocialShare-Djluum5G.js.map +1 -1
- package/dist/cjs/BrandingInfo-CxPUChPj.js.map +1 -1
- package/dist/cjs/BrandingInfo-quX3BPdQ.js.map +1 -1
- package/dist/cjs/ConfigureThankYou.js +33 -37
- package/dist/cjs/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/ShowThankYou.js +7 -13
- package/dist/cjs/ShowThankYou.js.map +1 -1
- package/dist/cjs/SocialShare-BFeAkgVT.js.map +1 -1
- package/dist/cjs/SocialShare-CVIbFf_m.js.map +1 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index-Bp2NY-mY.js.map +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/query.js.map +1 -1
- package/dist/cjs/{thank-you-8kEVnvnv.js → thank-you-BAOIUbgZ.js} +2 -2
- package/dist/cjs/{thank-you-8kEVnvnv.js.map → thank-you-BAOIUbgZ.js.map} +1 -1
- package/dist/cjs/useCreateThankYouConfiguration.js +2 -2
- package/dist/cjs/useDeleteThankYouConfiguration.js +2 -2
- package/dist/cjs/useFetchThankYouConfigurations.js +2 -2
- package/dist/cjs/useShowThankYouConfiguration.js +2 -2
- package/dist/cjs/{useThankYouConfigurationApi-Bx8hQqrm.js → useThankYouConfigurationApi-UzkEcj1r.js} +2 -4
- package/dist/cjs/useThankYouConfigurationApi-UzkEcj1r.js.map +1 -0
- package/dist/cjs/useThankYouPageApi-DeHETkcA.js.map +1 -1
- package/dist/cjs/useUpdateThankYouConfiguration.js +2 -2
- package/dist/cjs/v2/ConfigureThankYou.js +46 -48
- package/dist/cjs/v2/ConfigureThankYou.js.map +1 -1
- package/dist/cjs/v2/ShowThankYou.js +7 -13
- package/dist/cjs/v2/ShowThankYou.js.map +1 -1
- package/dist/cjs/v2/constants.js.map +1 -1
- package/dist/cjs/v2/index.js +4 -4
- package/dist/cjs/v2/useCreateThankYouConfiguration.js +2 -2
- package/dist/cjs/v2/useDeleteThankYouConfiguration.js +2 -2
- package/dist/cjs/v2/useFetchThankYouConfigurations.js +2 -2
- package/dist/cjs/v2/useShowThankYouConfiguration.js +2 -2
- package/dist/cjs/v2/useUpdateThankYouConfiguration.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/index-CJXBMIZP.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/query.js.map +1 -1
- package/dist/{thank-you-DdgcPNaF.js → thank-you-CtNe3oCq.js} +2 -2
- package/dist/{thank-you-DdgcPNaF.js.map → thank-you-CtNe3oCq.js.map} +1 -1
- package/dist/useCreateThankYouConfiguration.js +2 -2
- package/dist/useDeleteThankYouConfiguration.js +2 -2
- package/dist/useFetchThankYouConfigurations.js +2 -2
- package/dist/useShowThankYouConfiguration.js +2 -2
- package/dist/{useThankYouConfigurationApi-CCdlqC6e.js → useThankYouConfigurationApi-BfM9KUM4.js} +2 -4
- package/dist/useThankYouConfigurationApi-BfM9KUM4.js.map +1 -0
- package/dist/useThankYouPageApi-Qu4dKbsj.js.map +1 -1
- package/dist/useUpdateThankYouConfiguration.js +2 -2
- package/dist/v2/ConfigureThankYou.js +46 -48
- package/dist/v2/ConfigureThankYou.js.map +1 -1
- package/dist/v2/ShowThankYou.js +7 -13
- package/dist/v2/ShowThankYou.js.map +1 -1
- package/dist/v2/constants.js.map +1 -1
- package/dist/v2/index.js +4 -4
- package/dist/v2/useCreateThankYouConfiguration.js +2 -2
- package/dist/v2/useDeleteThankYouConfiguration.js +2 -2
- package/dist/v2/useFetchThankYouConfigurations.js +2 -2
- package/dist/v2/useShowThankYouConfiguration.js +2 -2
- package/dist/v2/useUpdateThankYouConfiguration.js +2 -2
- package/package.json +58 -60
- package/dist/cjs/useThankYouConfigurationApi-Bx8hQqrm.js.map +0 -1
- package/dist/useThankYouConfigurationApi-CCdlqC6e.js.map +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var ConfigureThankYou = require('./ConfigureThankYou.js');
|
|
4
4
|
var ShowThankYou = require('./ShowThankYou.js');
|
|
5
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
5
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
6
6
|
var useThankYouPageApi = require('./useThankYouPageApi-DeHETkcA.js');
|
|
7
|
-
var thankYou = require('./thank-you-
|
|
7
|
+
var thankYou = require('./thank-you-BAOIUbgZ.js');
|
|
8
8
|
require('@bigbinary/neeto-cist');
|
|
9
9
|
require('./SocialShare-CVIbFf_m.js');
|
|
10
10
|
require('@bigbinary/neeto-commons-frontend/initializers');
|
|
11
11
|
require('i18next');
|
|
12
12
|
require('react/jsx-runtime');
|
|
13
13
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
14
|
-
require('@babel/runtime/helpers/
|
|
14
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
15
15
|
require('@babel/runtime/helpers/slicedToArray');
|
|
16
16
|
require('react');
|
|
17
17
|
require('classnames');
|
|
@@ -51,7 +51,7 @@ require('@bigbinary/neeto-commons-frontend/utils');
|
|
|
51
51
|
require('./index-Bp2NY-mY.js');
|
|
52
52
|
require('./query.js');
|
|
53
53
|
|
|
54
|
-
var css = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--font-weight-normal:400;--leading-snug:1.375;--leading-normal:1.5;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-variation-settings:normal;font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-size:1em;font-variation-settings:normal;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static{position:static}.sticky{position:sticky}.bottom-0{bottom:calc(var(--spacing)*0)}.isolate{isolation:isolate}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.h-full{height:100%}.w-full{width:100%}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*2*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*2*var(--tw-space-x-reverse))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.overflow-y-auto{overflow-y:auto}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-5{padding-block:calc(var(--spacing)*5)}.py-10{padding-block:calc(var(--spacing)*10)}.text-xs{font-size:var(--text-xs);line-height:var(--text-xs--line-height);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.lowercase{text-transform:lowercase}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:40rem){.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:48rem){.md\\:hidden{display:none}.md\\:px-10{padding-inline:calc(var(--spacing)*10)}}@media (min-width:64rem){.lg\\:hidden{display:none}.lg\\:h-full{height:100%}.lg\\:w-1\\/2{width:50%}.lg\\:flex-row{flex-direction:row}.lg\\:overflow-y-auto{overflow-y:auto}}}:root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31;--thankyou-branding-info-section-height:2.5rem}.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100dvh;position:relative;width:100%}.neeto-thank-you-configuration__main{height:100%;overflow-y:auto}.neeto-thank-you-configuration__box{container:thank-you-configuration-box/inline-size;margin-inline:auto;margin-bottom:3.5rem;margin-top:3.5rem;max-width:51.25rem;padding:3.5rem .9375rem;position:relative;text-align:center;width:100%}.neeto-thank-you-configuration__redirect-message{font-size:.75rem;opacity:.75}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:start}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:1.25rem;font-weight:500;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__box--is-cta-visible{padding-bottom:.9375rem}.neeto-thank-you-configuration__cta{align-items:center;background-color:#f6f7f8;border:1px solid #025e7033;border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;margin-top:4rem;padding:1.25rem}@container thank-you-configuration-box not (min-width:780px){.neeto-thank-you-configuration__cta{gap:1rem;justify-content:center!important}}.neeto-thank-you-configuration__cta .neeto-thank-you-configuration__cta-message{color:#344054!important;font-size:1rem;font-weight:400;line-height:1.5}.neeto-thank-you-configuration__cta-button{align-items:center;background-color:#008068!important;border-radius:.25rem;color:#fff!important;cursor:pointer;display:flex;font-size:1rem!important;font-weight:500;height:2.5rem;justify-content:center;line-height:1.2;opacity:1!important;padding:.25rem 1rem;text-decoration:none;text-decoration:none!important;transition:all .3s;-moz-user-select:none;user-select:none;white-space:nowrap}.neeto-thank-you-configuration__cta-button:focus,.neeto-thank-you-configuration__cta-button:focus-visible,.neeto-thank-you-configuration__cta-button:hover{background-color:#007a64!important}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;inset-inline-start:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded);padding:.75rem 1rem}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item:not(:last-child){margin-inline-end:0!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item{align-items:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}";
|
|
54
|
+
var css = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-x-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--font-weight-normal:400;--leading-snug:1.375;--leading-normal:1.5;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-variation-settings:normal;font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-size:1em;font-variation-settings:normal;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static{position:static}.sticky{position:sticky}.bottom-0{bottom:0;bottom:calc(var(--spacing)*0)}.isolate{isolation:isolate}.z-10{z-index:10}.mt-6{margin-top:1.5rem;margin-top:calc(var(--spacing)*6)}.mb-3{margin-bottom:.75rem;margin-bottom:calc(var(--spacing)*3)}.mb-6{margin-bottom:1.5rem;margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:2rem;margin-bottom:calc(var(--spacing)*8)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.h-full{height:100%}.w-full{width:100%}.shrink-0{flex-shrink:0}.grow-0{flex-grow:0}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem;gap:calc(var(--spacing)*2)}.gap-3{gap:.75rem;gap:calc(var(--spacing)*3)}.gap-4{gap:1rem;gap:calc(var(--spacing)*4)}.gap-6{gap:1.5rem;gap:calc(var(--spacing)*6)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:.5rem;margin-inline-end:calc(var(--spacing)*2*(1 - var(--tw-space-x-reverse)));margin-inline-start:0;margin-inline-start:calc(var(--spacing)*2*var(--tw-space-x-reverse))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:1rem;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:0;margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.overflow-y-auto{overflow-y:auto}.px-5{padding-inline:1.25rem;padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:1.5rem;padding-inline:calc(var(--spacing)*6)}.py-5{padding-block:1.25rem;padding-block:calc(var(--spacing)*5)}.py-10{padding-block:2.5rem;padding-block:calc(var(--spacing)*10)}.text-xs{font-size:.75rem;font-size:var(--text-xs);line-height:1.33333;line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-normal{--tw-leading:var(--leading-normal);line-height:1.5;line-height:var(--leading-normal)}.leading-snug{--tw-leading:var(--leading-snug);line-height:1.375;line-height:var(--leading-snug)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:400;font-weight:var(--font-weight-normal)}.lowercase{text-transform:lowercase}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:40rem){.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:48rem){.md\\:hidden{display:none}.md\\:px-7{padding-inline:1.75rem;padding-inline:calc(var(--spacing)*7)}.md\\:px-10{padding-inline:2.5rem;padding-inline:calc(var(--spacing)*10)}}@media (min-width:64rem){.lg\\:hidden{display:none}.lg\\:h-full{height:100%}.lg\\:w-1\\/2{width:50%}.lg\\:flex-row{flex-direction:row}.lg\\:overflow-y-auto{overflow-y:auto}}@media (min-width:96rem){.\\32 xl\\:px-8{padding-inline:2rem;padding-inline:calc(var(--spacing)*8)}}}:root{--neeto-thank-you-editor-content-color:0,0,0;--neeto-thank-you-background-color:255,255,255;--neeto-thank-you-background-image-position:center;--neeto-thank-you-gray-100:248,249,249;--neeto-thank-you-gray-800:31,31,31;--thankyou-branding-info-section-height:2.5rem}.neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100dvh;position:relative;width:100%}.neeto-thank-you-configuration__main{height:100%;overflow-y:auto}.neeto-thank-you-configuration__box{container:thank-you-configuration-box/inline-size;margin-inline:auto;margin-bottom:3.5rem;margin-top:3.5rem;max-width:51.25rem;padding:3.5rem .9375rem;position:relative;text-align:center;width:100%}.neeto-thank-you-configuration__redirect-message{font-size:.75rem;opacity:.75}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:start}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:1.25rem;font-weight:500;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__box--is-cta-visible{padding-bottom:.9375rem}.neeto-thank-you-configuration__cta{align-items:center;background-color:#f6f7f8;border:1px solid #025e7033;border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;margin-top:4rem;padding:1.25rem}@container thank-you-configuration-box not (min-width:780px){.neeto-thank-you-configuration__cta{gap:1rem;justify-content:center!important}}.neeto-thank-you-configuration__cta .neeto-thank-you-configuration__cta-message{color:#344054!important;font-size:1rem;font-weight:400;line-height:1.5}.neeto-thank-you-configuration__cta-button{align-items:center;background-color:#008068!important;border-radius:.25rem;color:#fff!important;cursor:pointer;display:flex;font-size:1rem!important;font-weight:500;height:2.5rem;justify-content:center;line-height:1.2;opacity:1!important;padding:.25rem 1rem;text-decoration:none;text-decoration:none!important;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.neeto-thank-you-configuration__cta-button:focus,.neeto-thank-you-configuration__cta-button:focus-visible,.neeto-thank-you-configuration__cta-button:hover{background-color:#007a64!important}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;inset-inline-start:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}.neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));border:1px solid rgb(var(--neeto-ui-gray-300));border-radius:var(--neeto-ui-rounded);padding:.75rem 1rem}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item:not(:last-child){margin-inline-end:0!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item{align-items:flex-start!important}.neeto-thank-you-configuration-radio__item.neeto-ui-radio__item .neeto-ui-radio{margin-top:.1875rem}.neeto-thank-you-configuration-radio__item.active{border:1.5px solid rgb(var(--neeto-ui-primary-800))}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}";
|
|
55
55
|
thankYou.n(css,{});
|
|
56
56
|
|
|
57
57
|
exports.ConfigureThankYou = ConfigureThankYou;
|
package/dist/cjs/query.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sources":["../../app/javascript/src/constants/query.js"],"sourcesContent":["export const QUERY_KEYS = {\n THANK_YOU_CONFIGURATION: \"thank-you-configuration\",\n THANK_YOU_PAGE: \"thank-you-page\",\n};\n"],"names":[
|
|
1
|
+
{"version":3,"file":"query.js","sources":["../../app/javascript/src/constants/query.js"],"sourcesContent":["export const QUERY_KEYS = {\n THANK_YOU_CONFIGURATION: \"thank-you-configuration\",\n THANK_YOU_PAGE: \"thank-you-page\",\n};\n"],"names":[],"mappings":";;AAAO,IAAM,UAAU,GAAG;AACxB,EAAA,uBAAuB,EAAE,yBAAyB;AAClD,EAAA,cAAc,EAAE;AAClB;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
4
4
|
|
|
5
|
-
var css = ".neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100dvh;position:relative;width:100%}.neeto-thank-you-configuration__main{height:100%;overflow-y:auto}.neeto-thank-you-configuration__box{container-name:thank-you-configuration-box;container-type:inline-size;margin-inline-end:auto;margin-inline-start:auto;margin-bottom:3.5rem;margin-top:3.5rem;max-width:51.25rem;padding:3.5rem .9375rem;position:relative;text-align:center;width:100%}.neeto-thank-you-configuration__redirect-message{font-size:.75rem;opacity:.75}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:start}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:1.25rem;font-weight:500;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__box--is-cta-visible{padding-bottom:.9375rem}.neeto-thank-you-configuration__cta{align-items:center;background-color:#f6f7f8;border:1px solid rgba(2,94,112,.2);border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;margin-top:4rem;padding:1.25rem}@container thank-you-configuration-box (width < 780px){.neeto-thank-you-configuration__cta{gap:1rem;justify-content:center!important}}.neeto-thank-you-configuration__cta .neeto-thank-you-configuration__cta-message{color:#344054!important;font-size:1rem;font-weight:400;line-height:1.5}.neeto-thank-you-configuration__cta-button{align-items:center;background-color:#008068!important;border-radius:.25rem;color:#fff!important;cursor:pointer;display:flex;font-size:1rem!important;font-weight:500;height:2.5rem;justify-content:center;line-height:1.2;opacity:1!important;padding:.25rem 1rem;text-decoration:none;text-decoration:none!important;transition:all .3s ease;-moz-user-select:none;user-select:none;white-space:nowrap}.neeto-thank-you-configuration__cta-button:focus,.neeto-thank-you-configuration__cta-button:focus-visible,.neeto-thank-you-configuration__cta-button:hover{background-color:#007a64!important}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;inset-inline-start:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}";
|
|
5
|
+
var css = ".neeto-thank-you-configuration-preview__wrapper{display:flex;flex-direction:column}.neeto-thank-you-configuration{height:100dvh;position:relative;width:100%}.neeto-thank-you-configuration__main{height:100%;overflow-y:auto}.neeto-thank-you-configuration__box{container-name:thank-you-configuration-box;container-type:inline-size;margin-inline-end:auto;margin-inline-start:auto;margin-bottom:3.5rem;margin-top:3.5rem;max-width:51.25rem;padding:3.5rem .9375rem;position:relative;text-align:center;width:100%}.neeto-thank-you-configuration__redirect-message{font-size:.75rem;opacity:.75}.neeto-thank-you-configuration__redirect-failure-message a[href]{color:#2d36d4!important}.neeto-thank-you-configuration__default-img-wrap{font-size:2.5rem;text-align:center}.neeto-thank-you-configuration-alignment--left .neeto-thank-you-configuration__box{align-items:flex-start;text-align:start}.neeto-thank-you-configuration__title{font-size:2rem;line-height:1.25;margin:.67em 0}.neeto-thank-you-configuration__description{font-size:1rem;line-height:1.5;margin:0 0 2rem}.neeto-thank-you-configuration__description a[href]{color:#2d36d4}.neeto-thank-you-configuration__social-share{margin-top:2rem}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow{align-items:center;display:inline-flex;flex-wrap:wrap;gap:1rem;justify-content:center}.neeto-thank-you-configuration__social-share .neeto-thank-you-configuration-social-follow__item{font-size:1.5rem;width:-moz-fit-content;width:fit-content}.neeto-thank-you-configuration__social-share-title{font-size:1.25rem;font-weight:500;line-height:1.2;margin:.8rem 0}.neeto-thank-you-configuration__resubmit{border-bottom:1px solid;font-weight:600}.neeto-thank-you-configuration__box--is-cta-visible{padding-bottom:.9375rem}.neeto-thank-you-configuration__cta{align-items:center;background-color:#f6f7f8;border:1px solid rgba(2,94,112,.2);border-radius:.5rem;display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between;margin-top:4rem;padding:1.25rem}@container thank-you-configuration-box (width < 780px){.neeto-thank-you-configuration__cta{gap:1rem;justify-content:center!important}}.neeto-thank-you-configuration__cta .neeto-thank-you-configuration__cta-message{color:#344054!important;font-size:1rem;font-weight:400;line-height:1.5}.neeto-thank-you-configuration__cta-button{align-items:center;background-color:#008068!important;border-radius:.25rem;color:#fff!important;cursor:pointer;display:flex;font-size:1rem!important;font-weight:500;height:2.5rem;justify-content:center;line-height:1.2;opacity:1!important;padding:.25rem 1rem;text-decoration:none;text-decoration:none!important;transition:all .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.neeto-thank-you-configuration__cta-button:focus,.neeto-thank-you-configuration__cta-button:focus-visible,.neeto-thank-you-configuration__cta-button:hover{background-color:#007a64!important}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview{height:100%;min-height:500px}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration{flex-grow:1;height:100%;max-height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration .neeto-thank-you-configuration__main{height:100%}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__branding-wrapper{position:absolute}.neeto-thankyou-nano__right-panel .neeto-molecules-browser-preview .neeto-thank-you-configuration__box{pointer-events:none}.neeto-thank-you-configuration__branding-wrapper{bottom:.75rem;inset-inline-start:.75rem;position:fixed}.neeto-thank-you-configuration__draft-preview-message{font-size:.75rem;line-height:1.5}";
|
|
6
6
|
n(css,{});
|
|
7
7
|
|
|
8
8
|
exports.n = n;
|
|
9
|
-
//# sourceMappingURL=thank-you-
|
|
9
|
+
//# sourceMappingURL=thank-you-BAOIUbgZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thank-you-
|
|
1
|
+
{"version":3,"file":"thank-you-BAOIUbgZ.js","sources":["../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js"],"sourcesContent":["var e=[],t=[];function n(n,r){if(n&&\"undefined\"!=typeof document){var a,s=!0===r.prepend?\"prepend\":\"append\",d=!0===r.singleTag,i=\"string\"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName(\"head\")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c()}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n))}function c(){var e=document.createElement(\"style\");if(e.setAttribute(\"type\",\"text/css\"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a=\"prepend\"===s?\"afterbegin\":\"beforeend\";return i.insertAdjacentElement(a,e),e}}export{n as default};\n"],"names":[],"mappings":";;AAAA,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,OAAO,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAE,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAC,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
require('@babel/runtime/helpers/
|
|
5
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
require('@babel/runtime/helpers/
|
|
5
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
require('@babel/runtime/helpers/
|
|
5
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
require('@babel/runtime/helpers/
|
|
5
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
package/dist/cjs/{useThankYouConfigurationApi-Bx8hQqrm.js → useThankYouConfigurationApi-UzkEcj1r.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
4
|
-
var
|
|
4
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
5
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
6
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
7
7
|
var axios = require('axios');
|
|
@@ -56,8 +56,6 @@ var thankYouConfigurationApi = {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
var _excluded = ["entityId", "id"];
|
|
59
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
60
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
61
59
|
var useFetchThankYouConfigurations = function useFetchThankYouConfigurations(entityId) {
|
|
62
60
|
var filters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
63
61
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
@@ -118,4 +116,4 @@ exports.useDeleteThankYouConfiguration = useDeleteThankYouConfiguration;
|
|
|
118
116
|
exports.useFetchThankYouConfigurations = useFetchThankYouConfigurations;
|
|
119
117
|
exports.useShowThankYouConfiguration = useShowThankYouConfiguration;
|
|
120
118
|
exports.useUpdateThankYouConfiguration = useUpdateThankYouConfiguration;
|
|
121
|
-
//# sourceMappingURL=useThankYouConfigurationApi-
|
|
119
|
+
//# sourceMappingURL=useThankYouConfigurationApi-UzkEcj1r.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThankYouConfigurationApi-UzkEcj1r.js","sources":["../../app/javascript/src/apis/thank_you_configuration.js","../../app/javascript/src/hooks/reactQuery/useThankYouConfigurationApi.js"],"sourcesContent":["import axios from \"axios\";\nimport { buildUrl } from \"neetocommons/utils\";\n\nimport {\n THANK_YOU_CONFIGURATIONS_URL,\n THANK_YOU_CONFIGURATION_URL,\n} from \"src/constants\";\n\nconst fetch = (entityId, params = {}) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), {\n params,\n });\n\nconst create = ({ entityId, payload }) =>\n axios.post(buildUrl(THANK_YOU_CONFIGURATIONS_URL, { entityId }), payload);\n\nconst show = (entityId, id) =>\n axios.get(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst update = ({ entityId, id, payload }) =>\n axios.put(buildUrl(THANK_YOU_CONFIGURATION_URL, { id }), {\n entityId,\n thankYouConfiguration: payload,\n });\n\nconst destroy = (entityId, id) =>\n axios.delete(buildUrl(THANK_YOU_CONFIGURATION_URL, { entityId, id }));\n\nconst thankYouConfigurationApi = { fetch, create, show, update, destroy };\n\nexport default thankYouConfigurationApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport thankYouConfigurationApi from \"apis/thank_you_configuration\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useFetchThankYouConfigurations = (\n entityId,\n filters = {},\n options = {}\n) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, filters],\n queryFn: () => thankYouConfigurationApi.fetch(entityId, filters),\n ...options,\n });\n\nexport const useCreateThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n payload => thankYouConfigurationApi.create({ entityId, payload }),\n {\n ...options,\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n }\n );\n\nexport const useShowThankYouConfiguration = ({ entityId, id, ...options }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId, id],\n queryFn: () => thankYouConfigurationApi.show(entityId, id),\n ...options,\n });\n\nexport const useUpdateThankYouConfiguration = (id, options = {}) =>\n useMutationWithInvalidation(\n ({ entityId, payload }) =>\n thankYouConfigurationApi.update({ id, entityId, payload }),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION],\n ...options,\n }\n );\n\nexport const useDeleteThankYouConfiguration = (entityId, options = {}) =>\n useMutationWithInvalidation(\n id => thankYouConfigurationApi.destroy(entityId, id),\n {\n keysToInvalidate: [QUERY_KEYS.THANK_YOU_CONFIGURATION, entityId],\n ...options,\n }\n );\n"],"names":["buildUrl","THANK_YOU_CONFIGURATIONS_URL","THANK_YOU_CONFIGURATION_URL","useQuery","QUERY_KEYS","useMutationWithInvalidation"],"mappings":";;;;;;;;;;;AAQA,IAAM,KAAK,GAAG,SAAR,KAAK,CAAI,QAAQ,EAAA;EAAA,IAAE,MAAM,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAClC,KAAK,CAAC,GAAG,CAACA,cAAQ,CAACC,kCAA4B,EAAE;AAAE,IAAA,QAAQ,EAAR;AAAS,GAAC,CAAC,EAAE;AAC9D,IAAA,MAAM,EAAN;AACF,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,MAAM,GAAG,SAAT,MAAM,CAAA,IAAA,EAAA;EAAA,IAAM,QAAQ,QAAR,QAAQ;AAAE,IAAA,OAAO,QAAP,OAAO;AAAA,EAAA,OACjC,KAAK,CAAC,IAAI,CAACD,cAAQ,CAACC,kCAA4B,EAAE;AAAE,IAAA,QAAQ,EAAR;GAAU,CAAC,EAAE,OAAO,CAAC;AAAA,CAAA;AAE3E,IAAM,IAAI,GAAG,SAAP,IAAI,CAAI,QAAQ,EAAE,EAAE,EAAA;AAAA,EAAA,OACxB,KAAK,CAAC,GAAG,CAACD,cAAQ,CAACE,iCAA2B,EAAE;AAAE,IAAA,QAAQ,EAAR,QAAQ;AAAE,IAAA,EAAE,EAAF;AAAG,GAAC,CAAC,CAAC;AAAA,CAAA;AAEpE,IAAM,MAAM,GAAG,SAAT,MAAM,CAAA,KAAA,EAAA;EAAA,IAAM,QAAQ,SAAR,QAAQ;AAAE,IAAA,EAAE,SAAF,EAAE;AAAE,IAAA,OAAO,SAAP,OAAO;AAAA,EAAA,OACrC,KAAK,CAAC,GAAG,CAACF,cAAQ,CAACE,iCAA2B,EAAE;AAAE,IAAA,EAAE,EAAF;AAAG,GAAC,CAAC,EAAE;AACvD,IAAA,QAAQ,EAAR,QAAQ;AACR,IAAA,qBAAqB,EAAE;AACzB,GAAC,CAAC;AAAA,CAAA;AAEJ,IAAM,OAAO,GAAG,SAAV,OAAO,CAAI,QAAQ,EAAE,EAAE,EAAA;AAAA,EAAA,OAC3B,KAAK,CAAA,QAAA,CAAO,CAACF,cAAQ,CAACE,iCAA2B,EAAE;AAAE,IAAA,QAAQ,EAAR,QAAQ;AAAE,IAAA,EAAE,EAAF;AAAG,GAAC,CAAC,CAAC;AAAA,CAAA;AAEvE,IAAM,wBAAwB,GAAG;AAAE,EAAA,KAAK,EAAL,KAAK;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,IAAI,EAAJ,IAAI;AAAE,EAAA,MAAM,EAAN,MAAM;AAAE,EAAA,OAAO,EAAP;AAAQ,CAAC;;;ICtB5D,8BAA8B,GAAG,SAAjC,8BAA8B,CACzC,QAAQ,EAAA;EAAA,IACR,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,IACZ,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAEZC,mBAAQ,CAAA,aAAA,CAAA;IACN,QAAQ,EAAE,CAACC,gBAAU,CAAC,uBAAuB,EAAE,QAAQ,EAAE,OAAO,CAAC;IACjE,OAAO,EAAE,SAAT,OAAO,GAAA;AAAA,MAAA,OAAQ,wBAAwB,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC;AAAA,IAAA;GAAA,EAC7D,OAAO,CACX,CAAC;AAAA;IAES,8BAA8B,GAAG,SAAjC,8BAA8B,CAAI,QAAQ,EAAA;EAAA,IAAE,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OACnEC,sCAA2B,CACzB,UAAA,OAAO,EAAA;IAAA,OAAI,wBAAwB,CAAC,MAAM,CAAC;AAAE,MAAA,QAAQ,EAAR,QAAQ;AAAE,MAAA,OAAO,EAAP;AAAQ,KAAC,CAAC;AAAA,EAAA,CAAA,EAAA,aAAA,CAAA,aAAA,CAAA,EAAA,EAE5D,OAAO,CAAA,EAAA,EAAA,EAAA;AACV,IAAA,gBAAgB,EAAE,CAACD,gBAAU,CAAC,uBAAuB;AAAC,GAAA,CAE1D,CAAC;AAAA;AAEI,IAAM,4BAA4B,GAAG,SAA/B,4BAA4B,CAAA,IAAA,EAAA;EAAA,IAAM,QAAQ,QAAR,QAAQ;AAAE,IAAA,EAAE,QAAF,EAAE;IAAK,OAAO,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;AAAA,EAAA,OACrED,mBAAQ,CAAA,aAAA,CAAA;IACN,QAAQ,EAAE,CAACC,gBAAU,CAAC,uBAAuB,EAAE,QAAQ,EAAE,EAAE,CAAC;IAC5D,OAAO,EAAE,SAAT,OAAO,GAAA;AAAA,MAAA,OAAQ,wBAAwB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;AAAA,IAAA;GAAA,EACvD,OAAO,CACX,CAAC;AAAA;IAES,8BAA8B,GAAG,SAAjC,8BAA8B,CAAI,EAAE,EAAA;EAAA,IAAE,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;AAAA,EAAA,OAC7DC,sCAA2B,CACzB,UAAA,KAAA,EAAA;IAAA,IAAG,QAAQ,SAAR,QAAQ;AAAE,MAAA,OAAO,SAAP,OAAO;IAAA,OAClB,wBAAwB,CAAC,MAAM,CAAC;AAAE,MAAA,EAAE,EAAF,EAAE;AAAE,MAAA,QAAQ,EAAR,QAAQ;AAAE,MAAA,OAAO,EAAP;AAAQ,KAAC,CAAC;AAAA,EAAA,CAAA,EAAA,aAAA,CAAA;AAE1D,IAAA,gBAAgB,EAAE,CAACD,gBAAU,CAAC,uBAAuB;GAAC,EACnD,OAAO,CAEd,CAAC;AAAA;IAEU,8BAA8B,GAAG,SAAjC,8BAA8B,CAAI,QAAQ,EAAA;EAAA,IAAE,OAAO,GAAA,SAAA,CAAA,MAAA,GAAA,CAAA,IAAA,SAAA,CAAA,CAAA,CAAA,KAAA,SAAA,GAAA,SAAA,CAAA,CAAA,CAAA,GAAG,EAAE;EAAA,OACnEC,sCAA2B,CACzB,UAAA,EAAE,EAAA;AAAA,IAAA,OAAI,wBAAwB,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;AAAA,EAAA,CAAA,EAAA,aAAA,CAAA;AAElD,IAAA,gBAAgB,EAAE,CAACD,gBAAU,CAAC,uBAAuB,EAAE,QAAQ;GAAC,EAC7D,OAAO,CAEd,CAAC;AAAA;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThankYouPageApi-DeHETkcA.js","sources":["../../app/javascript/src/apis/thank_you_page.js","../../app/javascript/src/hooks/reactQuery/useThankYouPageApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_page`;\n\nconst show = ({ entityId, resourceId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, resourceId, isTemplateView } });\n\nconst thankYouPageApi = { show };\n\nexport default thankYouPageApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport thankYouPageApi from \"apis/thank_you_page\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouPage = ({ entityId, resourceId, isTemplateView }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () =>\n thankYouPageApi.show({ entityId, resourceId, isTemplateView }),\n });\n"],"names":["
|
|
1
|
+
{"version":3,"file":"useThankYouPageApi-DeHETkcA.js","sources":["../../app/javascript/src/apis/thank_you_page.js","../../app/javascript/src/hooks/reactQuery/useThankYouPageApi.js"],"sourcesContent":["import axios from \"axios\";\n\nimport { THANK_YOU_ENGINE_BASE_URL } from \"src/constants\";\n\nconst baseUrl = `${THANK_YOU_ENGINE_BASE_URL}/thank_you_page`;\n\nconst show = ({ entityId, resourceId, isTemplateView }) =>\n axios.get(baseUrl, { params: { entityId, resourceId, isTemplateView } });\n\nconst thankYouPageApi = { show };\n\nexport default thankYouPageApi;\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport thankYouPageApi from \"apis/thank_you_page\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowThankYouPage = ({ entityId, resourceId, isTemplateView }) =>\n useQuery({\n queryKey: [QUERY_KEYS.THANK_YOU_PAGE, entityId],\n queryFn: () =>\n thankYouPageApi.show({ entityId, resourceId, isTemplateView }),\n });\n"],"names":["THANK_YOU_ENGINE_BASE_URL","useQuery","QUERY_KEYS"],"mappings":";;;;;;;AAIA,IAAM,OAAO,GAAA,EAAA,CAAA,MAAA,CAAMA,+BAAyB,EAAA,iBAAA,CAAiB;AAE7D,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAAA;EAAA,IAAM,QAAQ,QAAR,QAAQ;AAAE,IAAA,UAAU,QAAV,UAAU;AAAE,IAAA,cAAc,QAAd,cAAc;AAAA,EAAA,OAClD,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE;AAAE,IAAA,MAAM,EAAE;AAAE,MAAA,QAAQ,EAAR,QAAQ;AAAE,MAAA,UAAU,EAAV,UAAU;AAAE,MAAA,cAAc,EAAd;AAAe;AAAE,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAM,eAAe,GAAG;AAAE,EAAA,IAAI,EAAJ;AAAK,CAAC;;ACJzB,IAAM,mBAAmB,GAAG,SAAtB,mBAAmB,CAAA,IAAA,EAAA;EAAA,IAAM,QAAQ,QAAR,QAAQ;AAAE,IAAA,UAAU,QAAV,UAAU;AAAE,IAAA,cAAc,QAAd,cAAc;AAAA,EAAA,OACxEC,mBAAQ,CAAC;AACP,IAAA,QAAQ,EAAE,CAACC,gBAAU,CAAC,cAAc,EAAE,QAAQ,CAAC;IAC/C,OAAO,EAAE,SAAT,OAAO,GAAA;MAAA,OACL,eAAe,CAAC,IAAI,CAAC;AAAE,QAAA,QAAQ,EAAR,QAAQ;AAAE,QAAA,UAAU,EAAV,UAAU;AAAE,QAAA,cAAc,EAAd;AAAe,OAAC,CAAC;AAAA,IAAA;AAClE,GAAC,CAAC;AAAA;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-
|
|
3
|
+
var useThankYouConfigurationApi = require('./useThankYouConfigurationApi-UzkEcj1r.js');
|
|
4
4
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
|
-
require('@babel/runtime/helpers/
|
|
5
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
6
6
|
require('@tanstack/react-query');
|
|
7
7
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
8
8
|
require('axios');
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
4
|
-
var thankYou = require('../thank-you-
|
|
4
|
+
var thankYou = require('../thank-you-BAOIUbgZ.js');
|
|
5
5
|
var SocialShare = require('../SocialShare-BFeAkgVT.js');
|
|
6
|
-
var
|
|
6
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
7
7
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
8
8
|
var react = require('react');
|
|
9
|
+
var classNames = require('classnames');
|
|
9
10
|
var neetoAtoms = require('@bigbinary/neeto-atoms');
|
|
10
11
|
var formik$1 = require('@bigbinary/neeto-atoms/formik');
|
|
11
|
-
var classNames = require('classnames');
|
|
12
12
|
var MobilePreviewHeader = require('@bigbinary/neeto-molecules/v2/MobilePreviewHeader');
|
|
13
13
|
var ramda = require('ramda');
|
|
14
14
|
var reactI18next = require('react-i18next');
|
|
15
|
-
var useThankYouConfigurationApi = require('../useThankYouConfigurationApi-
|
|
15
|
+
var useThankYouConfigurationApi = require('../useThankYouConfigurationApi-UzkEcj1r.js');
|
|
16
16
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
17
17
|
var formik = require('formik');
|
|
18
18
|
var FormikEditor = require('@bigbinary/neeto-editor-frontend/v2/FormikEditor');
|
|
@@ -57,7 +57,7 @@ function _interopNamespaceDefault(e) {
|
|
|
57
57
|
|
|
58
58
|
var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
|
|
59
59
|
|
|
60
|
-
var css = ".neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:var(--background);border:1px solid var(--border);border-radius:var(--
|
|
60
|
+
var css = ".neeto-thank-you-configuration-radio__item{align-items:flex-start;background-color:var(--background);border:1px solid var(--border);border-radius:.75rem;gap:.75rem;padding:1rem 1.125rem;position:relative;transition:border-color .15s ease,box-shadow .15s ease}.neeto-thank-you-configuration-radio__item:hover{border-color:var(--input)}.neeto-thank-you-configuration-radio__item [data-slot=label]{font-size:.9375rem;font-weight:600;line-height:1.35}.neeto-thank-you-configuration-radio__item [data-slot=label]:after{content:\"\";inset:0;position:absolute}.neeto-thank-you-configuration-radio__item [data-slot=field-description]{color:var(--muted-foreground);font-size:.875rem;line-height:1.5;margin-top:.125rem}.neeto-thank-you-configuration-radio__item.active{background-color:var(--brand-tint);border-color:var(--brand-border)}";
|
|
61
61
|
thankYou.n(css,{});
|
|
62
62
|
|
|
63
63
|
var ResubmissionWarningModal = reactUtils.withT(function (_ref) {
|
|
@@ -77,16 +77,15 @@ var ResubmissionWarningModal = reactUtils.withT(function (_ref) {
|
|
|
77
77
|
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Dialog.Body, {
|
|
78
78
|
children: t("neetoThankYou.thankYou.resubmissionWarning")
|
|
79
79
|
}), /*#__PURE__*/jsxRuntime.jsxs(neetoAtoms.Dialog.Footer, {
|
|
80
|
-
className: "space-x-2",
|
|
81
80
|
children: [/*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
81
|
+
label: t("neetoThankYou.thankYou.uniqueSubmissionLinkText"),
|
|
82
|
+
to: uniqueSubmissionLink
|
|
83
|
+
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
82
84
|
label: t("neetoThankYou.common.ok"),
|
|
83
85
|
variant: "outline",
|
|
84
86
|
onClick: function onClick() {
|
|
85
87
|
return setIsOpen(false);
|
|
86
88
|
}
|
|
87
|
-
}), /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
88
|
-
label: t("neetoThankYou.thankYou.uniqueSubmissionLinkText"),
|
|
89
|
-
to: uniqueSubmissionLink
|
|
90
89
|
})]
|
|
91
90
|
})]
|
|
92
91
|
});
|
|
@@ -95,8 +94,6 @@ var ResubmissionWarningModal = reactUtils.withT(function (_ref) {
|
|
|
95
94
|
var EXTERNAL_URL_PREFIX = "https://";
|
|
96
95
|
var DEFAULT_EDITOR_ADDONS = ["emoji"];
|
|
97
96
|
|
|
98
|
-
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
99
|
-
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
100
97
|
var Customize = function Customize(_ref) {
|
|
101
98
|
var editorRef = _ref.editorRef,
|
|
102
99
|
editorProps = _ref.editorProps,
|
|
@@ -132,7 +129,7 @@ var Customize = function Customize(_ref) {
|
|
|
132
129
|
className: "flex flex-col gap-6",
|
|
133
130
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
134
131
|
className: "flex flex-col gap-2",
|
|
135
|
-
children: /*#__PURE__*/jsxRuntime.jsx(FormikEditor, _objectSpread
|
|
132
|
+
children: /*#__PURE__*/jsxRuntime.jsx(FormikEditor, _objectSpread({
|
|
136
133
|
required: true,
|
|
137
134
|
addons: editorAddons,
|
|
138
135
|
"data-testid": "thank-you-message-editor",
|
|
@@ -167,8 +164,6 @@ var Customize = function Customize(_ref) {
|
|
|
167
164
|
});
|
|
168
165
|
};
|
|
169
166
|
|
|
170
|
-
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
171
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
172
167
|
var MemoizedEditorContent$1 = /*#__PURE__*/react.memo(EditorContent);
|
|
173
168
|
var CustomMessage = function CustomMessage(_ref) {
|
|
174
169
|
var _values$resubmitLinkT;
|
|
@@ -186,7 +181,7 @@ var CustomMessage = function CustomMessage(_ref) {
|
|
|
186
181
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
187
182
|
children: [(values === null || values === void 0 ? void 0 : values.message) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
188
183
|
className: "neeto-thank-you-configuration__description text-foreground",
|
|
189
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemoizedEditorContent$1, _objectSpread
|
|
184
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemoizedEditorContent$1, _objectSpread({
|
|
190
185
|
content: values.message,
|
|
191
186
|
"data-testid": "preview-editor-content"
|
|
192
187
|
}, editorProps))
|
|
@@ -198,14 +193,12 @@ var CustomMessage = function CustomMessage(_ref) {
|
|
|
198
193
|
}), (values === null || values === void 0 ? void 0 : values.socialSharingEnabled) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.SocialShare, {
|
|
199
194
|
publicLinkId: publicLinkId,
|
|
200
195
|
socialHandles: socialHandles
|
|
201
|
-
}), neetoCist.isPresent(ctaProps) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.CallToAction, _objectSpread
|
|
196
|
+
}), neetoCist.isPresent(ctaProps) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.CallToAction, _objectSpread({}, _objectSpread({
|
|
202
197
|
appName: appName
|
|
203
198
|
}, ctaProps)))]
|
|
204
199
|
});
|
|
205
200
|
};
|
|
206
201
|
|
|
207
|
-
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
208
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
209
202
|
var MemoizedEditorContent = /*#__PURE__*/react.memo(EditorContent);
|
|
210
203
|
var RedirectMessage = function RedirectMessage(_ref) {
|
|
211
204
|
var editorProps = _ref.editorProps,
|
|
@@ -219,7 +212,7 @@ var RedirectMessage = function RedirectMessage(_ref) {
|
|
|
219
212
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
220
213
|
children: [(values === null || values === void 0 ? void 0 : values.redirectMessage) && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
221
214
|
className: "neeto-thank-you-configuration__description mt-6",
|
|
222
|
-
children: /*#__PURE__*/jsxRuntime.jsx(MemoizedEditorContent, _objectSpread
|
|
215
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemoizedEditorContent, _objectSpread({
|
|
223
216
|
content: values.redirectMessage,
|
|
224
217
|
"data-testid": "preview-editor-content"
|
|
225
218
|
}, editorProps))
|
|
@@ -228,14 +221,12 @@ var RedirectMessage = function RedirectMessage(_ref) {
|
|
|
228
221
|
children: t("neetoThankYou.thankYou.redirectingInSecondsMessage", {
|
|
229
222
|
seconds: SocialShare.REDIRECT_DELAY
|
|
230
223
|
})
|
|
231
|
-
}), neetoCist.isPresent(ctaProps) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.CallToAction, _objectSpread
|
|
224
|
+
}), neetoCist.isPresent(ctaProps) && /*#__PURE__*/jsxRuntime.jsx(SocialShare.CallToAction, _objectSpread({}, _objectSpread({
|
|
232
225
|
appName: appName
|
|
233
226
|
}, ctaProps)))]
|
|
234
227
|
});
|
|
235
228
|
};
|
|
236
229
|
|
|
237
|
-
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
238
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
239
230
|
var Preview = function Preview(_ref) {
|
|
240
231
|
var socialHandles = _ref.socialHandles,
|
|
241
232
|
thankYouTextAlignment = _ref.thankYouTextAlignment,
|
|
@@ -257,7 +248,10 @@ var Preview = function Preview(_ref) {
|
|
|
257
248
|
variant: "h3",
|
|
258
249
|
weight: "semibold",
|
|
259
250
|
children: t("neetoThankYou.thankYou.preview")
|
|
260
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(BrowserPreview
|
|
251
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(BrowserPreview
|
|
252
|
+
// v2 revamp: customer-facing previews stay light in dark mode.
|
|
253
|
+
, {
|
|
254
|
+
wrapperClassName: "light text-foreground",
|
|
261
255
|
className: classNames({
|
|
262
256
|
"neeto-thank-you-configuration-alignment--left": thankYouTextAlignment === SocialShare.THANK_YOU_TEXT_ALIGNMENTS.left,
|
|
263
257
|
"neeto-thank-you-configuration-alignment--center": thankYouTextAlignment === SocialShare.THANK_YOU_TEXT_ALIGNMENTS.center
|
|
@@ -271,7 +265,7 @@ var Preview = function Preview(_ref) {
|
|
|
271
265
|
className: classNames("neeto-thank-you-configuration__box", {
|
|
272
266
|
"neeto-thank-you-configuration__box--is-cta-visible": isCtaVisible
|
|
273
267
|
}),
|
|
274
|
-
children: values.kind === SocialShare.FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsxRuntime.jsx(CustomMessage, _objectSpread
|
|
268
|
+
children: values.kind === SocialShare.FORM_OPTIONS.customize.kind ? /*#__PURE__*/jsxRuntime.jsx(CustomMessage, _objectSpread({}, _objectSpread({
|
|
275
269
|
appName: appName,
|
|
276
270
|
editorProps: editorProps,
|
|
277
271
|
publicLinkId: publicLinkId,
|
|
@@ -279,7 +273,7 @@ var Preview = function Preview(_ref) {
|
|
|
279
273
|
socialHandles: socialHandles
|
|
280
274
|
}, isCtaVisible && {
|
|
281
275
|
ctaProps: ctaProps
|
|
282
|
-
}))) : /*#__PURE__*/jsxRuntime.jsx(RedirectMessage, _objectSpread
|
|
276
|
+
}))) : /*#__PURE__*/jsxRuntime.jsx(RedirectMessage, _objectSpread({}, _objectSpread({
|
|
283
277
|
appName: appName,
|
|
284
278
|
editorProps: editorProps
|
|
285
279
|
}, isCtaVisible && {
|
|
@@ -296,8 +290,6 @@ var Preview = function Preview(_ref) {
|
|
|
296
290
|
};
|
|
297
291
|
|
|
298
292
|
var _excluded = ["name", "title", "className"];
|
|
299
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
300
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
301
293
|
var SwitchBlock = function SwitchBlock(_ref) {
|
|
302
294
|
var name = _ref.name,
|
|
303
295
|
title = _ref.title,
|
|
@@ -307,7 +299,7 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
307
299
|
return /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Label, {
|
|
308
300
|
className: classNames("flex items-center justify-start gap-2", className),
|
|
309
301
|
"data-testid": "neeto-thank-you-nano-".concat(neetoCist.hyphenate(title && name), "-toggle-label"),
|
|
310
|
-
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, _objectSpread
|
|
302
|
+
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.Switch, _objectSpread(_objectSpread({}, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
311
303
|
name: name
|
|
312
304
|
})), {}, {
|
|
313
305
|
"data-testid": "neeto-thank-you-nano-".concat(neetoCist.hyphenate(title && name), "-switch"),
|
|
@@ -317,8 +309,6 @@ var SwitchBlock = function SwitchBlock(_ref) {
|
|
|
317
309
|
});
|
|
318
310
|
};
|
|
319
311
|
|
|
320
|
-
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
321
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
322
312
|
var ExternalLink = function ExternalLink(_ref) {
|
|
323
313
|
var editorProps = _ref.editorProps,
|
|
324
314
|
isPassEventDetailsEnabled = _ref.isPassEventDetailsEnabled,
|
|
@@ -367,7 +357,7 @@ var ExternalLink = function ExternalLink(_ref) {
|
|
|
367
357
|
title: t("neetoThankYou.thankYou.showMessageWhileRedirecting")
|
|
368
358
|
}), showRedirectMessage && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
369
359
|
className: "flex flex-col gap-2",
|
|
370
|
-
children: /*#__PURE__*/jsxRuntime.jsx(FormikEditor, _objectSpread
|
|
360
|
+
children: /*#__PURE__*/jsxRuntime.jsx(FormikEditor, _objectSpread({
|
|
371
361
|
required: true,
|
|
372
362
|
addons: DEFAULT_EDITOR_ADDONS,
|
|
373
363
|
"data-testid": "neeto-thank-you-redirect-message-editor",
|
|
@@ -400,36 +390,44 @@ var buildValidationSchema = function buildValidationSchema() {
|
|
|
400
390
|
kind: yup__namespace.string().required(),
|
|
401
391
|
message: yup__namespace.string().when("kind", {
|
|
402
392
|
is: SocialShare.FORM_OPTIONS.customize.kind,
|
|
403
|
-
then:
|
|
404
|
-
return
|
|
405
|
-
|
|
393
|
+
then: function then(schema) {
|
|
394
|
+
return schema.concat(yup__namespace.string().test("message", i18next.t("neetoThankYou.thankYou.validations.messageRequired"), function (value) {
|
|
395
|
+
return allowEmptyCustomMessage || !utils.isEditorEmpty(value);
|
|
396
|
+
}));
|
|
397
|
+
}
|
|
406
398
|
}),
|
|
407
399
|
socialSharingEnabled: yup__namespace.bool(),
|
|
408
400
|
showResubmitLink: yup__namespace.bool(),
|
|
409
401
|
resubmitLinkText: yup__namespace.string().when("showResubmitLink", {
|
|
410
402
|
is: true,
|
|
411
|
-
then:
|
|
403
|
+
then: function then(schema) {
|
|
404
|
+
return schema.concat(yup__namespace.string().required(i18next.t("neetoThankYou.thankYou.validations.resubmitLinkTextIsRequired")));
|
|
405
|
+
}
|
|
412
406
|
}),
|
|
413
407
|
redirectUrl: yup__namespace.string().when("kind", {
|
|
414
408
|
is: SocialShare.FORM_OPTIONS.externalLink.kind,
|
|
415
|
-
then:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
409
|
+
then: function then(schema) {
|
|
410
|
+
return schema.concat(yup__namespace.string().url(i18next.t("neetoThankYou.thankYou.validations.invalidLink")).required(i18next.t("neetoThankYou.thankYou.validations.invalidLink")).when("kind", {
|
|
411
|
+
is: SocialShare.FORM_OPTIONS.customize.kind,
|
|
412
|
+
then: function then(schema) {
|
|
413
|
+
return schema.concat(yup__namespace.string());
|
|
414
|
+
}
|
|
415
|
+
}));
|
|
416
|
+
}
|
|
419
417
|
}),
|
|
420
418
|
redirectMessage: yup__namespace.string().when(["kind", "showRedirectMessage"], {
|
|
421
419
|
is: function is(kind, showRedirectMessage) {
|
|
422
420
|
return kind === SocialShare.FORM_OPTIONS.externalLink.kind && showRedirectMessage;
|
|
423
421
|
},
|
|
424
|
-
then:
|
|
425
|
-
return
|
|
426
|
-
|
|
422
|
+
then: function then(schema) {
|
|
423
|
+
return schema.concat(yup__namespace.string().test("redirectMessage", i18next.t("neetoThankYou.thankYou.validations.redirectMessageRequired"), function (value) {
|
|
424
|
+
return !utils.isEditorEmpty(value);
|
|
425
|
+
}));
|
|
426
|
+
}
|
|
427
427
|
})
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
430
|
|
|
431
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
432
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
433
431
|
var Form = function Form(_ref) {
|
|
434
432
|
var id = _ref.id,
|
|
435
433
|
socialHandles = _ref.socialHandles,
|
|
@@ -538,15 +536,15 @@ var Form = function Form(_ref) {
|
|
|
538
536
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
539
537
|
className: "neeto-thankyou-nano-wrapper flex h-full flex-col overflow-y-auto lg:flex-row",
|
|
540
538
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
541
|
-
className: "neeto-thankyou-nano__left-panel flex w-full flex-col px-5 md:px-
|
|
539
|
+
className: "neeto-thankyou-nano__left-panel flex w-full flex-col px-5 md:px-7 lg:h-full 2xl:px-8 lg:w-1/2 lg:overflow-y-auto",
|
|
542
540
|
"data-testid": "neeto-thankyou-left-panel",
|
|
543
541
|
children: [customHeader || /*#__PURE__*/jsxRuntime.jsx(Header, {
|
|
544
542
|
breadcrumbs: breadcrumbs,
|
|
545
543
|
helpPopoverProps: helpPopoverProps
|
|
546
544
|
}), shouldBlockNavigation && /*#__PURE__*/jsxRuntime.jsx(formik$1.BlockNavigation, {}), !disableRadioSelection && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
547
|
-
className: "mb-
|
|
545
|
+
className: "mb-8 w-full",
|
|
548
546
|
children: /*#__PURE__*/jsxRuntime.jsx(formik$1.RadioGroup, {
|
|
549
|
-
className: "w-full grid-cols-1
|
|
547
|
+
className: "w-full grid-cols-1 gap-3",
|
|
550
548
|
name: "kind",
|
|
551
549
|
orientation: "vertical",
|
|
552
550
|
children: Object.values(SocialShare.FORM_OPTIONS).map(function (option) {
|
|
@@ -579,7 +577,7 @@ var Form = function Form(_ref) {
|
|
|
579
577
|
isPassEventDetailsEnabled: isPassEventDetailsEnabled,
|
|
580
578
|
passEventDetailsHelpDocUrl: passEventDetailsHelpDocUrl
|
|
581
579
|
}), /*#__PURE__*/jsxRuntime.jsx(formik$1.ActionBlock, {
|
|
582
|
-
className: "bg-background sticky bottom-0 py-5",
|
|
580
|
+
className: "bg-background sticky bottom-0 z-10 py-5",
|
|
583
581
|
isSubmitting: isUpdatingForm,
|
|
584
582
|
cancelButtonProps: _objectSpread({
|
|
585
583
|
"data-testid": "neeto-thank-you-configuration-cancel-button"
|