@retailrocketgroup/retailrocket-edit.multicast-vue-email-template-render 1.0.345181-dev → 1.0.345504
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/assets/main.js +1 -1
- package/package.json +1 -1
package/assets/main.js
CHANGED
|
@@ -93,4 +93,4 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
|
|
|
93
93
|
* vue-i18n v9.8.0
|
|
94
94
|
* (c) 2023 kazuya kawaguchi
|
|
95
95
|
* Released under the MIT License.
|
|
96
|
-
*/const UCt="9.8.0";function jCt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yr().__INTLIFY_PROD_DEVTOOLS__=!1)}const ML=BCt.__EXTEND_POINT__,Qr=Qg(ML);Qr(),Qr(),Qr(),Qr(),Qr(),Qr(),Qr(),Qr();const kL=_i.__EXTEND_POINT__,Dn=Qg(kL),No={UNEXPECTED_RETURN_TYPE:kL,INVALID_ARGUMENT:Dn(),MUST_BE_CALL_SETUP_TOP:Dn(),NOT_INSTALLED:Dn(),NOT_AVAILABLE_IN_LEGACY_MODE:Dn(),REQUIRED_VALUE:Dn(),INVALID_VALUE:Dn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Dn(),NOT_INSTALLED_WITH_PROVIDE:Dn(),UNEXPECTED_ERROR:Dn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Dn(),BRIDGE_SUPPORT_VUE_2_ONLY:Dn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Dn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Dn(),__EXTEND_POINT__:Dn()};function ko(t,...e){return Kl(t,null,void 0)}const e0=xs("__translateVNode"),o0=xs("__datetimeParts"),n0=xs("__numberParts"),OL=xs("__setPluralRules"),HL=xs("__injectWithOption"),i0=xs("__dispose");function Fd(t){if(!Ye(t))return t;for(const e in t)if(hd(t,e))if(!e.includes("."))Ye(t[e])&&Fd(t[e]);else{const o=e.split("."),n=o.length-1;let s=t,i=!1;for(let r=0;r<n;r++){if(o[r]in s||(s[o[r]]={}),!Ye(s[o[r]])){i=!0;break}s=s[o[r]]}i||(s[o[n]]=t[e],delete t[e]),Ye(s[o[n]])&&Fd(s[o[n]])}return t}function Qf(t,e){const{messages:o,__i18n:n,messageResolver:s,flatJson:i}=e,r=he(o)?o:ao(n)?{}:{[t]:{}};if(ao(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:d,resource:u}=a;d?(r[d]=r[d]||{},Xu(u,r[d])):Xu(u,r)}else Nt(a)&&Xu(JSON.parse(a),r)}),s==null&&i)for(const a in r)hd(r,a)&&Fd(r[a]);return r}function $L(t){return t.type}function UL(t,e,o){let n=Ye(e.messages)?e.messages:{};"__i18nGlobal"in o&&(n=Qf(t.locale.value,{messages:n,__i18n:o.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Ye(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(r=>{t.mergeDateTimeFormat(r,e.datetimeFormats[r])})}if(Ye(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(r=>{t.mergeNumberFormat(r,e.numberFormats[r])})}}}function wb(t){return P(br,null,t,0)}const Ab="__INTLIFY_META__",Wb=()=>[],zCt=()=>!1;let Mb=0;function kb(t){return(e,o,n,s)=>t(o,n,Oo()||void 0,s)}const GCt=()=>{const t=Oo();let e=null;return t&&(e=$L(t)[Ab])?{[Ab]:e}:null};function oF(t={},e){const{__root:o,__injectWithOption:n}=t,s=o===void 0,i=t.flatJson;let r=we(t.inheritLocale)?t.inheritLocale:!0;const a=De(o&&r?o.locale.value:Nt(t.locale)?t.locale:Il),d=De(o&&r?o.fallbackLocale.value:Nt(t.fallbackLocale)||ao(t.fallbackLocale)||he(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=De(Qf(a.value,t)),c=De(he(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),C=De(he(t.numberFormats)?t.numberFormats:{[a.value]:{}});let h=o?o.missingWarn:we(t.missingWarn)||Vs(t.missingWarn)?t.missingWarn:!0,g=o?o.fallbackWarn:we(t.fallbackWarn)||Vs(t.fallbackWarn)?t.fallbackWarn:!0,b=o?o.fallbackRoot:we(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,R=io(t.missing)?t.missing:null,D=io(t.missing)?kb(t.missing):null,x=io(t.postTranslation)?t.postTranslation:null,v=o?o.warnHtmlMessage:we(t.warnHtmlMessage)?t.warnHtmlMessage:!0,B=!!t.escapeParameter;const _=o?o.modifiers:he(t.modifiers)?t.modifiers:{};let w=t.pluralRules||o&&o.pluralRules,W;W=(()=>{s&&vb(null);const $={version:UCt,locale:a.value,fallbackLocale:d.value,messages:u.value,modifiers:_,pluralRules:w,missing:D===null?void 0:D,missingWarn:h,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:v,escapeParameter:B,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};$.datetimeFormats=c.value,$.numberFormats=C.value,$.__datetimeFormatters=he(W)?W.__datetimeFormatters:void 0,$.__numberFormatters=he(W)?W.__numberFormatters:void 0;const tt=wCt($);return s&&vb(tt),tt})(),Lu(W,a.value,d.value);function M(){return[a.value,d.value,u.value,c.value,C.value]}const O=zt({get:()=>a.value,set:$=>{a.value=$,W.locale=a.value}}),nt=zt({get:()=>d.value,set:$=>{d.value=$,W.fallbackLocale=d.value,Lu(W,a.value,$)}}),q=zt(()=>u.value),Q=zt(()=>c.value),lt=zt(()=>C.value);function Dt(){return io(x)?x:null}function et($){x=$,W.postTranslation=$}function ct(){return R}function yt($){$!==null&&(D=kb($)),R=$,W.missing=D}const Wt=($,tt,xt,Et,ne,U)=>{M();let Y;try{__INTLIFY_PROD_DEVTOOLS__,s||(W.fallbackContext=o?NCt():void 0),Y=$(W)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(W.fallbackContext=void 0)}if(xt!=="translate exists"&&Io(Y)&&Y===Xf||xt==="translate exists"&&!Y){const[ot,Ct]=tt();return o&&b?Et(o):ne(ot)}else{if(U(Y))return Y;throw ko(No.UNEXPECTED_RETURN_TYPE)}};function Zt(...$){return Wt(tt=>Reflect.apply(_b,null,[tt,...$]),()=>Qh(...$),"translate",tt=>Reflect.apply(tt.t,tt,[...$]),tt=>tt,tt=>Nt(tt))}function ee(...$){const[tt,xt,Et]=$;if(Et&&!Ye(Et))throw ko(No.INVALID_ARGUMENT);return Zt(tt,xt,Zo({resolvedMessage:!0},Et||{}))}function kt(...$){return Wt(tt=>Reflect.apply(Ib,null,[tt,...$]),()=>qh(...$),"datetime format",tt=>Reflect.apply(tt.d,tt,[...$]),()=>Tb,tt=>Nt(tt))}function Ee(...$){return Wt(tt=>Reflect.apply(Pb,null,[tt,...$]),()=>t0(...$),"number format",tt=>Reflect.apply(tt.n,tt,[...$]),()=>Tb,tt=>Nt(tt))}function Jt($){return $.map(tt=>Nt(tt)||Io(tt)||we(tt)?wb(String(tt)):tt)}const ae={normalize:Jt,interpolate:$=>$,type:"vnode"};function ge(...$){return Wt(tt=>{let xt;const Et=tt;try{Et.processor=ae,xt=Reflect.apply(_b,null,[Et,...$])}finally{Et.processor=null}return xt},()=>Qh(...$),"translate",tt=>tt[e0](...$),tt=>[wb(tt)],tt=>ao(tt))}function Se(...$){return Wt(tt=>Reflect.apply(Pb,null,[tt,...$]),()=>t0(...$),"number format",tt=>tt[n0](...$),Wb,tt=>Nt(tt)||ao(tt))}function _e(...$){return Wt(tt=>Reflect.apply(Ib,null,[tt,...$]),()=>qh(...$),"datetime format",tt=>tt[o0](...$),Wb,tt=>Nt(tt)||ao(tt))}function je($){w=$,W.pluralRules=w}function Oe($,tt){return Wt(()=>{if(!$)return!1;const xt=Nt(tt)?tt:a.value,Et=S(xt),ne=W.messageResolver(Et,$);return El(ne)||si(ne)||Nt(ne)},()=>[$],"translate exists",xt=>Reflect.apply(xt.te,xt,[$,tt]),zCt,xt=>we(xt))}function Je($){let tt=null;const xt=vL(W,d.value,a.value);for(let Et=0;Et<xt.length;Et++){const ne=u.value[xt[Et]]||{},U=W.messageResolver(ne,$);if(U!=null){tt=U;break}}return tt}function T($){const tt=Je($);return tt??(o?o.tm($)||{}:{})}function S($){return u.value[$]||{}}function A($,tt){if(i){const xt={[$]:tt};for(const Et in xt)hd(xt,Et)&&Fd(xt[Et]);tt=xt[$]}u.value[$]=tt,W.messages=u.value}function j($,tt){u.value[$]=u.value[$]||{};const xt={[$]:tt};for(const Et in xt)hd(xt,Et)&&Fd(xt[Et]);tt=xt[$],Xu(tt,u.value[$]),W.messages=u.value}function J($){return c.value[$]||{}}function it($,tt){c.value[$]=tt,W.datetimeFormats=c.value,Eb(W,$,tt)}function Tt($,tt){c.value[$]=Zo(c.value[$]||{},tt),W.datetimeFormats=c.value,Eb(W,$,tt)}function ft($){return C.value[$]||{}}function Ft($,tt){C.value[$]=tt,W.numberFormats=C.value,Nb(W,$,tt)}function ht($,tt){C.value[$]=Zo(C.value[$]||{},tt),W.numberFormats=C.value,Nb(W,$,tt)}Mb++,o&&Zh&&(po(o.locale,$=>{r&&(a.value=$,W.locale=$,Lu(W,a.value,d.value))}),po(o.fallbackLocale,$=>{r&&(d.value=$,W.fallbackLocale=$,Lu(W,a.value,d.value))}));const vt={id:Mb,locale:O,fallbackLocale:nt,get inheritLocale(){return r},set inheritLocale($){r=$,$&&o&&(a.value=o.locale.value,d.value=o.fallbackLocale.value,Lu(W,a.value,d.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:q,get modifiers(){return _},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn($){h=$,W.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn($){g=$,W.fallbackWarn=g},get fallbackRoot(){return b},set fallbackRoot($){b=$},get fallbackFormat(){return y},set fallbackFormat($){y=$,W.fallbackFormat=y},get warnHtmlMessage(){return v},set warnHtmlMessage($){v=$,W.warnHtmlMessage=$},get escapeParameter(){return B},set escapeParameter($){B=$,W.escapeParameter=$},t:Zt,getLocaleMessage:S,setLocaleMessage:A,mergeLocaleMessage:j,getPostTranslationHandler:Dt,setPostTranslationHandler:et,getMissingHandler:ct,setMissingHandler:yt,[OL]:je};return vt.datetimeFormats=Q,vt.numberFormats=lt,vt.rt=ee,vt.te=Oe,vt.tm=T,vt.d=kt,vt.n=Ee,vt.getDateTimeFormat=J,vt.setDateTimeFormat=it,vt.mergeDateTimeFormat=Tt,vt.getNumberFormat=ft,vt.setNumberFormat=Ft,vt.mergeNumberFormat=ht,vt[HL]=n,vt[e0]=ge,vt[o0]=_e,vt[n0]=Se,vt}function KCt(t){const e=Nt(t.locale)?t.locale:Il,o=Nt(t.fallbackLocale)||ao(t.fallbackLocale)||he(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=io(t.missing)?t.missing:void 0,s=we(t.silentTranslationWarn)||Vs(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=we(t.silentFallbackWarn)||Vs(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,r=we(t.fallbackRoot)?t.fallbackRoot:!0,a=!!t.formatFallbackMessages,d=he(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=io(t.postTranslation)?t.postTranslation:void 0,C=Nt(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,h=!!t.escapeParameterHtml,g=we(t.sync)?t.sync:!0;let b=t.messages;if(he(t.sharedMessages)){const _=t.sharedMessages;b=Object.keys(_).reduce((W,Z)=>{const M=W[Z]||(W[Z]={});return Zo(M,_[Z]),W},b||{})}const{__i18n:y,__root:R,__injectWithOption:D}=t,x=t.datetimeFormats,v=t.numberFormats,B=t.flatJson;return{locale:e,fallbackLocale:o,messages:b,flatJson:B,datetimeFormats:x,numberFormats:v,missing:n,missingWarn:s,fallbackWarn:i,fallbackRoot:r,fallbackFormat:a,modifiers:d,pluralRules:u,postTranslation:c,warnHtmlMessage:C,escapeParameter:h,messageResolver:t.messageResolver,inheritLocale:g,__i18n:y,__root:R,__injectWithOption:D}}function r0(t={},e){{const o=oF(KCt(t)),{__extender:n}=t,s={id:o.id,get locale(){return o.locale.value},set locale(i){o.locale.value=i},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(i){o.fallbackLocale.value=i},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return o.getMissingHandler()},set missing(i){o.setMissingHandler(i)},get silentTranslationWarn(){return we(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(i){o.missingWarn=we(i)?!i:i},get silentFallbackWarn(){return we(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(i){o.fallbackWarn=we(i)?!i:i},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(i){o.fallbackFormat=i},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(i){o.setPostTranslationHandler(i)},get sync(){return o.inheritLocale},set sync(i){o.inheritLocale=i},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){o.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(i){o.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...i){const[r,a,d]=i,u={};let c=null,C=null;if(!Nt(r))throw ko(No.INVALID_ARGUMENT);const h=r;return Nt(a)?u.locale=a:ao(a)?c=a:he(a)&&(C=a),ao(d)?c=d:he(d)&&(C=d),Reflect.apply(o.t,o,[h,c||C||{},u])},rt(...i){return Reflect.apply(o.rt,o,[...i])},tc(...i){const[r,a,d]=i,u={plural:1};let c=null,C=null;if(!Nt(r))throw ko(No.INVALID_ARGUMENT);const h=r;return Nt(a)?u.locale=a:Io(a)?u.plural=a:ao(a)?c=a:he(a)&&(C=a),Nt(d)?u.locale=d:ao(d)?c=d:he(d)&&(C=d),Reflect.apply(o.t,o,[h,c||C||{},u])},te(i,r){return o.te(i,r)},tm(i){return o.tm(i)},getLocaleMessage(i){return o.getLocaleMessage(i)},setLocaleMessage(i,r){o.setLocaleMessage(i,r)},mergeLocaleMessage(i,r){o.mergeLocaleMessage(i,r)},d(...i){return Reflect.apply(o.d,o,[...i])},getDateTimeFormat(i){return o.getDateTimeFormat(i)},setDateTimeFormat(i,r){o.setDateTimeFormat(i,r)},mergeDateTimeFormat(i,r){o.mergeDateTimeFormat(i,r)},n(...i){return Reflect.apply(o.n,o,[...i])},getNumberFormat(i){return o.getNumberFormat(i)},setNumberFormat(i,r){o.setNumberFormat(i,r)},mergeNumberFormat(i,r){o.mergeNumberFormat(i,r)},getChoiceIndex(i,r){return-1}};return s.__extender=n,s}}const nF={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function YCt({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,s)=>[...n,...s.type===Lt?s.children:[s]],[]):e.reduce((o,n)=>{const s=t[n];return s&&(o[n]=s()),o},{})}function jL(t){return Lt}const ZCt=ut({name:"i18n-t",props:Zo({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Io(t)||!isNaN(t)}},nF),setup(t,e){const{slots:o,attrs:n}=e,s=t.i18n||iF({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(C=>C!=="_"),r={};t.locale&&(r.locale=t.locale),t.plural!==void 0&&(r.plural=Nt(t.plural)?+t.plural:t.plural);const a=YCt(e,i),d=s[e0](t.keypath,a,r),u=Zo({},n),c=Nt(t.tag)||Ye(t.tag)?t.tag:jL();return Al(c,u,d)}}}),Ob=ZCt;function JCt(t){return ao(t)&&!Nt(t[0])}function zL(t,e,o,n){const{slots:s,attrs:i}=e;return()=>{const r={part:!0};let a={};t.locale&&(r.locale=t.locale),Nt(t.format)?r.key=t.format:Ye(t.format)&&(Nt(t.format.key)&&(r.key=t.format.key),a=Object.keys(t.format).reduce((h,g)=>o.includes(g)?Zo({},h,{[g]:t.format[g]}):h,{}));const d=n(t.value,r,a);let u=[r.key];ao(d)?u=d.map((h,g)=>{const b=s[h.type],y=b?b({[h.type]:h.value,index:g,parts:d}):[h.value];return JCt(y)&&(y[0].key=`${h.type}-${g}`),y}):Nt(d)&&(u=[d]);const c=Zo({},i),C=Nt(t.tag)||Ye(t.tag)?t.tag:jL();return Al(C,c,u)}}const XCt=ut({name:"i18n-n",props:Zo({value:{type:Number,required:!0},format:{type:[String,Object]}},nF),setup(t,e){const o=t.i18n||iF({useScope:"parent",__useComponent:!0});return zL(t,e,WL,(...n)=>o[n0](...n))}}),Hb=XCt,QCt=ut({name:"i18n-d",props:Zo({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nF),setup(t,e){const o=t.i18n||iF({useScope:"parent",__useComponent:!0});return zL(t,e,AL,(...n)=>o[o0](...n))}}),$b=QCt;function qCt(t,e){const o=t;if(t.mode==="composition")return o.__getInstance(e)||t.global;{const n=o.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function tpt(t){const e=r=>{const{instance:a,modifiers:d,value:u}=r;if(!a||!a.$)throw ko(No.UNEXPECTED_ERROR);const c=qCt(t,a.$),C=Ub(u);return[Reflect.apply(c.t,c,[...jb(C)]),c]};return{created:(r,a)=>{const[d,u]=e(a);Zh&&t.global===u&&(r.__i18nWatcher=po(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),r.__composer=u,r.textContent=d},unmounted:r=>{Zh&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:a})=>{if(r.__composer){const d=r.__composer,u=Ub(a);r.textContent=Reflect.apply(d.t,d,[...jb(u)])}},getSSRProps:r=>{const[a]=e(r);return{textContent:a}}}}function Ub(t){if(Nt(t))return{path:t};if(he(t)){if(!("path"in t))throw ko(No.REQUIRED_VALUE,"path");return t}else throw ko(No.INVALID_VALUE)}function jb(t){const{path:e,locale:o,args:n,choice:s,plural:i}=t,r={},a=n||{};return Nt(o)&&(r.locale=o),Io(s)&&(r.plural=s),Io(i)&&(r.plural=i),[e,a,r]}function ept(t,e,...o){const n=he(o[0])?o[0]:{},s=!!n.useI18nComponentName;(we(n.globalInstall)?n.globalInstall:!0)&&([s?"i18n":Ob.name,"I18nT"].forEach(r=>t.component(r,Ob)),[Hb.name,"I18nN"].forEach(r=>t.component(r,Hb)),[$b.name,"I18nD"].forEach(r=>t.component(r,$b))),t.directive("t",tpt(e))}function opt(t,e,o){return{beforeCreate(){const n=Oo();if(!n)throw ko(No.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=e,this===this.$root)this.$i18n=zb(t,i);else{i.__injectWithOption=!0,i.__extender=o.__vueI18nExtend,this.$i18n=r0(i);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=zb(t,s);else{this.$i18n=r0({__i18n:s.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:e});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=t;s.__i18nGlobal&&UL(e,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,r)=>this.$i18n.te(i,r),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),o.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Oo();if(!n)throw ko(No.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),o.__deleteInstance(n),delete this.$i18n}}}function zb(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[OL](e.pluralizationRules||t.pluralizationRules);const o=Qf(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(o).forEach(n=>t.mergeLocaleMessage(n,o[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const npt=xs("global-vue-i18n");function ipt(t={},e){const o=__VUE_I18N_LEGACY_API__&&we(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=we(t.globalInjection)?t.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&o?!!t.allowComposition:!0,i=new Map,[r,a]=rpt(t,o),d=xs("");function u(h){return i.get(h)||null}function c(h,g){i.set(h,g)}function C(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return s},async install(g,...b){if(g.__VUE_I18N_SYMBOL__=d,g.provide(g.__VUE_I18N_SYMBOL__,h),he(b[0])){const D=b[0];h.__composerExtend=D.__composerExtend,h.__vueI18nExtend=D.__vueI18nExtend}let y=null;!o&&n&&(y=Cpt(g,h.global)),__VUE_I18N_FULL_INSTALL__&&ept(g,h,...b),__VUE_I18N_LEGACY_API__&&o&&g.mixin(opt(a,a.__composer,h));const R=g.unmount;g.unmount=()=>{y&&y(),h.dispose(),R()}},get global(){return a},dispose(){r.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:C};return h}}function iF(t={}){const e=Oo();if(e==null)throw ko(No.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ko(No.NOT_INSTALLED);const o=spt(e),n=lpt(o),s=$L(e),i=apt(t,s);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!t.__useComponent){if(!o.allowComposition)throw ko(No.NOT_AVAILABLE_IN_LEGACY_MODE);return cpt(e,i,n,t)}if(i==="global")return UL(n,t,s),n;if(i==="parent"){let d=upt(o,e,t.__useComponent);return d==null&&(d=n),d}const r=o;let a=r.__getInstance(e);if(a==null){const d=Zo({},t);"__i18n"in s&&(d.__i18n=s.__i18n),n&&(d.__root=n),a=oF(d),r.__composerExtend&&(a[i0]=r.__composerExtend(a)),mpt(r,e,a),r.__setInstance(e,a)}return a}function rpt(t,e,o){const n=m0();{const s=__VUE_I18N_LEGACY_API__&&e?n.run(()=>r0(t)):n.run(()=>oF(t));if(s==null)throw ko(No.UNEXPECTED_ERROR);return[n,s]}}function spt(t){{const e=Vr(t.isCE?npt:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ko(t.isCE?No.NOT_INSTALLED_WITH_PROVIDE:No.UNEXPECTED_ERROR);return e}}function apt(t,e){return Jf(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function lpt(t){return t.mode==="composition"?t.global:t.global.__composer}function upt(t,e,o=!1){let n=null;const s=e.root;let i=dpt(e,o);for(;i!=null;){const r=t;if(t.mode==="composition")n=r.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=r.__getInstance(i);a!=null&&(n=a.__composer,o&&n&&!n[HL]&&(n=null))}if(n!=null||s===i)break;i=i.parent}return n}function dpt(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function mpt(t,e,o){Ca(()=>{},e),Td(()=>{const n=o;t.__deleteInstance(e);const s=n[i0];s&&(s(),delete n[i0])},e)}function cpt(t,e,o,n={}){const s=e==="local",i=Gi(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw ko(No.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const r=we(n.inheritLocale)?n.inheritLocale:!Nt(n.locale),a=De(!s||r?o.locale.value:Nt(n.locale)?n.locale:Il),d=De(!s||r?o.fallbackLocale.value:Nt(n.fallbackLocale)||ao(n.fallbackLocale)||he(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=De(Qf(a.value,n)),c=De(he(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),C=De(he(n.numberFormats)?n.numberFormats:{[a.value]:{}}),h=s?o.missingWarn:we(n.missingWarn)||Vs(n.missingWarn)?n.missingWarn:!0,g=s?o.fallbackWarn:we(n.fallbackWarn)||Vs(n.fallbackWarn)?n.fallbackWarn:!0,b=s?o.fallbackRoot:we(n.fallbackRoot)?n.fallbackRoot:!0,y=!!n.fallbackFormat,R=io(n.missing)?n.missing:null,D=io(n.postTranslation)?n.postTranslation:null,x=s?o.warnHtmlMessage:we(n.warnHtmlMessage)?n.warnHtmlMessage:!0,v=!!n.escapeParameter,B=s?o.modifiers:he(n.modifiers)?n.modifiers:{},_=n.pluralRules||s&&o.pluralRules;function w(){return[a.value,d.value,u.value,c.value,C.value]}const W=zt({get:()=>i.value?i.value.locale.value:a.value,set:S=>{i.value&&(i.value.locale.value=S),a.value=S}}),Z=zt({get:()=>i.value?i.value.fallbackLocale.value:d.value,set:S=>{i.value&&(i.value.fallbackLocale.value=S),d.value=S}}),M=zt(()=>i.value?i.value.messages.value:u.value),O=zt(()=>c.value),nt=zt(()=>C.value);function q(){return i.value?i.value.getPostTranslationHandler():D}function Q(S){i.value&&i.value.setPostTranslationHandler(S)}function lt(){return i.value?i.value.getMissingHandler():R}function Dt(S){i.value&&i.value.setMissingHandler(S)}function et(S){return w(),S()}function ct(...S){return i.value?et(()=>Reflect.apply(i.value.t,null,[...S])):et(()=>"")}function yt(...S){return i.value?Reflect.apply(i.value.rt,null,[...S]):""}function Wt(...S){return i.value?et(()=>Reflect.apply(i.value.d,null,[...S])):et(()=>"")}function Zt(...S){return i.value?et(()=>Reflect.apply(i.value.n,null,[...S])):et(()=>"")}function ee(S){return i.value?i.value.tm(S):{}}function kt(S,A){return i.value?i.value.te(S,A):!1}function Ee(S){return i.value?i.value.getLocaleMessage(S):{}}function Jt(S,A){i.value&&(i.value.setLocaleMessage(S,A),u.value[S]=A)}function fe(S,A){i.value&&i.value.mergeLocaleMessage(S,A)}function ae(S){return i.value?i.value.getDateTimeFormat(S):{}}function ge(S,A){i.value&&(i.value.setDateTimeFormat(S,A),c.value[S]=A)}function Se(S,A){i.value&&i.value.mergeDateTimeFormat(S,A)}function _e(S){return i.value?i.value.getNumberFormat(S):{}}function je(S,A){i.value&&(i.value.setNumberFormat(S,A),C.value[S]=A)}function Oe(S,A){i.value&&i.value.mergeNumberFormat(S,A)}const Je={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:Z,messages:M,datetimeFormats:O,numberFormats:nt,get inheritLocale(){return i.value?i.value.inheritLocale:r},set inheritLocale(S){i.value&&(i.value.inheritLocale=S)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:B},get pluralRules(){return i.value?i.value.pluralRules:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(S){i.value&&(i.value.missingWarn=S)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(S){i.value&&(i.value.missingWarn=S)},get fallbackRoot(){return i.value?i.value.fallbackRoot:b},set fallbackRoot(S){i.value&&(i.value.fallbackRoot=S)},get fallbackFormat(){return i.value?i.value.fallbackFormat:y},set fallbackFormat(S){i.value&&(i.value.fallbackFormat=S)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:x},set warnHtmlMessage(S){i.value&&(i.value.warnHtmlMessage=S)},get escapeParameter(){return i.value?i.value.escapeParameter:v},set escapeParameter(S){i.value&&(i.value.escapeParameter=S)},t:ct,getPostTranslationHandler:q,setPostTranslationHandler:Q,getMissingHandler:lt,setMissingHandler:Dt,rt:yt,d:Wt,n:Zt,tm:ee,te:kt,getLocaleMessage:Ee,setLocaleMessage:Jt,mergeLocaleMessage:fe,getDateTimeFormat:ae,setDateTimeFormat:ge,mergeDateTimeFormat:Se,getNumberFormat:_e,setNumberFormat:je,mergeNumberFormat:Oe};function T(S){S.locale.value=a.value,S.fallbackLocale.value=d.value,Object.keys(u.value).forEach(A=>{S.mergeLocaleMessage(A,u.value[A])}),Object.keys(c.value).forEach(A=>{S.mergeDateTimeFormat(A,c.value[A])}),Object.keys(C.value).forEach(A=>{S.mergeNumberFormat(A,C.value[A])}),S.escapeParameter=v,S.fallbackFormat=y,S.fallbackRoot=b,S.fallbackWarn=g,S.missingWarn=h,S.warnHtmlMessage=x}return Rf(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw ko(No.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const S=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=S.locale.value,d.value=S.fallbackLocale.value,u.value=S.messages.value,c.value=S.datetimeFormats.value,C.value=S.numberFormats.value):s&&T(S)}),Je}const fpt=["locale","fallbackLocale","availableLocales"],Gb=["t","rt","d","n","tm","te"];function Cpt(t,e){const o=Object.create(null);return fpt.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i)throw ko(No.UNEXPECTED_ERROR);const r=So(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(o,s,r)}),t.config.globalProperties.$i18n=o,Gb.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i||!i.value)throw ko(No.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,i)}),()=>{delete t.config.globalProperties.$i18n,Gb.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}jCt();__INTLIFY_JIT_COMPILATION__?Db(MCt):Db(WCt);_Ct(mCt);ICt(vL);if(__INTLIFY_PROD_DEVTOOLS__){const t=yr();t.__INTLIFY__=!0,SCt(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const ppt={productShelfBuilderComponent:{titleText:"Algorithm Selection",algorithmLabel:"Algorithm",cancelButton:"Cancel",applyButton:"Apply",listSelector:{productListShelf:"Product Shelf",relatedProductsForProductListShelf:"Related Products for Product Shelf",alternativeProductsForProductListShelf:"Alternative Products for Product Shelf",popularProductsInCategoryListShelf:"Popular Products in Category",popularProductsShelf:"Popular Products"},productShelfBuilders:{productsQuantityLabel:"Number of Products",productsAtLeastText:"From",productsLimitText:"To",popularProductListDescriptionText:"The email will display popular products across the store.",productListDescriptionText:"Select products to display",relatedProductListDescriptionText:"Select products to display",alternativeProductListDescriptionText:"Select a block of products to determine which ones we will offer alternative products for. Please note that customers will see not the selected products, but the products calculated by the alternative products algorithm for the selected products.",popularFromCategoryListDescriptionText:"Select a block of categories to determine which ones we will offer popular products for. Please note that customers will see additional products in the email that match your selection.",productsSelectButton:"Select Products",categorySelectButton:"Select Categories"}},productListComposerModalWindow:{titleText:"Product List",cancelButton:"Cancel",applyButton:"Apply",transferAllButton:"Transfer All",searchInputPlaceholder:"Name of one product or list of IDs",emptySearchProductListTopText:"Name of one product",emptySearchProductListBottomText:"or list of IDs separated by commas",emptySelectedProductListText:"The product list is currently empty.",selectedProductListTitleText:"Product List",selectedProductListDeclensions:{one:"product",few:"products",many:"products"}},categoryListComposerModalWindow:{titleText:"Category Selection",cancelButton:"Cancel",applyButton:"Apply",transferAllButton:"Transfer All",searchInputPlaceholder:"Name of one category or list of IDs",emptySearchCategoryListText:"Enter the name of a category to display results.",emptySelectedCategoryListText:"The category list is currently empty.",selectedCategoryListTitleText:"Category List",selectedCategoryListDeclensions:{one:"category",few:"categories",many:"categories"}}},hpt={productShelfBuilderComponent:{titleText:"Настройки товарной полки",algorithmLabel:"Алгоритм подбора товаров",cancelButton:"Отмена",applyButton:"Применить",listSelector:{productListShelf:"Продуктовая полка",relatedProductsForProductListShelf:"Сопутствующие товары к товарам",alternativeProductsForProductListShelf:"Альтернативы товаров",popularProductsInCategoryListShelf:"Популярные товары из категории",popularProductsShelf:"Популярные товары"},productShelfBuilders:{productsQuantityLabel:"Количество товаров",productsAtLeastText:"От",productsLimitText:"До",popularProductListDescriptionText:"В письме будут отображаться самые популярные товары магазина.",productListDescriptionText:"Выберите товары для отображения",relatedProductListDescriptionText:"Выберите товары для отображения",alternativeProductListDescriptionText:"Выберите блок товаров, чтобы определить, к каким из них мы предложим <b>альтернативные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме не выбранные товары, а товары рассчитанные по алгоритму <b>альтернативные товары</b> к выбранным товарам.",popularFromCategoryListDescriptionText:"Выберите блок категорий, чтобы определить, к каким из них мы предложим <b>популярные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме дополнительные товары, соответствующие вашему выбору.",productsSelectButton:"Выбрать товары",categorySelectButton:"Выбрать категории"}},productListComposerModalWindow:{titleText:"Список товаров",cancelButton:"Отменить",applyButton:"Применить",transferAllButton:"Перенести все",searchInputPlaceholder:"Название одного товара или список ID",emptySearchProductListTopText:"Название одного товара",emptySearchProductListBottomText:"или список ID через запятую",emptySelectedProductListText:"Список товаров пока что пуст.",selectedProductListTitleText:"Список товаров",selectedProductListDeclensions:{one:"продукт",few:"продукта",many:"продуктов"}},categoryListComposerModalWindow:{titleText:"Выбор категорий",cancelButton:"Отменить",applyButton:"Применить",transferAllButton:"Перенести все",searchInputPlaceholder:"Название одной категории или список ID",emptySearchCategoryListText:"Введите название категории, чтобы отобразились результаты.",emptySelectedCategoryListText:"Список категорий пока что пуст.",selectedCategoryListTitleText:"Список категорий",selectedCategoryListDeclensions:{one:"категория",few:"категории",many:"категорий"}}},GL=ipt({locale:"ru",legacy:!1,fallbackWarn:!1,missingWarn:!1,messages:{en:ppt,ru:hpt},warnHtmlMessage:!1}),gpt=()=>{const{t}=GL.global;return(e,o)=>o?t(e,o):t(e)};gpt();const Fpt=gn,ypt=t=>{const e=t.contactCustomData;return o=>Fpt(o.stringExpressionDataSource).Match({whenMassMailingContactCustomData:n=>Promise.resolve(e[n.FieldName]),whenProductImageUrlBuilderExpression:n=>t.productImageUrlBuilderExpressionEvaluator({expression:n,context:o.context})})},Spt=t=>async({context:e,expression:o})=>t.numberExpressionEvaluator({numberExpression:o.ProductId,context:e}).then(n=>"https://cdn.retailrocket.net/api/1.0/partner/"+t.partnerId+"/item/"+n+"/picture/?format=png&width="+o.ImageSize.Width+"&height="+o.ImageSize.Height+"&scale=both"),Vpt=t=>{const e=o=>Bv(o.listExpression).Match({whenContextValueExpression:n=>Promise.resolve(F9(n.Path,o.context)),whenChunkExpression:async n=>{const s=await e({listExpression:n.ListExpression,context:o.context});return s.slice(0,Math.floor(s.length/n.ChunkSize)*n.ChunkSize)},whenLimitExpression:async n=>(await e({listExpression:n.ListExpression,context:o.context})).slice(0,n.Limit),whenDataSource:n=>t.listExpressionDataSourceEvaluator(n)});return e},bpt=t=>e=>Dv(e.numberExpression).Match({whenContextValueExpression:o=>Promise.resolve(S9(o.Path,e.context)),whenConstValueExpression:o=>Promise.resolve(o.Value),whenListLengthExpression:async o=>t.listExpressionEvaluator({listExpression:o.ListExpression,context:e.context}).then(n=>n.length),whenDataSource:o=>Promise.resolve(t.numberExpressionDataSourceEvaluator(o))}),Tpt=t=>{const e=o=>{const n=t.stringExpressionDataSourceEvaluatorFactory(e);return vv(o.stringExpression).Match({whenConcatStringExpressions:s=>Rpt({concatStringExpressions:s,stringExpressionEvaluator:e,context:o.context}),whenContextValueExpression:s=>Bpt({contextValueExpression:s,context:o.context}),whenConstValueExpression:s=>Lpt({stringConstValueExpression:s}),whenTruncateValueExpression:s=>Dpt({truncateValueExpression:s,context:o.context,stringExpressionEvaluator:e}),whenDataSource:s=>n({stringExpressionDataSource:s,context:o.context}),whenNumberToStringExpression:s=>vpt({numberToStringExpression:s,context:o.context,numberExpressionEvaluator:t.numberExpressionEvaluator})})};return e},Bpt=t=>Promise.resolve(y9(t.contextValueExpression.Path,t.context)),Dpt=async t=>(await t.stringExpressionEvaluator({stringExpression:t.truncateValueExpression.StringExpression,context:t.context})).slice(0,t.truncateValueExpression.MaxLength)+t.truncateValueExpression.Tail,vpt=async t=>(await t.numberExpressionEvaluator({numberExpression:t.numberToStringExpression.NumberExpression,context:t.context})).toString(),Rpt=t=>Promise.all(t.concatStringExpressions.StringExpressions.map(e=>t.stringExpressionEvaluator({stringExpression:e,context:t.context}))).then(e=>e.join("")),Lpt=t=>Promise.resolve(t.stringConstValueExpression.Value),xpt=()=>()=>Promise.resolve(0),KL=t=>({dataStructBuilderExpression:e,context:o})=>Promise.all(Object.entries(e).map(async([n,s])=>({key:n,value:await t.expressionEvaluator({expression:s,context:o})}))).then(n=>Object.fromEntries(n.map(s=>[s.key,s.value]))),_pt=t=>{const e=({expression:o,context:n})=>{const s=t.dataStructBuilderExpressionEvaluatorFactory(e);return yg(o).Match({whenNumberExpression:i=>t.numberExpressionEvaluator({numberExpression:i,context:n}),whenStringExpression:i=>t.stringExpressionEvaluator({stringExpression:i,context:n}),whenListExpression:i=>t.listExpressionEvaluator({listExpression:i,context:n}),whenRecordBuilderExpression:i=>s({dataStructBuilderExpression:i,context:n})})};return e},YL="#app",vi=document.querySelector(YL),Gt={partnerId:vi.getAttribute("data-partner-id"),wysiwygBffProxyBaseUrl:vi.getAttribute("data-wysiwyg-bff-proxy-base-url"),wysiwygTemplateEditorBffBaseUrl:vi.getAttribute("data-wysiwyg-template-editor-bff-base-url"),antiForgeryHeaderTokenName:vi.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:vi.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:vi.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:vi.getAttribute("data-anti-forgery-form-token-value"),emailTemplateJson:vi.getAttribute("data-email-template-json"),previewTemplateDataJson:vi.getAttribute("data-preview-template-data-json"),resetTemplateFormUrl:vi.getAttribute("data-reset-template-form-url"),exitLink:vi.getAttribute("data-exit-link")},Ipt=t=>jo({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}),Ept=pR(jo({baseUrl:Gt.wysiwygTemplateEditorBffBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),Ppt=()=>{const t=new FormData;t.append(Gt.antiForgeryFormTokenName,Gt.antiForgeryFormTokenValue);const e=eN({method:"POST",action:Gt.resetTemplateFormUrl,formData:t});document.body.appendChild(e),e.submit()};let Npt={};const wpt=FR(Ipt({baseUrl:Gt.wysiwygBffProxyBaseUrl})),Apt=Ant({partnerId:Gt.partnerId,listExpressionDataSourceBffClient:wpt,customerStockId:void 0}),qf=Vpt({listExpressionDataSourceEvaluator:Apt}),Wpt=xpt(),ff=bpt({listExpressionEvaluator:qf,numberExpressionDataSourceEvaluator:Wpt}),ZL=Tpt({listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionDataSourceEvaluatorFactory:()=>ypt({productImageUrlBuilderExpressionEvaluator:Spt({partnerId:Gt.partnerId,numberExpressionEvaluator:ff}),contactCustomData:Npt})}),JL=_pt({listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionEvaluator:ZL,dataStructBuilderExpressionEvaluatorFactory:t=>KL({expressionEvaluator:t})}),Mpt=KL({expressionEvaluator:JL}),rF=Kc(hot,{onTemplateReset:()=>{console.log("onTemplateReset"),Ppt()},exitLink:Gt.exitLink,deps:Vnt({partnerId:Gt.partnerId,saveEmailTemplate:async t=>(await Ept.postCreateTemplate({body:{partnerId:Gt.partnerId,templateJson:JSON.stringify(t.emailTemplate)}})).status===200?"Success":"Fail",listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionEvaluator:ZL,dataStructExpressionEvaluator:Mpt,expressionEvaluator:JL,getComponentLibraryFactory:t=>()=>t.getComponentLibraryHttpClient({body:{partnerId:t.partnerId,componentTypes:[{multicast:{}},{common:{}}]}}).then(e=>tit(e.body.sections)),canProductShelfDataSourceBeConverted:()=>!1,httpClientComponentFactoryDelegate:t=>({multicast:{componentJson:JSON.stringify(t)}}),emailComponentSettingsModifierPlugin:lit({productShelfDataSourceExpressionBuilderComponent:Klt,deps:fut({partnerId:Gt.partnerId,customerStockId:"customerStockId",productShelfBuilderModalWindowBffClient:IR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),productCategoryPickerModalWindowBffClient:NR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),productPickerModalWindowBffClient:MR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))})}),initialEmailTemplate:JSON.parse(Gt.emailTemplateJson),wysiwygTemplateEditorBffClient:Sot({themeLibraryBffClient:OR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),componentLibraryBffClient:HR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))}),addThemeLibrarySectionItemModalWindowBffClient:jR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),addComponentLibrarySectionItemModalWindowBffClient:VR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionItemModalWindowBffClient:zR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionModalWindowBffClient:GR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),editThemeLibrarySectionItemModalWindowBffClient:ZR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),createComponentLibrarySectionModalWindowBffClient:JR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),editComponentLibrarySectionItemModalWindowBffClient:qR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionItemModalWindowBffClient:tL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),createThemeLibrarySectionModalWindowBffClient:eL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionModalWindowBffClient:oL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))})});rF.use(SL({components:{VSkeletonLoader:Fft}}));rF.use(GL);rF.mount(YL);
|
|
96
|
+
*/const UCt="9.8.0";function jCt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yr().__INTLIFY_PROD_DEVTOOLS__=!1)}const ML=BCt.__EXTEND_POINT__,Qr=Qg(ML);Qr(),Qr(),Qr(),Qr(),Qr(),Qr(),Qr(),Qr();const kL=_i.__EXTEND_POINT__,Dn=Qg(kL),No={UNEXPECTED_RETURN_TYPE:kL,INVALID_ARGUMENT:Dn(),MUST_BE_CALL_SETUP_TOP:Dn(),NOT_INSTALLED:Dn(),NOT_AVAILABLE_IN_LEGACY_MODE:Dn(),REQUIRED_VALUE:Dn(),INVALID_VALUE:Dn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Dn(),NOT_INSTALLED_WITH_PROVIDE:Dn(),UNEXPECTED_ERROR:Dn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Dn(),BRIDGE_SUPPORT_VUE_2_ONLY:Dn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Dn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Dn(),__EXTEND_POINT__:Dn()};function ko(t,...e){return Kl(t,null,void 0)}const e0=xs("__translateVNode"),o0=xs("__datetimeParts"),n0=xs("__numberParts"),OL=xs("__setPluralRules"),HL=xs("__injectWithOption"),i0=xs("__dispose");function Fd(t){if(!Ye(t))return t;for(const e in t)if(hd(t,e))if(!e.includes("."))Ye(t[e])&&Fd(t[e]);else{const o=e.split("."),n=o.length-1;let s=t,i=!1;for(let r=0;r<n;r++){if(o[r]in s||(s[o[r]]={}),!Ye(s[o[r]])){i=!0;break}s=s[o[r]]}i||(s[o[n]]=t[e],delete t[e]),Ye(s[o[n]])&&Fd(s[o[n]])}return t}function Qf(t,e){const{messages:o,__i18n:n,messageResolver:s,flatJson:i}=e,r=he(o)?o:ao(n)?{}:{[t]:{}};if(ao(n)&&n.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:d,resource:u}=a;d?(r[d]=r[d]||{},Xu(u,r[d])):Xu(u,r)}else Nt(a)&&Xu(JSON.parse(a),r)}),s==null&&i)for(const a in r)hd(r,a)&&Fd(r[a]);return r}function $L(t){return t.type}function UL(t,e,o){let n=Ye(e.messages)?e.messages:{};"__i18nGlobal"in o&&(n=Qf(t.locale.value,{messages:n,__i18n:o.__i18nGlobal}));const s=Object.keys(n);s.length&&s.forEach(i=>{t.mergeLocaleMessage(i,n[i])});{if(Ye(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(r=>{t.mergeDateTimeFormat(r,e.datetimeFormats[r])})}if(Ye(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(r=>{t.mergeNumberFormat(r,e.numberFormats[r])})}}}function wb(t){return P(br,null,t,0)}const Ab="__INTLIFY_META__",Wb=()=>[],zCt=()=>!1;let Mb=0;function kb(t){return(e,o,n,s)=>t(o,n,Oo()||void 0,s)}const GCt=()=>{const t=Oo();let e=null;return t&&(e=$L(t)[Ab])?{[Ab]:e}:null};function oF(t={},e){const{__root:o,__injectWithOption:n}=t,s=o===void 0,i=t.flatJson;let r=we(t.inheritLocale)?t.inheritLocale:!0;const a=De(o&&r?o.locale.value:Nt(t.locale)?t.locale:Il),d=De(o&&r?o.fallbackLocale.value:Nt(t.fallbackLocale)||ao(t.fallbackLocale)||he(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:a.value),u=De(Qf(a.value,t)),c=De(he(t.datetimeFormats)?t.datetimeFormats:{[a.value]:{}}),C=De(he(t.numberFormats)?t.numberFormats:{[a.value]:{}});let h=o?o.missingWarn:we(t.missingWarn)||Vs(t.missingWarn)?t.missingWarn:!0,g=o?o.fallbackWarn:we(t.fallbackWarn)||Vs(t.fallbackWarn)?t.fallbackWarn:!0,b=o?o.fallbackRoot:we(t.fallbackRoot)?t.fallbackRoot:!0,y=!!t.fallbackFormat,R=io(t.missing)?t.missing:null,D=io(t.missing)?kb(t.missing):null,x=io(t.postTranslation)?t.postTranslation:null,v=o?o.warnHtmlMessage:we(t.warnHtmlMessage)?t.warnHtmlMessage:!0,B=!!t.escapeParameter;const _=o?o.modifiers:he(t.modifiers)?t.modifiers:{};let w=t.pluralRules||o&&o.pluralRules,W;W=(()=>{s&&vb(null);const $={version:UCt,locale:a.value,fallbackLocale:d.value,messages:u.value,modifiers:_,pluralRules:w,missing:D===null?void 0:D,missingWarn:h,fallbackWarn:g,fallbackFormat:y,unresolving:!0,postTranslation:x===null?void 0:x,warnHtmlMessage:v,escapeParameter:B,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};$.datetimeFormats=c.value,$.numberFormats=C.value,$.__datetimeFormatters=he(W)?W.__datetimeFormatters:void 0,$.__numberFormatters=he(W)?W.__numberFormatters:void 0;const tt=wCt($);return s&&vb(tt),tt})(),Lu(W,a.value,d.value);function M(){return[a.value,d.value,u.value,c.value,C.value]}const O=zt({get:()=>a.value,set:$=>{a.value=$,W.locale=a.value}}),nt=zt({get:()=>d.value,set:$=>{d.value=$,W.fallbackLocale=d.value,Lu(W,a.value,$)}}),q=zt(()=>u.value),Q=zt(()=>c.value),lt=zt(()=>C.value);function Dt(){return io(x)?x:null}function et($){x=$,W.postTranslation=$}function ct(){return R}function yt($){$!==null&&(D=kb($)),R=$,W.missing=D}const Wt=($,tt,xt,Et,ne,U)=>{M();let Y;try{__INTLIFY_PROD_DEVTOOLS__,s||(W.fallbackContext=o?NCt():void 0),Y=$(W)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(W.fallbackContext=void 0)}if(xt!=="translate exists"&&Io(Y)&&Y===Xf||xt==="translate exists"&&!Y){const[ot,Ct]=tt();return o&&b?Et(o):ne(ot)}else{if(U(Y))return Y;throw ko(No.UNEXPECTED_RETURN_TYPE)}};function Zt(...$){return Wt(tt=>Reflect.apply(_b,null,[tt,...$]),()=>Qh(...$),"translate",tt=>Reflect.apply(tt.t,tt,[...$]),tt=>tt,tt=>Nt(tt))}function ee(...$){const[tt,xt,Et]=$;if(Et&&!Ye(Et))throw ko(No.INVALID_ARGUMENT);return Zt(tt,xt,Zo({resolvedMessage:!0},Et||{}))}function kt(...$){return Wt(tt=>Reflect.apply(Ib,null,[tt,...$]),()=>qh(...$),"datetime format",tt=>Reflect.apply(tt.d,tt,[...$]),()=>Tb,tt=>Nt(tt))}function Ee(...$){return Wt(tt=>Reflect.apply(Pb,null,[tt,...$]),()=>t0(...$),"number format",tt=>Reflect.apply(tt.n,tt,[...$]),()=>Tb,tt=>Nt(tt))}function Jt($){return $.map(tt=>Nt(tt)||Io(tt)||we(tt)?wb(String(tt)):tt)}const ae={normalize:Jt,interpolate:$=>$,type:"vnode"};function ge(...$){return Wt(tt=>{let xt;const Et=tt;try{Et.processor=ae,xt=Reflect.apply(_b,null,[Et,...$])}finally{Et.processor=null}return xt},()=>Qh(...$),"translate",tt=>tt[e0](...$),tt=>[wb(tt)],tt=>ao(tt))}function Se(...$){return Wt(tt=>Reflect.apply(Pb,null,[tt,...$]),()=>t0(...$),"number format",tt=>tt[n0](...$),Wb,tt=>Nt(tt)||ao(tt))}function _e(...$){return Wt(tt=>Reflect.apply(Ib,null,[tt,...$]),()=>qh(...$),"datetime format",tt=>tt[o0](...$),Wb,tt=>Nt(tt)||ao(tt))}function je($){w=$,W.pluralRules=w}function Oe($,tt){return Wt(()=>{if(!$)return!1;const xt=Nt(tt)?tt:a.value,Et=S(xt),ne=W.messageResolver(Et,$);return El(ne)||si(ne)||Nt(ne)},()=>[$],"translate exists",xt=>Reflect.apply(xt.te,xt,[$,tt]),zCt,xt=>we(xt))}function Je($){let tt=null;const xt=vL(W,d.value,a.value);for(let Et=0;Et<xt.length;Et++){const ne=u.value[xt[Et]]||{},U=W.messageResolver(ne,$);if(U!=null){tt=U;break}}return tt}function T($){const tt=Je($);return tt??(o?o.tm($)||{}:{})}function S($){return u.value[$]||{}}function A($,tt){if(i){const xt={[$]:tt};for(const Et in xt)hd(xt,Et)&&Fd(xt[Et]);tt=xt[$]}u.value[$]=tt,W.messages=u.value}function j($,tt){u.value[$]=u.value[$]||{};const xt={[$]:tt};for(const Et in xt)hd(xt,Et)&&Fd(xt[Et]);tt=xt[$],Xu(tt,u.value[$]),W.messages=u.value}function J($){return c.value[$]||{}}function it($,tt){c.value[$]=tt,W.datetimeFormats=c.value,Eb(W,$,tt)}function Tt($,tt){c.value[$]=Zo(c.value[$]||{},tt),W.datetimeFormats=c.value,Eb(W,$,tt)}function ft($){return C.value[$]||{}}function Ft($,tt){C.value[$]=tt,W.numberFormats=C.value,Nb(W,$,tt)}function ht($,tt){C.value[$]=Zo(C.value[$]||{},tt),W.numberFormats=C.value,Nb(W,$,tt)}Mb++,o&&Zh&&(po(o.locale,$=>{r&&(a.value=$,W.locale=$,Lu(W,a.value,d.value))}),po(o.fallbackLocale,$=>{r&&(d.value=$,W.fallbackLocale=$,Lu(W,a.value,d.value))}));const vt={id:Mb,locale:O,fallbackLocale:nt,get inheritLocale(){return r},set inheritLocale($){r=$,$&&o&&(a.value=o.locale.value,d.value=o.fallbackLocale.value,Lu(W,a.value,d.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:q,get modifiers(){return _},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn($){h=$,W.missingWarn=h},get fallbackWarn(){return g},set fallbackWarn($){g=$,W.fallbackWarn=g},get fallbackRoot(){return b},set fallbackRoot($){b=$},get fallbackFormat(){return y},set fallbackFormat($){y=$,W.fallbackFormat=y},get warnHtmlMessage(){return v},set warnHtmlMessage($){v=$,W.warnHtmlMessage=$},get escapeParameter(){return B},set escapeParameter($){B=$,W.escapeParameter=$},t:Zt,getLocaleMessage:S,setLocaleMessage:A,mergeLocaleMessage:j,getPostTranslationHandler:Dt,setPostTranslationHandler:et,getMissingHandler:ct,setMissingHandler:yt,[OL]:je};return vt.datetimeFormats=Q,vt.numberFormats=lt,vt.rt=ee,vt.te=Oe,vt.tm=T,vt.d=kt,vt.n=Ee,vt.getDateTimeFormat=J,vt.setDateTimeFormat=it,vt.mergeDateTimeFormat=Tt,vt.getNumberFormat=ft,vt.setNumberFormat=Ft,vt.mergeNumberFormat=ht,vt[HL]=n,vt[e0]=ge,vt[o0]=_e,vt[n0]=Se,vt}function KCt(t){const e=Nt(t.locale)?t.locale:Il,o=Nt(t.fallbackLocale)||ao(t.fallbackLocale)||he(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,n=io(t.missing)?t.missing:void 0,s=we(t.silentTranslationWarn)||Vs(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,i=we(t.silentFallbackWarn)||Vs(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,r=we(t.fallbackRoot)?t.fallbackRoot:!0,a=!!t.formatFallbackMessages,d=he(t.modifiers)?t.modifiers:{},u=t.pluralizationRules,c=io(t.postTranslation)?t.postTranslation:void 0,C=Nt(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,h=!!t.escapeParameterHtml,g=we(t.sync)?t.sync:!0;let b=t.messages;if(he(t.sharedMessages)){const _=t.sharedMessages;b=Object.keys(_).reduce((W,Z)=>{const M=W[Z]||(W[Z]={});return Zo(M,_[Z]),W},b||{})}const{__i18n:y,__root:R,__injectWithOption:D}=t,x=t.datetimeFormats,v=t.numberFormats,B=t.flatJson;return{locale:e,fallbackLocale:o,messages:b,flatJson:B,datetimeFormats:x,numberFormats:v,missing:n,missingWarn:s,fallbackWarn:i,fallbackRoot:r,fallbackFormat:a,modifiers:d,pluralRules:u,postTranslation:c,warnHtmlMessage:C,escapeParameter:h,messageResolver:t.messageResolver,inheritLocale:g,__i18n:y,__root:R,__injectWithOption:D}}function r0(t={},e){{const o=oF(KCt(t)),{__extender:n}=t,s={id:o.id,get locale(){return o.locale.value},set locale(i){o.locale.value=i},get fallbackLocale(){return o.fallbackLocale.value},set fallbackLocale(i){o.fallbackLocale.value=i},get messages(){return o.messages.value},get datetimeFormats(){return o.datetimeFormats.value},get numberFormats(){return o.numberFormats.value},get availableLocales(){return o.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(i){},get missing(){return o.getMissingHandler()},set missing(i){o.setMissingHandler(i)},get silentTranslationWarn(){return we(o.missingWarn)?!o.missingWarn:o.missingWarn},set silentTranslationWarn(i){o.missingWarn=we(i)?!i:i},get silentFallbackWarn(){return we(o.fallbackWarn)?!o.fallbackWarn:o.fallbackWarn},set silentFallbackWarn(i){o.fallbackWarn=we(i)?!i:i},get modifiers(){return o.modifiers},get formatFallbackMessages(){return o.fallbackFormat},set formatFallbackMessages(i){o.fallbackFormat=i},get postTranslation(){return o.getPostTranslationHandler()},set postTranslation(i){o.setPostTranslationHandler(i)},get sync(){return o.inheritLocale},set sync(i){o.inheritLocale=i},get warnHtmlInMessage(){return o.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){o.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return o.escapeParameter},set escapeParameterHtml(i){o.escapeParameter=i},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(i){},get pluralizationRules(){return o.pluralRules||{}},__composer:o,t(...i){const[r,a,d]=i,u={};let c=null,C=null;if(!Nt(r))throw ko(No.INVALID_ARGUMENT);const h=r;return Nt(a)?u.locale=a:ao(a)?c=a:he(a)&&(C=a),ao(d)?c=d:he(d)&&(C=d),Reflect.apply(o.t,o,[h,c||C||{},u])},rt(...i){return Reflect.apply(o.rt,o,[...i])},tc(...i){const[r,a,d]=i,u={plural:1};let c=null,C=null;if(!Nt(r))throw ko(No.INVALID_ARGUMENT);const h=r;return Nt(a)?u.locale=a:Io(a)?u.plural=a:ao(a)?c=a:he(a)&&(C=a),Nt(d)?u.locale=d:ao(d)?c=d:he(d)&&(C=d),Reflect.apply(o.t,o,[h,c||C||{},u])},te(i,r){return o.te(i,r)},tm(i){return o.tm(i)},getLocaleMessage(i){return o.getLocaleMessage(i)},setLocaleMessage(i,r){o.setLocaleMessage(i,r)},mergeLocaleMessage(i,r){o.mergeLocaleMessage(i,r)},d(...i){return Reflect.apply(o.d,o,[...i])},getDateTimeFormat(i){return o.getDateTimeFormat(i)},setDateTimeFormat(i,r){o.setDateTimeFormat(i,r)},mergeDateTimeFormat(i,r){o.mergeDateTimeFormat(i,r)},n(...i){return Reflect.apply(o.n,o,[...i])},getNumberFormat(i){return o.getNumberFormat(i)},setNumberFormat(i,r){o.setNumberFormat(i,r)},mergeNumberFormat(i,r){o.mergeNumberFormat(i,r)},getChoiceIndex(i,r){return-1}};return s.__extender=n,s}}const nF={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function YCt({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((n,s)=>[...n,...s.type===Lt?s.children:[s]],[]):e.reduce((o,n)=>{const s=t[n];return s&&(o[n]=s()),o},{})}function jL(t){return Lt}const ZCt=ut({name:"i18n-t",props:Zo({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Io(t)||!isNaN(t)}},nF),setup(t,e){const{slots:o,attrs:n}=e,s=t.i18n||iF({useScope:t.scope,__useComponent:!0});return()=>{const i=Object.keys(o).filter(C=>C!=="_"),r={};t.locale&&(r.locale=t.locale),t.plural!==void 0&&(r.plural=Nt(t.plural)?+t.plural:t.plural);const a=YCt(e,i),d=s[e0](t.keypath,a,r),u=Zo({},n),c=Nt(t.tag)||Ye(t.tag)?t.tag:jL();return Al(c,u,d)}}}),Ob=ZCt;function JCt(t){return ao(t)&&!Nt(t[0])}function zL(t,e,o,n){const{slots:s,attrs:i}=e;return()=>{const r={part:!0};let a={};t.locale&&(r.locale=t.locale),Nt(t.format)?r.key=t.format:Ye(t.format)&&(Nt(t.format.key)&&(r.key=t.format.key),a=Object.keys(t.format).reduce((h,g)=>o.includes(g)?Zo({},h,{[g]:t.format[g]}):h,{}));const d=n(t.value,r,a);let u=[r.key];ao(d)?u=d.map((h,g)=>{const b=s[h.type],y=b?b({[h.type]:h.value,index:g,parts:d}):[h.value];return JCt(y)&&(y[0].key=`${h.type}-${g}`),y}):Nt(d)&&(u=[d]);const c=Zo({},i),C=Nt(t.tag)||Ye(t.tag)?t.tag:jL();return Al(C,c,u)}}const XCt=ut({name:"i18n-n",props:Zo({value:{type:Number,required:!0},format:{type:[String,Object]}},nF),setup(t,e){const o=t.i18n||iF({useScope:"parent",__useComponent:!0});return zL(t,e,WL,(...n)=>o[n0](...n))}}),Hb=XCt,QCt=ut({name:"i18n-d",props:Zo({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nF),setup(t,e){const o=t.i18n||iF({useScope:"parent",__useComponent:!0});return zL(t,e,AL,(...n)=>o[o0](...n))}}),$b=QCt;function qCt(t,e){const o=t;if(t.mode==="composition")return o.__getInstance(e)||t.global;{const n=o.__getInstance(e);return n!=null?n.__composer:t.global.__composer}}function tpt(t){const e=r=>{const{instance:a,modifiers:d,value:u}=r;if(!a||!a.$)throw ko(No.UNEXPECTED_ERROR);const c=qCt(t,a.$),C=Ub(u);return[Reflect.apply(c.t,c,[...jb(C)]),c]};return{created:(r,a)=>{const[d,u]=e(a);Zh&&t.global===u&&(r.__i18nWatcher=po(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),r.__composer=u,r.textContent=d},unmounted:r=>{Zh&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:a})=>{if(r.__composer){const d=r.__composer,u=Ub(a);r.textContent=Reflect.apply(d.t,d,[...jb(u)])}},getSSRProps:r=>{const[a]=e(r);return{textContent:a}}}}function Ub(t){if(Nt(t))return{path:t};if(he(t)){if(!("path"in t))throw ko(No.REQUIRED_VALUE,"path");return t}else throw ko(No.INVALID_VALUE)}function jb(t){const{path:e,locale:o,args:n,choice:s,plural:i}=t,r={},a=n||{};return Nt(o)&&(r.locale=o),Io(s)&&(r.plural=s),Io(i)&&(r.plural=i),[e,a,r]}function ept(t,e,...o){const n=he(o[0])?o[0]:{},s=!!n.useI18nComponentName;(we(n.globalInstall)?n.globalInstall:!0)&&([s?"i18n":Ob.name,"I18nT"].forEach(r=>t.component(r,Ob)),[Hb.name,"I18nN"].forEach(r=>t.component(r,Hb)),[$b.name,"I18nD"].forEach(r=>t.component(r,$b))),t.directive("t",tpt(e))}function opt(t,e,o){return{beforeCreate(){const n=Oo();if(!n)throw ko(No.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=e,this===this.$root)this.$i18n=zb(t,i);else{i.__injectWithOption=!0,i.__extender=o.__vueI18nExtend,this.$i18n=r0(i);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=zb(t,s);else{this.$i18n=r0({__i18n:s.__i18n,__injectWithOption:!0,__extender:o.__vueI18nExtend,__root:e});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=t;s.__i18nGlobal&&UL(e,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,r)=>this.$i18n.te(i,r),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),o.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=Oo();if(!n)throw ko(No.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),o.__deleteInstance(n),delete this.$i18n}}}function zb(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[OL](e.pluralizationRules||t.pluralizationRules);const o=Qf(t.locale,{messages:e.messages,__i18n:e.__i18n});return Object.keys(o).forEach(n=>t.mergeLocaleMessage(n,o[n])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(n=>t.mergeDateTimeFormat(n,e.datetimeFormats[n])),e.numberFormats&&Object.keys(e.numberFormats).forEach(n=>t.mergeNumberFormat(n,e.numberFormats[n])),t}const npt=xs("global-vue-i18n");function ipt(t={},e){const o=__VUE_I18N_LEGACY_API__&&we(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,n=we(t.globalInjection)?t.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&o?!!t.allowComposition:!0,i=new Map,[r,a]=rpt(t,o),d=xs("");function u(h){return i.get(h)||null}function c(h,g){i.set(h,g)}function C(h){i.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&o?"legacy":"composition"},get allowComposition(){return s},async install(g,...b){if(g.__VUE_I18N_SYMBOL__=d,g.provide(g.__VUE_I18N_SYMBOL__,h),he(b[0])){const D=b[0];h.__composerExtend=D.__composerExtend,h.__vueI18nExtend=D.__vueI18nExtend}let y=null;!o&&n&&(y=Cpt(g,h.global)),__VUE_I18N_FULL_INSTALL__&&ept(g,h,...b),__VUE_I18N_LEGACY_API__&&o&&g.mixin(opt(a,a.__composer,h));const R=g.unmount;g.unmount=()=>{y&&y(),h.dispose(),R()}},get global(){return a},dispose(){r.stop()},__instances:i,__getInstance:u,__setInstance:c,__deleteInstance:C};return h}}function iF(t={}){const e=Oo();if(e==null)throw ko(No.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw ko(No.NOT_INSTALLED);const o=spt(e),n=lpt(o),s=$L(e),i=apt(t,s);if(__VUE_I18N_LEGACY_API__&&o.mode==="legacy"&&!t.__useComponent){if(!o.allowComposition)throw ko(No.NOT_AVAILABLE_IN_LEGACY_MODE);return cpt(e,i,n,t)}if(i==="global")return UL(n,t,s),n;if(i==="parent"){let d=upt(o,e,t.__useComponent);return d==null&&(d=n),d}const r=o;let a=r.__getInstance(e);if(a==null){const d=Zo({},t);"__i18n"in s&&(d.__i18n=s.__i18n),n&&(d.__root=n),a=oF(d),r.__composerExtend&&(a[i0]=r.__composerExtend(a)),mpt(r,e,a),r.__setInstance(e,a)}return a}function rpt(t,e,o){const n=m0();{const s=__VUE_I18N_LEGACY_API__&&e?n.run(()=>r0(t)):n.run(()=>oF(t));if(s==null)throw ko(No.UNEXPECTED_ERROR);return[n,s]}}function spt(t){{const e=Vr(t.isCE?npt:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw ko(t.isCE?No.NOT_INSTALLED_WITH_PROVIDE:No.UNEXPECTED_ERROR);return e}}function apt(t,e){return Jf(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function lpt(t){return t.mode==="composition"?t.global:t.global.__composer}function upt(t,e,o=!1){let n=null;const s=e.root;let i=dpt(e,o);for(;i!=null;){const r=t;if(t.mode==="composition")n=r.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=r.__getInstance(i);a!=null&&(n=a.__composer,o&&n&&!n[HL]&&(n=null))}if(n!=null||s===i)break;i=i.parent}return n}function dpt(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function mpt(t,e,o){Ca(()=>{},e),Td(()=>{const n=o;t.__deleteInstance(e);const s=n[i0];s&&(s(),delete n[i0])},e)}function cpt(t,e,o,n={}){const s=e==="local",i=Gi(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw ko(No.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const r=we(n.inheritLocale)?n.inheritLocale:!Nt(n.locale),a=De(!s||r?o.locale.value:Nt(n.locale)?n.locale:Il),d=De(!s||r?o.fallbackLocale.value:Nt(n.fallbackLocale)||ao(n.fallbackLocale)||he(n.fallbackLocale)||n.fallbackLocale===!1?n.fallbackLocale:a.value),u=De(Qf(a.value,n)),c=De(he(n.datetimeFormats)?n.datetimeFormats:{[a.value]:{}}),C=De(he(n.numberFormats)?n.numberFormats:{[a.value]:{}}),h=s?o.missingWarn:we(n.missingWarn)||Vs(n.missingWarn)?n.missingWarn:!0,g=s?o.fallbackWarn:we(n.fallbackWarn)||Vs(n.fallbackWarn)?n.fallbackWarn:!0,b=s?o.fallbackRoot:we(n.fallbackRoot)?n.fallbackRoot:!0,y=!!n.fallbackFormat,R=io(n.missing)?n.missing:null,D=io(n.postTranslation)?n.postTranslation:null,x=s?o.warnHtmlMessage:we(n.warnHtmlMessage)?n.warnHtmlMessage:!0,v=!!n.escapeParameter,B=s?o.modifiers:he(n.modifiers)?n.modifiers:{},_=n.pluralRules||s&&o.pluralRules;function w(){return[a.value,d.value,u.value,c.value,C.value]}const W=zt({get:()=>i.value?i.value.locale.value:a.value,set:S=>{i.value&&(i.value.locale.value=S),a.value=S}}),Z=zt({get:()=>i.value?i.value.fallbackLocale.value:d.value,set:S=>{i.value&&(i.value.fallbackLocale.value=S),d.value=S}}),M=zt(()=>i.value?i.value.messages.value:u.value),O=zt(()=>c.value),nt=zt(()=>C.value);function q(){return i.value?i.value.getPostTranslationHandler():D}function Q(S){i.value&&i.value.setPostTranslationHandler(S)}function lt(){return i.value?i.value.getMissingHandler():R}function Dt(S){i.value&&i.value.setMissingHandler(S)}function et(S){return w(),S()}function ct(...S){return i.value?et(()=>Reflect.apply(i.value.t,null,[...S])):et(()=>"")}function yt(...S){return i.value?Reflect.apply(i.value.rt,null,[...S]):""}function Wt(...S){return i.value?et(()=>Reflect.apply(i.value.d,null,[...S])):et(()=>"")}function Zt(...S){return i.value?et(()=>Reflect.apply(i.value.n,null,[...S])):et(()=>"")}function ee(S){return i.value?i.value.tm(S):{}}function kt(S,A){return i.value?i.value.te(S,A):!1}function Ee(S){return i.value?i.value.getLocaleMessage(S):{}}function Jt(S,A){i.value&&(i.value.setLocaleMessage(S,A),u.value[S]=A)}function fe(S,A){i.value&&i.value.mergeLocaleMessage(S,A)}function ae(S){return i.value?i.value.getDateTimeFormat(S):{}}function ge(S,A){i.value&&(i.value.setDateTimeFormat(S,A),c.value[S]=A)}function Se(S,A){i.value&&i.value.mergeDateTimeFormat(S,A)}function _e(S){return i.value?i.value.getNumberFormat(S):{}}function je(S,A){i.value&&(i.value.setNumberFormat(S,A),C.value[S]=A)}function Oe(S,A){i.value&&i.value.mergeNumberFormat(S,A)}const Je={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:Z,messages:M,datetimeFormats:O,numberFormats:nt,get inheritLocale(){return i.value?i.value.inheritLocale:r},set inheritLocale(S){i.value&&(i.value.inheritLocale=S)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(u.value)},get modifiers(){return i.value?i.value.modifiers:B},get pluralRules(){return i.value?i.value.pluralRules:_},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(S){i.value&&(i.value.missingWarn=S)},get fallbackWarn(){return i.value?i.value.fallbackWarn:g},set fallbackWarn(S){i.value&&(i.value.missingWarn=S)},get fallbackRoot(){return i.value?i.value.fallbackRoot:b},set fallbackRoot(S){i.value&&(i.value.fallbackRoot=S)},get fallbackFormat(){return i.value?i.value.fallbackFormat:y},set fallbackFormat(S){i.value&&(i.value.fallbackFormat=S)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:x},set warnHtmlMessage(S){i.value&&(i.value.warnHtmlMessage=S)},get escapeParameter(){return i.value?i.value.escapeParameter:v},set escapeParameter(S){i.value&&(i.value.escapeParameter=S)},t:ct,getPostTranslationHandler:q,setPostTranslationHandler:Q,getMissingHandler:lt,setMissingHandler:Dt,rt:yt,d:Wt,n:Zt,tm:ee,te:kt,getLocaleMessage:Ee,setLocaleMessage:Jt,mergeLocaleMessage:fe,getDateTimeFormat:ae,setDateTimeFormat:ge,mergeDateTimeFormat:Se,getNumberFormat:_e,setNumberFormat:je,mergeNumberFormat:Oe};function T(S){S.locale.value=a.value,S.fallbackLocale.value=d.value,Object.keys(u.value).forEach(A=>{S.mergeLocaleMessage(A,u.value[A])}),Object.keys(c.value).forEach(A=>{S.mergeDateTimeFormat(A,c.value[A])}),Object.keys(C.value).forEach(A=>{S.mergeNumberFormat(A,C.value[A])}),S.escapeParameter=v,S.fallbackFormat=y,S.fallbackRoot=b,S.fallbackWarn=g,S.missingWarn=h,S.warnHtmlMessage=x}return Rf(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw ko(No.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const S=i.value=t.proxy.$i18n.__composer;e==="global"?(a.value=S.locale.value,d.value=S.fallbackLocale.value,u.value=S.messages.value,c.value=S.datetimeFormats.value,C.value=S.numberFormats.value):s&&T(S)}),Je}const fpt=["locale","fallbackLocale","availableLocales"],Gb=["t","rt","d","n","tm","te"];function Cpt(t,e){const o=Object.create(null);return fpt.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i)throw ko(No.UNEXPECTED_ERROR);const r=So(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(o,s,r)}),t.config.globalProperties.$i18n=o,Gb.forEach(s=>{const i=Object.getOwnPropertyDescriptor(e,s);if(!i||!i.value)throw ko(No.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${s}`,i)}),()=>{delete t.config.globalProperties.$i18n,Gb.forEach(s=>{delete t.config.globalProperties[`$${s}`]})}}jCt();__INTLIFY_JIT_COMPILATION__?Db(MCt):Db(WCt);_Ct(mCt);ICt(vL);if(__INTLIFY_PROD_DEVTOOLS__){const t=yr();t.__INTLIFY__=!0,SCt(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const ppt={productShelfBuilderComponent:{titleText:"Algorithm Selection",algorithmLabel:"Algorithm",cancelButton:"Cancel",applyButton:"Apply",listSelector:{productListShelf:"Product Shelf",relatedProductsForProductListShelf:"Related Products for Product Shelf",alternativeProductsForProductListShelf:"Alternative Products for Product Shelf",popularProductsInCategoryListShelf:"Popular Products in Category",popularProductsShelf:"Popular Products"},productShelfBuilders:{productsQuantityLabel:"Number of Products",productsAtLeastText:"From",productsLimitText:"To",popularProductListDescriptionText:"The email will display popular products across the store.",productListDescriptionText:"Select products to display",relatedProductListDescriptionText:"Select products to display",alternativeProductListDescriptionText:"Select a block of products to determine which ones we will offer alternative products for. Please note that customers will see not the selected products, but the products calculated by the alternative products algorithm for the selected products.",popularFromCategoryListDescriptionText:"Select a block of categories to determine which ones we will offer popular products for. Please note that customers will see additional products in the email that match your selection.",productsSelectButton:"Select Products",categorySelectButton:"Select Categories"}},productListComposerModalWindow:{titleText:"Product List",cancelButton:"Cancel",applyButton:"Apply",transferAllButton:"Transfer All",searchInputPlaceholder:"Name of one product or list of IDs",emptySearchProductListTopText:"Name of one product",emptySearchProductListBottomText:"or list of IDs separated by commas",emptySelectedProductListText:"The product list is currently empty.",selectedProductListTitleText:"Product List",selectedProductListDeclensions:{one:"product",few:"products",many:"products"}},categoryListComposerModalWindow:{titleText:"Category Selection",cancelButton:"Cancel",applyButton:"Apply",transferAllButton:"Transfer All",searchInputPlaceholder:"Name of one category or list of IDs",emptySearchCategoryListText:"Enter the name of a category to display results.",emptySelectedCategoryListText:"The category list is currently empty.",selectedCategoryListTitleText:"Category List",selectedCategoryListDeclensions:{one:"category",few:"categories",many:"categories"}}},hpt={productShelfBuilderComponent:{titleText:"Настройки товарной полки",algorithmLabel:"Алгоритм подбора товаров",cancelButton:"Отмена",applyButton:"Применить",listSelector:{productListShelf:"Продуктовая полка",relatedProductsForProductListShelf:"Сопутствующие товары к товарам",alternativeProductsForProductListShelf:"Альтернативы товаров",popularProductsInCategoryListShelf:"Популярные товары из категории",popularProductsShelf:"Популярные товары"},productShelfBuilders:{productsQuantityLabel:"Количество товаров",productsAtLeastText:"От",productsLimitText:"До",popularProductListDescriptionText:"В письме будут отображаться самые популярные товары магазина.",productListDescriptionText:"Выберите товары для отображения",relatedProductListDescriptionText:"Выберите товары для отображения",alternativeProductListDescriptionText:"Выберите блок товаров, чтобы определить, к каким из них мы предложим <b>альтернативные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме не выбранные товары, а товары рассчитанные по алгоритму <b>альтернативные товары</b> к выбранным товарам.",popularFromCategoryListDescriptionText:"Выберите блок категорий, чтобы определить, к каким из них мы предложим <b>популярные товары</b>.<br>Пожалуйста, учтите, что клиенты увидят в письме дополнительные товары, соответствующие вашему выбору.",productsSelectButton:"Выбрать товары",categorySelectButton:"Выбрать категории"}},productListComposerModalWindow:{titleText:"Список товаров",cancelButton:"Отменить",applyButton:"Применить",transferAllButton:"Перенести все",searchInputPlaceholder:"Название одного товара или список ID",emptySearchProductListTopText:"Название одного товара",emptySearchProductListBottomText:"или список ID через запятую",emptySelectedProductListText:"Список товаров пока что пуст.",selectedProductListTitleText:"Список товаров",selectedProductListDeclensions:{one:"продукт",few:"продукта",many:"продуктов"}},categoryListComposerModalWindow:{titleText:"Выбор категорий",cancelButton:"Отменить",applyButton:"Применить",transferAllButton:"Перенести все",searchInputPlaceholder:"Название одной категории или список ID",emptySearchCategoryListText:"Введите название категории, чтобы отобразились результаты.",emptySelectedCategoryListText:"Список категорий пока что пуст.",selectedCategoryListTitleText:"Список категорий",selectedCategoryListDeclensions:{one:"категория",few:"категории",many:"категорий"}}},GL=ipt({locale:"ru",legacy:!1,fallbackWarn:!1,missingWarn:!1,messages:{en:ppt,ru:hpt},warnHtmlMessage:!1}),gpt=()=>{const{t}=GL.global;return(e,o)=>o?t(e,o):t(e)};gpt();const Fpt=gn,ypt=t=>{const e=t.contactCustomData;return o=>Fpt(o.stringExpressionDataSource).Match({whenMassMailingContactCustomData:n=>Promise.resolve(e[n.FieldName]),whenProductImageUrlBuilderExpression:n=>t.productImageUrlBuilderExpressionEvaluator({expression:n,context:o.context})})},Spt=t=>async({context:e,expression:o})=>t.numberExpressionEvaluator({numberExpression:o.ProductId,context:e}).then(n=>"https://cdn.retailrocket.net/api/1.0/partner/"+t.partnerId+"/item/"+n+"/picture/?format=png&width="+o.ImageSize.Width+"&height="+o.ImageSize.Height+"&scale=both"),Vpt=t=>{const e=o=>Bv(o.listExpression).Match({whenContextValueExpression:n=>Promise.resolve(F9(n.Path,o.context)),whenChunkExpression:async n=>{const s=await e({listExpression:n.ListExpression,context:o.context});return s.slice(0,Math.floor(s.length/n.ChunkSize)*n.ChunkSize)},whenLimitExpression:async n=>(await e({listExpression:n.ListExpression,context:o.context})).slice(0,n.Limit),whenDataSource:n=>t.listExpressionDataSourceEvaluator(n)});return e},bpt=t=>e=>Dv(e.numberExpression).Match({whenContextValueExpression:o=>Promise.resolve(S9(o.Path,e.context)),whenConstValueExpression:o=>Promise.resolve(o.Value),whenListLengthExpression:async o=>t.listExpressionEvaluator({listExpression:o.ListExpression,context:e.context}).then(n=>n.length),whenDataSource:o=>Promise.resolve(t.numberExpressionDataSourceEvaluator(o))}),Tpt=t=>{const e=o=>{const n=t.stringExpressionDataSourceEvaluatorFactory(e);return vv(o.stringExpression).Match({whenConcatStringExpressions:s=>Rpt({concatStringExpressions:s,stringExpressionEvaluator:e,context:o.context}),whenContextValueExpression:s=>Bpt({contextValueExpression:s,context:o.context}),whenConstValueExpression:s=>Lpt({stringConstValueExpression:s}),whenTruncateValueExpression:s=>Dpt({truncateValueExpression:s,context:o.context,stringExpressionEvaluator:e}),whenDataSource:s=>n({stringExpressionDataSource:s,context:o.context}),whenNumberToStringExpression:s=>vpt({numberToStringExpression:s,context:o.context,numberExpressionEvaluator:t.numberExpressionEvaluator})})};return e},Bpt=t=>Promise.resolve(y9(t.contextValueExpression.Path,t.context)),Dpt=async t=>{const e=t.truncateValueExpression.MaxLength,o=await t.stringExpressionEvaluator({stringExpression:t.truncateValueExpression.StringExpression,context:t.context});return e<o.length?o.slice(0,t.truncateValueExpression.MaxLength)+t.truncateValueExpression.Tail:o},vpt=async t=>(await t.numberExpressionEvaluator({numberExpression:t.numberToStringExpression.NumberExpression,context:t.context})).toString(),Rpt=t=>Promise.all(t.concatStringExpressions.StringExpressions.map(e=>t.stringExpressionEvaluator({stringExpression:e,context:t.context}))).then(e=>e.join("")),Lpt=t=>Promise.resolve(t.stringConstValueExpression.Value),xpt=()=>()=>Promise.resolve(0),KL=t=>({dataStructBuilderExpression:e,context:o})=>Promise.all(Object.entries(e).map(async([n,s])=>({key:n,value:await t.expressionEvaluator({expression:s,context:o})}))).then(n=>Object.fromEntries(n.map(s=>[s.key,s.value]))),_pt=t=>{const e=({expression:o,context:n})=>{const s=t.dataStructBuilderExpressionEvaluatorFactory(e);return yg(o).Match({whenNumberExpression:i=>t.numberExpressionEvaluator({numberExpression:i,context:n}),whenStringExpression:i=>t.stringExpressionEvaluator({stringExpression:i,context:n}),whenListExpression:i=>t.listExpressionEvaluator({listExpression:i,context:n}),whenRecordBuilderExpression:i=>s({dataStructBuilderExpression:i,context:n})})};return e},YL="#app",vi=document.querySelector(YL),Gt={partnerId:vi.getAttribute("data-partner-id"),wysiwygBffProxyBaseUrl:vi.getAttribute("data-wysiwyg-bff-proxy-base-url"),wysiwygTemplateEditorBffBaseUrl:vi.getAttribute("data-wysiwyg-template-editor-bff-base-url"),antiForgeryHeaderTokenName:vi.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:vi.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:vi.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:vi.getAttribute("data-anti-forgery-form-token-value"),emailTemplateJson:vi.getAttribute("data-email-template-json"),previewTemplateDataJson:vi.getAttribute("data-preview-template-data-json"),resetTemplateFormUrl:vi.getAttribute("data-reset-template-form-url"),exitLink:vi.getAttribute("data-exit-link")},Ipt=t=>jo({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}),Ept=pR(jo({baseUrl:Gt.wysiwygTemplateEditorBffBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),Ppt=()=>{const t=new FormData;t.append(Gt.antiForgeryFormTokenName,Gt.antiForgeryFormTokenValue);const e=eN({method:"POST",action:Gt.resetTemplateFormUrl,formData:t});document.body.appendChild(e),e.submit()};let Npt={};const wpt=FR(Ipt({baseUrl:Gt.wysiwygBffProxyBaseUrl})),Apt=Ant({partnerId:Gt.partnerId,listExpressionDataSourceBffClient:wpt,customerStockId:void 0}),qf=Vpt({listExpressionDataSourceEvaluator:Apt}),Wpt=xpt(),ff=bpt({listExpressionEvaluator:qf,numberExpressionDataSourceEvaluator:Wpt}),ZL=Tpt({listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionDataSourceEvaluatorFactory:()=>ypt({productImageUrlBuilderExpressionEvaluator:Spt({partnerId:Gt.partnerId,numberExpressionEvaluator:ff}),contactCustomData:Npt})}),JL=_pt({listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionEvaluator:ZL,dataStructBuilderExpressionEvaluatorFactory:t=>KL({expressionEvaluator:t})}),Mpt=KL({expressionEvaluator:JL}),rF=Kc(hot,{onTemplateReset:()=>{console.log("onTemplateReset"),Ppt()},exitLink:Gt.exitLink,deps:Vnt({partnerId:Gt.partnerId,saveEmailTemplate:async t=>(await Ept.postCreateTemplate({body:{partnerId:Gt.partnerId,templateJson:JSON.stringify(t.emailTemplate)}})).status===200?"Success":"Fail",listExpressionEvaluator:qf,numberExpressionEvaluator:ff,stringExpressionEvaluator:ZL,dataStructExpressionEvaluator:Mpt,expressionEvaluator:JL,getComponentLibraryFactory:t=>()=>t.getComponentLibraryHttpClient({body:{partnerId:t.partnerId,componentTypes:[{multicast:{}},{common:{}}]}}).then(e=>tit(e.body.sections)),canProductShelfDataSourceBeConverted:()=>!1,httpClientComponentFactoryDelegate:t=>({multicast:{componentJson:JSON.stringify(t)}}),emailComponentSettingsModifierPlugin:lit({productShelfDataSourceExpressionBuilderComponent:Klt,deps:fut({partnerId:Gt.partnerId,customerStockId:"customerStockId",productShelfBuilderModalWindowBffClient:IR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),productCategoryPickerModalWindowBffClient:NR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),productPickerModalWindowBffClient:MR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))})}),initialEmailTemplate:JSON.parse(Gt.emailTemplateJson),wysiwygTemplateEditorBffClient:Sot({themeLibraryBffClient:OR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),componentLibraryBffClient:HR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))}),addThemeLibrarySectionItemModalWindowBffClient:jR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),addComponentLibrarySectionItemModalWindowBffClient:VR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionItemModalWindowBffClient:zR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteThemeLibrarySectionModalWindowBffClient:GR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),editThemeLibrarySectionItemModalWindowBffClient:ZR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),createComponentLibrarySectionModalWindowBffClient:JR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),editComponentLibrarySectionItemModalWindowBffClient:qR(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionItemModalWindowBffClient:tL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),createThemeLibrarySectionModalWindowBffClient:eL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue})),deleteComponentLibrarySectionModalWindowBffClient:oL(jo({baseUrl:Gt.wysiwygBffProxyBaseUrl,antiForgeryTokenHeaderName:Gt.antiForgeryHeaderTokenName,antiForgeryTokenValue:Gt.antiForgeryHeaderTokenValue}))})});rF.use(SL({components:{VSkeletonLoader:Fft}}));rF.use(GL);rF.mount(YL);
|
package/package.json
CHANGED