@pairbo/ui-kit 0.3.12 → 0.3.14
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.
|
@@ -57,7 +57,16 @@ export default class PboGiftOptions extends PairboElement {
|
|
|
57
57
|
onFreeMessageClear?: () => void;
|
|
58
58
|
hidden: boolean;
|
|
59
59
|
expand: boolean;
|
|
60
|
-
|
|
60
|
+
dividerConfig: {
|
|
61
|
+
topDivider: {
|
|
62
|
+
visible: boolean;
|
|
63
|
+
persistent: boolean;
|
|
64
|
+
};
|
|
65
|
+
bottomDivider: {
|
|
66
|
+
visible: boolean;
|
|
67
|
+
persistent: boolean;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
61
70
|
freeMessage: string;
|
|
62
71
|
isGift: boolean;
|
|
63
72
|
isPremiumChecked: boolean;
|
|
@@ -72,7 +81,6 @@ export default class PboGiftOptions extends PairboElement {
|
|
|
72
81
|
setGiftOptionEnabled(isGift: boolean): void;
|
|
73
82
|
setPremiumEnabled(isPremiumActive: boolean): void;
|
|
74
83
|
setFreeMessageEnabled(useFreeMessage: boolean): void;
|
|
75
|
-
private handlePremiumChange;
|
|
76
84
|
render(): import('lit-html').TemplateResult<1>;
|
|
77
85
|
clear(): void;
|
|
78
86
|
}
|
package/dist/ui-kit.js
CHANGED
|
@@ -1927,7 +1927,7 @@
|
|
|
1927
1927
|
/>
|
|
1928
1928
|
</pbo-zoomed-preview>
|
|
1929
1929
|
</pbo-drawer>
|
|
1930
|
-
`}};_t.styles=[pt,Wu];_t.dependencies={"pbo-image":oe};Ut([C({type:Object})],_t.prototype,"card",2);Ut([C({type:Number,reflect:!0})],_t.prototype,"focusIndex",2);Ut([C({type:Object})],_t.prototype,"livePreviewProps",2);Ut([C()],_t.prototype,"handwrittenPreviewProps",2);Ut([C()],_t.prototype,"type",2);Ut([H("#thumbnails")],_t.prototype,"thumbnailCarousel",2);Ut([H("#main-carousel")],_t.prototype,"mainCarousel",2);Ut([H(".editor__zoomed")],_t.prototype,"zoomedPreview",2);Ut([H(".main-slide.active")],_t.prototype,"activeMainSlide",2);Ut([H("pbo-type-canvas")],_t.prototype,"typeCanvas",2);Ut([yn(".thumbnail")],_t.prototype,"thumbnailElements",2);Ut([yn(".main-slide")],_t.prototype,"mainSlideElements",2);Ut([$()],_t.prototype,"mainImageTemplates",2);Ut([V("card")],_t.prototype,"handleCardChange",1);Ut([V("focusIndex")],_t.prototype,"handleFocusIndexChange",1);_t=Ut([dt("pbo-editor-card-slider")],_t);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ju(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Zu(t,e,s),s};let Pt=class extends gt{constructor(){super(...arguments),this.card=null,this.onClose=()=>{},this.formData={font:"Monsieur La Doulaise",text:"",color:"rgb(0,0,0)",alignment:"left"},this.handwrittenFormState={isLoading:!1,processedFileUrl:""},this.editorType="type",this.handleTypingFormChange=()=>{this.formData=this.typeForm.formData},this.handleHandwrittenFormChange=t=>{this.handwrittenFormState=t.detail,this.slider.focusOn(1),gi()&&t.detail.processedFileUrl!==""&&t.detail.isLoading===!1&&(this.slider.openZoomedPreview(),this.slider.scrollIntoView({behavior:"smooth",block:"start"}))},this.handleHandwrittenImageDimensionsChanged=t=>{this.handwrittenForm.setDimensions(t.detail)},this.handleEditorChange=t=>{this.emit("pbo-switch-editor",{detail:{fromEditor:this.editorType,toEditor:t.detail.editor},bubbles:!0,composed:!0}),this.editorType=t.detail.editor}}async handleCardChange(){await this.updateComplete,this.card&&(this.slider.card=this.card,this.requestUpdate(),this.typeForm.card=this.card,this.handwrittenForm.card=this.card)}handleEditorTypeChange(){this.updateComplete.then(()=>{this.slider.focusOn(1),this.editorType==="handwritten"&&gi()&&this.handwrittenForm.scrollIntoView(!0)})}firstUpdated(){this.addEventListener("handwritten-image-dimensions-changed",this.handleHandwrittenImageDimensionsChanged),this.typeForm.addEventListener("pbo-change",this.handleTypingFormChange),this.handwrittenForm.addEventListener("pbo-change",this.handleHandwrittenFormChange)}disconnectedCallback(){this.typeForm.removeEventListener("pbo-change",this.handleTypingFormChange),this.handwrittenForm.removeEventListener("pbo-change",this.handleHandwrittenFormChange)}render(){return L`
|
|
1930
|
+
`}};_t.styles=[pt,Wu];_t.dependencies={"pbo-image":oe};Ut([C({type:Object})],_t.prototype,"card",2);Ut([C({type:Number,reflect:!0})],_t.prototype,"focusIndex",2);Ut([C({type:Object})],_t.prototype,"livePreviewProps",2);Ut([C()],_t.prototype,"handwrittenPreviewProps",2);Ut([C()],_t.prototype,"type",2);Ut([H("#thumbnails")],_t.prototype,"thumbnailCarousel",2);Ut([H("#main-carousel")],_t.prototype,"mainCarousel",2);Ut([H(".editor__zoomed")],_t.prototype,"zoomedPreview",2);Ut([H(".main-slide.active")],_t.prototype,"activeMainSlide",2);Ut([H("pbo-type-canvas")],_t.prototype,"typeCanvas",2);Ut([yn(".thumbnail")],_t.prototype,"thumbnailElements",2);Ut([yn(".main-slide")],_t.prototype,"mainSlideElements",2);Ut([$()],_t.prototype,"mainImageTemplates",2);Ut([V("card")],_t.prototype,"handleCardChange",1);Ut([V("focusIndex")],_t.prototype,"handleFocusIndexChange",1);_t=Ut([dt("pbo-editor-card-slider")],_t);var Zu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,ae=(o,t,e,i)=>{for(var s=i>1?void 0:i?Ju(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Zu(t,e,s),s};let Pt=class extends gt{constructor(){super(...arguments),this.card=null,this.onClose=()=>{},this.formData={font:"Monsieur La Doulaise",text:"",color:"rgb(0,0,0)",alignment:"left"},this.handwrittenFormState={isLoading:!1,processedFileUrl:""},this.editorType="type",this.handleTypingFormChange=()=>{this.formData=this.typeForm.formData},this.handleHandwrittenFormChange=t=>{this.handwrittenFormState=t.detail,this.slider.focusOn(1),gi()&&t.detail.processedFileUrl!==""&&t.detail.isLoading===!1&&(this.slider.openZoomedPreview(),this.slider.scrollIntoView({behavior:"smooth",block:"start"}))},this.handleHandwrittenImageDimensionsChanged=t=>{this.handwrittenForm.setDimensions(t.detail)},this.handleEditorChange=t=>{this.emit("pbo-switch-editor",{detail:{fromEditor:this.editorType,toEditor:t.detail.editor},bubbles:!0,composed:!0}),this.editorType=t.detail.editor}}async handleCardChange(){await this.updateComplete,this.card&&(this.slider.card=this.card,this.requestUpdate(),this.typeForm.card=this.card,this.handwrittenForm.card=this.card)}handleEditorTypeChange(){this.updateComplete.then(()=>{this.slider.focusOn(1),this.editorType==="handwritten"&&gi()&&this.handwrittenForm.scrollIntoView(!0)})}firstUpdated(){this.addEventListener("handwritten-image-dimensions-changed",this.handleHandwrittenImageDimensionsChanged),this.typeForm.addEventListener("pbo-type-form-change",this.handleTypingFormChange),this.handwrittenForm.addEventListener("pbo-change",this.handleHandwrittenFormChange)}disconnectedCallback(){this.typeForm.removeEventListener("pbo-change",this.handleTypingFormChange),this.handwrittenForm.removeEventListener("pbo-change",this.handleHandwrittenFormChange)}render(){return L`
|
|
1931
1931
|
<div class="editor">
|
|
1932
1932
|
<div class="editor__card" part="editor-card-slider-container">
|
|
1933
1933
|
<pbo-editor-card-slider
|
|
@@ -1988,7 +1988,9 @@
|
|
|
1988
1988
|
::slotted([slot="title"]) {
|
|
1989
1989
|
font-size: var(--title-font-size);
|
|
1990
1990
|
font-weight: var(--title-font-weight);
|
|
1991
|
-
margin:
|
|
1991
|
+
margin: 12px 0 0 4px;
|
|
1992
|
+
grid-column-start: 2;
|
|
1993
|
+
grid-column-end: 2;
|
|
1992
1994
|
}
|
|
1993
1995
|
|
|
1994
1996
|
:host(:first-of-type) ::slotted([slot="title"]) {
|
|
@@ -1997,53 +1999,10 @@
|
|
|
1997
1999
|
.category-container {
|
|
1998
2000
|
margin-left: auto;
|
|
1999
2001
|
margin-right: auto;
|
|
2002
|
+
display: grid;
|
|
2003
|
+
grid-template-columns: 30px 1fr 30px;
|
|
2004
|
+
grid-template-rows: auto auto;
|
|
2000
2005
|
}
|
|
2001
|
-
.splide {
|
|
2002
|
-
margin: 0 auto;
|
|
2003
|
-
width: 100%;
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
.splide__slide {
|
|
2007
|
-
width: 100%;
|
|
2008
|
-
aspect-ratio: 3/4;
|
|
2009
|
-
position: relative;
|
|
2010
|
-
overflow: hidden;
|
|
2011
|
-
border: 2px solid var(--pbo-color-gray-200);
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
.splide__slide::before {
|
|
2015
|
-
content: "";
|
|
2016
|
-
position: absolute;
|
|
2017
|
-
top: 0;
|
|
2018
|
-
left: 0;
|
|
2019
|
-
width: 100%;
|
|
2020
|
-
height: 100%;
|
|
2021
|
-
background: transparent;
|
|
2022
|
-
box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.1);
|
|
2023
|
-
transition: all 0.3s ease;
|
|
2024
|
-
z-index: 1;
|
|
2025
|
-
pointer-events: none;
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
.splide__slide:hover::before {
|
|
2029
|
-
box-shadow: inset 0 0 20px 3px rgba(0, 0, 0, 0.3);
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
.splide__slide img {
|
|
2033
|
-
position: absolute;
|
|
2034
|
-
top: 0;
|
|
2035
|
-
left: 0;
|
|
2036
|
-
width: 100%;
|
|
2037
|
-
height: auto;
|
|
2038
|
-
object-fit: contain;
|
|
2039
|
-
cursor: pointer;
|
|
2040
|
-
transition: all 0.3s ease;
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
.splide__slide img:hover {
|
|
2044
|
-
transform: scale(1.1);
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2047
2006
|
/* -------------------------------- skeleton -------------------------------- */
|
|
2048
2007
|
.skeleton .splide__slide {
|
|
2049
2008
|
border: none;
|
|
@@ -2073,10 +2032,13 @@
|
|
|
2073
2032
|
background-color: #f3f3f3;
|
|
2074
2033
|
}
|
|
2075
2034
|
}
|
|
2076
|
-
|
|
2035
|
+
.embla__button_container {
|
|
2036
|
+
grid-row: 2/3;
|
|
2037
|
+
justify-self: center;
|
|
2038
|
+
}
|
|
2077
2039
|
.embla {
|
|
2078
|
-
|
|
2079
|
-
grid-
|
|
2040
|
+
grid-row: 2/3;
|
|
2041
|
+
grid-column: 2/3;
|
|
2080
2042
|
--slide-size: 50%;
|
|
2081
2043
|
--slide-spacing: calc(var(--slide-size) * 0.05);
|
|
2082
2044
|
--detail-high-contrast: rgb(101, 101, 101);
|
|
@@ -2099,6 +2061,7 @@
|
|
|
2099
2061
|
.embla__viewport {
|
|
2100
2062
|
overflow: hidden;
|
|
2101
2063
|
width: 100%;
|
|
2064
|
+
padding: calc(var(--slide-spacing) * 0.5);
|
|
2102
2065
|
}
|
|
2103
2066
|
|
|
2104
2067
|
.embla__container {
|
|
@@ -2108,11 +2071,10 @@
|
|
|
2108
2071
|
}
|
|
2109
2072
|
|
|
2110
2073
|
.embla__slide {
|
|
2111
|
-
padding: calc(var(--slide-size) * 0.05)
|
|
2074
|
+
padding-left: calc(var(--slide-size) * 0.05);
|
|
2112
2075
|
transform: translate3d(0, 0, 0);
|
|
2113
2076
|
flex: 0 0 var(--slide-size);
|
|
2114
2077
|
min-width: 0;
|
|
2115
|
-
/* padding-left: var(--slide-spacing); */
|
|
2116
2078
|
position: relative;
|
|
2117
2079
|
transition: transform 0.3s ease;
|
|
2118
2080
|
}
|
|
@@ -2123,7 +2085,6 @@
|
|
|
2123
2085
|
}
|
|
2124
2086
|
|
|
2125
2087
|
.embla__slide__img {
|
|
2126
|
-
box-shadow: 2px 2px 4px 2px rgb(0 0 0 / 0.1);
|
|
2127
2088
|
border: 2px solid var(--pbo-color-gray-200);
|
|
2128
2089
|
display: flex;
|
|
2129
2090
|
align-items: center;
|
|
@@ -2167,8 +2128,8 @@
|
|
|
2167
2128
|
}
|
|
2168
2129
|
|
|
2169
2130
|
.embla__button__svg {
|
|
2170
|
-
width:
|
|
2171
|
-
height:
|
|
2131
|
+
width: 20px;
|
|
2132
|
+
height: 20px;
|
|
2172
2133
|
}
|
|
2173
2134
|
|
|
2174
2135
|
.embla__button_container {
|
|
@@ -2203,18 +2164,17 @@
|
|
|
2203
2164
|
`:L`
|
|
2204
2165
|
<div class="category-container">
|
|
2205
2166
|
<slot name="title"></slot>
|
|
2206
|
-
|
|
2167
|
+
<div class="embla__button_container embla__button_container--prev">
|
|
2168
|
+
<button class="embla__button embla__button--prev" type="button">
|
|
2169
|
+
<svg class="embla__button__svg" viewBox="0 0 532 532">
|
|
2170
|
+
<path
|
|
2171
|
+
fill="currentColor"
|
|
2172
|
+
d="M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"
|
|
2173
|
+
></path>
|
|
2174
|
+
</svg>
|
|
2175
|
+
</button>
|
|
2176
|
+
</div>
|
|
2207
2177
|
<section class="embla">
|
|
2208
|
-
<div class="embla__button_container">
|
|
2209
|
-
<button class="embla__button embla__button--prev" type="button">
|
|
2210
|
-
<svg class="embla__button__svg" viewBox="0 0 532 532">
|
|
2211
|
-
<path
|
|
2212
|
-
fill="currentColor"
|
|
2213
|
-
d="M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"
|
|
2214
|
-
></path>
|
|
2215
|
-
</svg>
|
|
2216
|
-
</button>
|
|
2217
|
-
</div>
|
|
2218
2178
|
<div class="embla__viewport">
|
|
2219
2179
|
<div class="embla__container">
|
|
2220
2180
|
${Zl(this.cards,t=>L`
|
|
@@ -2230,17 +2190,17 @@
|
|
|
2230
2190
|
`)}
|
|
2231
2191
|
</div>
|
|
2232
2192
|
</div>
|
|
2233
|
-
<div class="embla__button_container">
|
|
2234
|
-
<button class="embla__button embla__button--next" type="button">
|
|
2235
|
-
<svg class="embla__button__svg" viewBox="0 0 532 532">
|
|
2236
|
-
<path
|
|
2237
|
-
fill="currentColor"
|
|
2238
|
-
d="M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"
|
|
2239
|
-
></path>
|
|
2240
|
-
</svg>
|
|
2241
|
-
</button>
|
|
2242
|
-
</div>
|
|
2243
2193
|
</section>
|
|
2194
|
+
<div class="embla__button_container embla__button_container--next">
|
|
2195
|
+
<button class="embla__button embla__button--next" type="button">
|
|
2196
|
+
<svg class="embla__button__svg" viewBox="0 0 532 532">
|
|
2197
|
+
<path
|
|
2198
|
+
fill="currentColor"
|
|
2199
|
+
d="M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"
|
|
2200
|
+
></path>
|
|
2201
|
+
</svg>
|
|
2202
|
+
</button>
|
|
2203
|
+
</div>
|
|
2244
2204
|
</div>
|
|
2245
2205
|
`}};fe.styles=[pt,Qu,Zr(tp)];Ue([C({type:Array})],fe.prototype,"cards",2);Ue([C({type:Boolean,reflect:!0})],fe.prototype,"skeleton",2);Ue([H("#category-carousel")],fe.prototype,"imageCarousel",2);Ue([H(".embla")],fe.prototype,"emblaNode",2);Ue([H(".embla__viewport")],fe.prototype,"emblaViewport",2);Ue([H(".embla__button--prev")],fe.prototype,"emblaPrevButton",2);Ue([H(".embla__button--next")],fe.prototype,"emblaNextButton",2);Ue([H(".embla__container")],fe.prototype,"emblaContainerEl",2);Ue([$()],fe.prototype,"imageSplide",2);fe=Ue([dt("pbo-category")],fe);const kb=fe,Lp=Q`
|
|
2246
2206
|
:host {
|
|
@@ -3574,7 +3534,7 @@ void main() {
|
|
|
3574
3534
|
resize: vertical;
|
|
3575
3535
|
min-height: 96px;
|
|
3576
3536
|
}
|
|
3577
|
-
`;var Km=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Rt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Km(t,e,s),s};let yt=class extends gt{constructor(){super(...arguments),this.hasSlotController=new zi(this,"is-gift-label","premium-card-label","free-message-label"),this.hidden=!1,this.expand=!1,this.
|
|
3537
|
+
`;var Km=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,Rt=(o,t,e,i)=>{for(var s=i>1?void 0:i?Zm(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&Km(t,e,s),s};let yt=class extends gt{constructor(){super(...arguments),this.hasSlotController=new zi(this,"is-gift-label","premium-card-label","free-message-label"),this.hidden=!1,this.expand=!1,this.dividerConfig={topDivider:{visible:!1,persistent:!1},bottomDivider:{visible:!1,persistent:!1}},this.freeMessage="",this.isGift=!1,this.isPremiumChecked=!1,this.isFreeMessageChecked=!1,this.debouncedFreeMessageChange=()=>{}}handleOnFreeMessageChange(){this.onFreeMessageChange&&(this.debouncedFreeMessageChange=Nu(this.onFreeMessageChange,300))}handleIsGiftChange(){this.isPremiumChecked=!1,this.isFreeMessageChecked=!1,this.emit("pbo_toggle_is_gift",{detail:{is_checked:this.isGift}})}handleIsFreeMessageCheckedChange(){var t;console.debug("isFreeMessageChecked",this.isFreeMessageChecked),this.isFreeMessageChecked&&(this.isPremiumChecked=!1),this.isFreeMessageChecked||(this.freeMessage="",console.debug("freeMessage is empty"),console.debug("onFreeMessageClear",this.onFreeMessageClear),(t=this.onFreeMessageClear)==null||t.call(this)),this.emit("pbo_toggle_free_message",{detail:{is_checked:this.isFreeMessageChecked}})}handleIsPremiumCheckedChange(){var t;this.isPremiumChecked?(this.isFreeMessageChecked=!1,this.emit("pbo-open-drawer")):this.emit("pbo-close-drawer"),(t=this.onPremiumSelected)==null||t.call(this,this.isPremiumChecked),this.emit("pbo_toggle_is_premium_card",{detail:{is_checked:this.isPremiumChecked}})}handleFreeMessageChange(){var t;this.freeMessage===""?(console.debug("freeMessage is empty"),(t=this.onFreeMessageClear)==null||t.call(this)):this.debouncedFreeMessageChange&&this.debouncedFreeMessageChange(this.freeMessage)}firstUpdated(){this.expand&&(this.isGift=!0)}setGiftOptionEnabled(t){this.isGift=t}setPremiumEnabled(t){this.isPremiumChecked=t}setFreeMessageEnabled(t){this.isFreeMessageChecked=t}render(){const t=this.hasSlotController.test("is-gift-label"),e=this.hasSlotController.test("premium-card-label"),i=this.hasSlotController.test("premium-card-description"),s=this.hasSlotController.test("free-message-label");return L`
|
|
3578
3538
|
<div part="base" class="gift-options" ?hidden=${this.hidden}>
|
|
3579
3539
|
<!-- 🎁 Is this a gift -->
|
|
3580
3540
|
<div class="is-gift" part="is-gift option-container" ?hidden=${!t}>
|
|
@@ -3593,7 +3553,11 @@ void main() {
|
|
|
3593
3553
|
</div>
|
|
3594
3554
|
|
|
3595
3555
|
<!-- Divider -->
|
|
3596
|
-
<hr
|
|
3556
|
+
<hr
|
|
3557
|
+
part="divider top-divider"
|
|
3558
|
+
class="divider"
|
|
3559
|
+
?hidden=${!this.dividerConfig.topDivider.visible||!this.isGift&&!this.dividerConfig.topDivider.persistent}
|
|
3560
|
+
/>
|
|
3597
3561
|
|
|
3598
3562
|
<!-- 💌 Premium Card -->
|
|
3599
3563
|
<div class="premium-card" part="premium-card" ?hidden=${!this.isGift||!e}>
|
|
@@ -3632,6 +3596,10 @@ void main() {
|
|
|
3632
3596
|
@input=${r=>{this.freeMessage=r.target.value}}
|
|
3633
3597
|
></pbo-textarea>
|
|
3634
3598
|
</div>
|
|
3635
|
-
<hr
|
|
3599
|
+
<hr
|
|
3600
|
+
part="divider"
|
|
3601
|
+
class="divider bottom-divider"
|
|
3602
|
+
?hidden=${!this.dividerConfig.bottomDivider.visible||!this.isGift&&!this.dividerConfig.bottomDivider.persistent}
|
|
3603
|
+
/>
|
|
3636
3604
|
</div>
|
|
3637
|
-
`}clear(){this.isPremiumChecked=!1,this.isFreeMessageChecked=!1,this.freeMessage=""}};yt.styles=[pt,qm];yt.dependencies={"pbo-textarea":ct};Rt([C({type:Function})],yt.prototype,"onPremiumSelected",2);Rt([C({type:Function})],yt.prototype,"onFreeMessageChange",2);Rt([C({type:Function})],yt.prototype,"onFreeMessageClear",2);Rt([C({type:Boolean,reflect:!0})],yt.prototype,"hidden",2);Rt([C({type:Boolean,reflect:!0})],yt.prototype,"expand",2);Rt([C({type:
|
|
3605
|
+
`}clear(){this.isPremiumChecked=!1,this.isFreeMessageChecked=!1,this.freeMessage=""}};yt.styles=[pt,qm];yt.dependencies={"pbo-textarea":ct};Rt([C({type:Function})],yt.prototype,"onPremiumSelected",2);Rt([C({type:Function})],yt.prototype,"onFreeMessageChange",2);Rt([C({type:Function})],yt.prototype,"onFreeMessageClear",2);Rt([C({type:Boolean,reflect:!0})],yt.prototype,"hidden",2);Rt([C({type:Boolean,reflect:!0})],yt.prototype,"expand",2);Rt([C({type:Object})],yt.prototype,"dividerConfig",2);Rt([C()],yt.prototype,"freeMessage",2);Rt([C()],yt.prototype,"isGift",2);Rt([C()],yt.prototype,"isPremiumChecked",2);Rt([C()],yt.prototype,"isFreeMessageChecked",2);Rt([$()],yt.prototype,"debouncedFreeMessageChange",2);Rt([V("onFreeMessageChange")],yt.prototype,"handleOnFreeMessageChange",1);Rt([V("isGift")],yt.prototype,"handleIsGiftChange",1);Rt([V("isFreeMessageChecked")],yt.prototype,"handleIsFreeMessageCheckedChange",1);Rt([V("isPremiumChecked")],yt.prototype,"handleIsPremiumCheckedChange",1);Rt([V("freeMessage")],yt.prototype,"handleFreeMessageChange",1);yt=Rt([dt("pbo-gift-options")],yt);const Wb=yt,Gb=rs,Yb=oe,Xb=He;export{jr as MessageSelector,hb as PboButton,ub as PboButtonGroup,Mb as PboCardSelection,kb as PboCategory,Ob as PboDrawer,Cb as PboEditor,Tb as PboEditorCardSlider,Bb as PboEditorSelector,Xb as PboFakeLoading,$e as PboFontSelector,Wb as PboGiftOption,Vb as PboHandwrittenCanvas,Hb as PboHandwrittenForm,Yb as PboImage,Ab as PboPageManager,gb as PboRadioButton,mb as PboRadioGroup,Gb as PboSpinner,vb as PboTextarea,Lb as PboTypeCanvas,Sb as PboTypeForm,jb as PboZoomedPreview};
|