@foxy.io/elements 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/translations/store-form/en.json +13 -0
- package/dist/elements/public/StoreForm/StoreForm.d.ts +1 -0
- package/dist/elements/public/StoreForm/StoreForm.js +35 -0
- package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
- package/dist/types/hapi.d.ts +2 -0
- package/dist/types/hapi.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-a6b2bd14.js";import"./shared-b4b6bd8b.js";import"./shared-efe0bfd2.js";import"./shared-6c167083.js";import"./shared-d81149d8.js";import"./shared-2cab5d23.js";import"./shared-9154f04d.js";import"./shared-4b3bdf49.js";import"./shared-f6416c66.js";import{I as e}from"./shared-2a678cc8.js";import"./foxy-copy-to-clipboard.js";import"./foxy-nucleon-element.js";import"./shared-a95d3946.js";import{ag as t,aQ as o,ap as r,a6 as n,aj as i,ak as s,aR as a,aP as l,a as u,aS as c,al as m,_ as d}from"./shared-8f9014ff.js";import{R as p,a as f}from"./shared-887ac0b0.js";import{i as h}from"./shared-53e42a77.js";import{i as y}from"./shared-589d66fe.js";import{h as _,s as g}from"./shared-ba5c42c7.js";import{b as x}from"./shared-9496e995.js";import{g as v,b,k as w,c as $,d as k,e as S,f as V}from"./shared-da4f9115.js";import{b as j}from"./shared-276618b9.js";import{i as C}from"./shared-257dd725.js";import"./shared-9687ab7b.js";import"./shared-0fd68dc0.js";import"./shared-8d8975d5.js";import"./shared-99c53365.js";import"./shared-db623837.js";import"./shared-6cdfb858.js";import"./shared-0f92b865.js";import"./shared-486d4db3.js";import"./shared-5212ef4f.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./shared-791b4510.js";import"./shared-4e709717.js";import"./shared-5fd5805c.js";import"./shared-d0aed1c1.js";import"./shared-53e476fd.js";import"./shared-8df8e77c.js";import"./shared-9a3bf65c.js";import"./shared-a5d6db21.js";import"./shared-a0baefff.js";import"./shared-f8e360e6.js";import"./shared-515003f6.js";import"./shared-a0309d5f.js";import"./shared-a20ef119.js";import"./shared-b5e048f5.js";import"./shared-7892fd3f.js";import"./shared-ce05e482.js";import"./shared-3a91efdc.js";import"./shared-058530fc.js";import"./shared-69c98b7b.js";import"./foxy-spinner.js";import"./shared-19073761.js";import"./shared-bab2ea2c.js";import"./shared-cd96ff03.js";import"./shared-0e19bda5.js";var A="[object Object]",E=Function.prototype,O=Object.prototype,z=E.toString,T=O.hasOwnProperty,D=z.call(Object);var I,U=function(e,t,o){for(var r=-1,n=Object(e),i=o(e),s=i.length;s--;){var a=i[I?s:++r];if(!1===t(n[a],a,n))break}return e};function q(e,t,o){(void 0!==o&&!r(e[t],o)||void 0===o&&!(t in e))&&x(e,t,o)}function P(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function G(e,r,m,d,p,f,h){var y=P(e,m),_=P(r,m),g=h.get(_);if(g)q(e,m,g);else{var x,j=f?f(y,_,m+"",e,r,h):void 0,C=void 0===j;if(C){var E=i(_),O=!E&&s(_),I=!E&&!O&&a(_);j=_,E||O||I?i(y)?j=y:t(x=y)&&n(x)?j=$(y):O?(C=!1,j=k(_,!0)):I?(C=!1,j=S(_,!0)):j=[]:function(e){if(!t(e)||o(e)!=A)return!1;var r=v(e);if(null===r)return!0;var n=T.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==D}(_)||l(_)?(j=y,l(y)?j=function(e){return b(e,w(e))}(y):u(y)&&!c(y)||(j=V(_))):C=!1}C&&(h.set(_,j),p(j,_,d,f,h),h.delete(_)),q(e,m,j)}}function K(e,t,o,r,n){e!==t&&U(t,(function(i,s){if(n||(n=new m),u(i))G(e,t,s,o,K,r,n);else{var a=r?r(P(e,s),i,s+"",e,t,n):void 0;void 0===a&&(a=i),q(e,s,a)}}),w)}var N,R=(N=function(e,t,o){K(e,t,o)},j((function(e,t){var o=-1,r=t.length,n=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(n=N.length>3&&"function"==typeof n?(r--,n):void 0,i&&C(t[0],t[1],i)&&(n=r<3?void 0:n,r=1),e=Object(e);++o<r;){var s=t[o];s&&N(e,s,o,n)}return e})));function L(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Y(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const B=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ","a"],["ُ","u"],["ِ","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],H=(e,t)=>{for(const[o,r]of t)e=e.replace(new RegExp(Y(o),"g"),r);return e};const W=[["&"," and "],["🦄"," unicorn "],["♥"," love "]];function M(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);const o=(t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t}).preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-");e=function(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const o=new Map([...B,...t.customReplacements]);return e=e.normalize(),(e=H(e,o)).normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize()}(e,{customReplacements:new Map([...W,...t.customReplacements])}),t.decamelize&&(e=(e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(e));const n=(e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const o of e.preserveCharacters){if(o===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=L(o)}return new RegExp(`[^${t}]+`,"g")})(t);return t.lowercase&&(e=e.toLowerCase()),e=(e=(e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(n,t.separator)).replace(/\\/g,""),t.separator&&(e=((e,t)=>{const o=L(t);return e.replace(new RegExp(`${o}{2,}`,"g"),t).replace(new RegExp(`^${o}|${o}$`,"g"),"")})(e,t.separator)),o&&(e=`_${e}`),r&&(e=`${e}-`),e}let J,Z,F,Q,X,ee,te,oe,re,ne,ie,se,ae,le,ue,ce,me,de,pe,fe,he=e=>e;const ye=p(f(e,"store-form"));function _e(e){try{return JSON.parse(e)}catch(e){return null}}class ge extends ye{constructor(){var e;super(...arguments),e=this,this.reportingStoreDomainExists=null,this.customerPasswordHashTypes=null,this.shippingAddressTypes=null,this.storeSecretsPageUrl=null,this.hCaptchaSiteKey=null,this.storeVersions=null,this.checkoutTypes=null,this.localeCodes=null,this.languages=null,this.timezones=null,this.countries=null,this.regions=null,this.__currencyStyleOptions=[{rawLabel:"12.34",value:"101"},{rawLabel:"USD 12.34",value:"001"},{rawLabel:"$12.34",value:"000"},{rawLabel:"12",value:"111"},{rawLabel:"USD 12",value:"011"},{rawLabel:"$12",value:"010"}],this.__currencyStyleGetValue=()=>({101:"101",100:"101","001":"001","000":"000",111:"111",110:"111","011":"011","010":"010"}[[this.form.hide_currency_symbol,this.form.hide_decimal_characters,this.form.use_international_currency_symbol].map((e=>Number(Boolean(e)))).join("")]),this.__currencyStyleSetValue=e=>{this.edit({hide_currency_symbol:Boolean(Number(e[0])),hide_decimal_characters:Boolean(Number(e[1])),use_international_currency_symbol:Boolean(Number(e[2]))})},this.__appSessionTimeOptions=[{value:"s",label:"second"},{value:"m",label:"minute"},{value:"h",label:"hour"},{value:"d",label:"day"}],this.__checkStoreDomainAvailability=async function(t){var o;if(e.reportingStoreDomainExists){if(t===(null===(o=e.data)||void 0===o?void 0:o.store_domain))return!0;const r=new URL(e.reportingStoreDomainExists);r.searchParams.set("store_domain",t);return(await new ge.API(e).fetch(r.toString())).ok||"store-domain:v8n_unavailable"}throw new Error("reportingStoreDomainExists is not set.")},this.__storeNameSetValue=e=>{var t,o;const r=M(null!==(t=this.form.store_name)&&void 0!==t?t:""),n=null!==(o=this.form.store_domain)&&void 0!==o?o:"",i=M(e);r===n&&this.edit({store_domain:i}),this.edit({store_name:e})},this.__getDataRetention=()=>{var e,t;const o=this.form.data_retention;return{auto_anonymize:null!==(e=null==o?void 0:o.auto_anonymize)&&void 0!==e&&e,auto_anonymize_days:null!==(t=null==o?void 0:o.auto_anonymize_days)&&void 0!==t?t:null}},this.__getAutoAnonymizeValue=()=>this.__getDataRetention().auto_anonymize,this.__setAutoAnonymizeValue=e=>{this.edit({data_retention:d(d({},this.__getDataRetention()),{},{auto_anonymize:e})})},this.__getAutoAnonymizeDaysValue=()=>this.__getDataRetention().auto_anonymize_days,this.__setAutoAnonymizeDaysValue=e=>{this.edit({data_retention:d(d({},this.__getDataRetention()),{},{auto_anonymize_days:e})})},this.__getStoreEmailValue=()=>{var e;return(null!==(e=this.form.store_email)&&void 0!==e?e:"").split(",").map((e=>({value:e.trim()}))).filter((({value:e})=>e.length>0))},this.__setStoreEmailValue=e=>{this.edit({store_email:e.map((e=>e.value)).join(",")})},this.__getUseSmtpConfigValue=()=>!!this.form.smtp_config,this.__setUseSmtpConfigValue=e=>{e?this.edit({smtp_config:JSON.stringify({username:"",password:"",security:"",host:"",port:""})}):this.edit({smtp_config:""})},this.__getAppSessionTimeValue=()=>{const e=this.form.app_session_time||43200;return e%86400==0?e/86400+"d":e%3600==0?e/3600+"h":e%60==0?e/60+"m":`${e}s`},this.__setAppSessionTimeValue=e=>{const t=e[e.length-1],o=parseInt(e.substring(0,e.length-1));this.edit({app_session_time:{d:86400,h:3600,m:60,s:1}[t]*o})},this.__setStoreDomainValue=e=>{var t;if(this.data)if(e.endsWith(".foxycart.com")){const t=e.substring(0,e.length-13);this.edit({store_domain:t,use_remote_domain:!1})}else this.edit({store_domain:e,use_remote_domain:e.includes(".")});else this.edit({store_domain:null!==(t=e.split(".")[0])&&void 0!==t?t:"",use_remote_domain:!1})},this.__smtpConfigHostGetValue=()=>this.__getSmtpConfig().host,this.__smtpConfigHostSetValue=e=>{this.__setSmtpConfig("host",e)},this.__smtpConfigPortGetValue=()=>{const e=parseInt(this.__getSmtpConfig().port);return isNaN(e)?void 0:e},this.__smtpConfigPortSetValue=e=>{this.__setSmtpConfig("port",String(e))},this.__smtpConfigUsernameGetValue=()=>this.__getSmtpConfig().username,this.__smtpConfigUsernameSetValue=e=>{this.__setSmtpConfig("username",e)},this.__smtpConfigPasswordGetValue=()=>this.__getSmtpConfig().password,this.__smtpConfigPasswordSetValue=e=>{this.__setSmtpConfig("password",e)},this.__smtpConfigSecurityGetValue=()=>this.__getSmtpConfig().security,this.__smtpConfigSecuritySetValue=e=>{this.__setSmtpConfig("security",e)},this.__smtpConfigSecurityOptions=[{label:"option_ssl",value:"ssl"},{label:"option_tls",value:"tls"},{label:"option_none",value:""}],this.__singleWebhookKeyGeneratorOptions={length:90,separator:""},this.__jsonWebhookKeyGeneratorOptions={length:90,separator:""},this.__useSingleWebhookKeyGetValue=()=>{var e;try{return JSON.parse(null!==(e=this.form.webhook_key)&&void 0!==e?e:""),!1}catch(e){return!0}},this.__useSingleWebhookKeySetValue=e=>{if(e)this.edit({webhook_key:""});else{const e={cart_signing:"",xml_datafeed:"",api_legacy:"",sso:""};this.edit({webhook_key:JSON.stringify(e)})}},this.__sendHtmlEmailOptions=[{label:"option_text_only",value:"text_only"},{label:"option_text_plus_html",value:"text_plus_html"}],this.__sendHtmlEmailGetValue=()=>this.form.send_html_email?"text_plus_html":"text_only",this.__sendHtmlEmailSetValue=e=>{this.edit({send_html_email:"text_plus_html"===e})},this.__hCaptchaToken=null}static get properties(){return d(d({},super.properties),{},{reportingStoreDomainExists:{attribute:"reporting-store-domain-exists"},customerPasswordHashTypes:{attribute:"customer-password-hash-types"},shippingAddressTypes:{attribute:"shipping-address-types"},storeSecretsPageUrl:{attribute:"store-secrets-page-url"},hCaptchaSiteKey:{attribute:"h-captcha-site-key"},storeVersions:{attribute:"store-versions"},checkoutTypes:{attribute:"checkout-types"},localeCodes:{attribute:"locale-codes"},languages:{},timezones:{},countries:{},regions:{}})}static get v8n(){return[({store_name:e})=>!!e||"store-name:v8n_required",({store_name:e})=>e&&e.length<=50||"store-name:v8n_too_long",({store_domain:e,use_remote_domain:t})=>{if(!e)return"store-domain:v8n_required";if(e.length>100)return"store-domain:v8n_too_long";const[o,...r]=e.split(".").reverse();return!!(t&&r.length>1&&r.every((e=>/^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(e)))&&/^[a-z]{2,63}$/.test(o))||(!(t||0!==r.length||!/^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(e))||"store-domain:v8n_invalid")},({store_url:e})=>!!e||"store-url:v8n_required",({store_url:e})=>e&&e.length<=300||"store-url:v8n_too_long",({store_url:e})=>!e||y(e)||"store-url:v8n_invalid",({receipt_continue_url:e})=>!e||e.length<=300||"receipt-continue-url:v8n_too_long",({store_email:e})=>!!e||"store-email:v8n_required",({store_email:e})=>e&&e.length<=300||"store-email:v8n_too_long",({from_email:e})=>!e||e.length<=100||"from-email:v8n_too_long",({smtp_config:e})=>!e||e.length<=1e3||"use-smtp-config:v8n_too_long",({postal_code:e})=>!!e||"postal-code:v8n_required",({postal_code:e})=>e&&e.length<=50||"postal-code:v8n_too_long",({region:e})=>!!e||"region:v8n_required",({region:e})=>e&&e.length<=100||"region:v8n_too_long",({country:e})=>!!e||"country:v8n_required",({logo_url:e})=>!e||e.length<=200||"logo-url:v8n_too_long",({webhook_url:e,use_webhook:t})=>!t||!!e||"webhook-url:v8n_required",({webhook_url:e,use_webhook:t})=>!t||!e||e.length<=300||"webhook-url:v8n_too_long",({webhook_key:e})=>void 0===e||e.length>0||"webhook-key:v8n_required",({webhook_key:e},t)=>{var o;return(null===(o=t.data)||void 0===o?void 0:o.webhook_key)===e||(!e||e.length<=100||"webhook-key:v8n_too_long")},({webhook_key:e,use_webhook:t})=>{const o=_e(null!=e?e:"");return!t||!!(o?o.xml_datafeed:e)||"use-webhook:v8n_webhook_key_required"},({webhook_key:e,use_cart_validation:t})=>{const o=_e(null!=e?e:"");return!t||!!(o?o.cart_signing:e)||"use-cart-validation:v8n_webhook_key_required"},({webhook_key:e,use_single_sign_on:t})=>{const o=_e(null!=e?e:"");return!t||!!(o?o.sso:e)||"use-single-sign-on:v8n_webhook_key_required"},...["xml_datafeed","cart_signing","api_legacy","sso"].map((e=>[({webhook_key:t})=>{const o=_e(null!=t?t:""),r=`webhook-key-${e.replace(/_/g,"-")}:v8n_required`;return!o||!!o[e]||r},({webhook_key:t})=>{const o=_e(null!=t?t:""),r=`webhook-key-${e.replace(/_/g,"-")}:v8n_too_long`;return!o||o[e].length<=100||r}])).flat(),({single_sign_on_url:e,use_single_sign_on:t})=>!t||!!e||"single-sign-on-url:v8n_required",({single_sign_on_url:e,use_single_sign_on:t})=>!t||!e||e.length<=300||"single-sign-on-url:v8n_too_long",({customer_password_hash_config:e})=>!e||String(e).length<=100||"customer-password-hash-config:v8n_too_long",({unified_order_entry_password:e})=>!e||String(e).length<=100||"unified-order-entry-password:v8n_too_long",({data_retention:e})=>{const t=null==e?void 0:e.auto_anonymize_days;return null==t||(Number.isInteger(t)&&t>=90||"auto-anonymize-days:v8n_too_small")},({data_retention:e})=>{if(!(null==e?void 0:e.auto_anonymize))return!0;const t=e.auto_anonymize_days;return"number"==typeof t&&t>=90||"auto-anonymize-days:v8n_required"}]}get headerSubtitleOptions(){var e;return{context:(null===(e=this.data)||void 0===e?void 0:e.is_active)?"active":"inactive"}}renderBody(){var e,t,o,r,n,i,s,a,l,u,c,m,d,p,f,h,y,g,x,v,b;const w=this.t(this.form.use_remote_domain&&!(null===(e=this.data)||void 0===e?void 0:e.use_remote_domain)?"essentials-group-one.store-domain.custom_domain_note":"essentials-group-one.store-domain.helper_text"),$=!this.form.store_domain||this.form.store_domain.includes(".")?"":".foxycart.com",k=this.__renderLoader(1),S=this.__renderLoader(2),V=this.__renderLoader(7),j=this.__renderLoader(8),C=this.__renderLoader(9),A=Object.entries(null!==(o=null===(t=null==S?void 0:S.data)||void 0===t?void 0:t.values)&&void 0!==o?o:{}),E=null!==(n=null===(r=null==V?void 0:V.data)||void 0===r?void 0:r.values.timezone)&&void 0!==n?n:[],O=Object.values(null!==(s=null===(i=null==j?void 0:j.data)||void 0===i?void 0:i.values)&&void 0!==s?s:{}),z=Object.values(null!==(l=null===(a=null==C?void 0:C.data)||void 0===a?void 0:a.values)&&void 0!==l?l:{}),T=Object.entries(null!==(c=null===(u=null==k?void 0:k.data)||void 0===u?void 0:u.values)&&void 0!==c?c:{}),D=T.map((e=>({rawLabel:e[1].description,value:e[0]}))),I=A.map((([e,t])=>({rawLabel:t,value:e}))),U=E.map((e=>({rawLabel:e.description,value:e.timezone}))),q=O.map((e=>({rawLabel:e.default,value:e.cc2}))),P=z.map((e=>({rawLabel:e.default,value:e.code})));let G;try{const e=new URL(null!==(m=this.regions)&&void 0!==m?m:""),t=this.form.country;t&&e.searchParams.set("country_code",t),G=e.toString()}catch(e){G=void 0}const K=this.__getCustomDisplayIdConfig(),N=K.transaction_journal_entries,R=N.log_detail_request_types,L=this.__displayIdExamples,Y=this.__journalIdExamples,B=null!==(p=null===(d=this.data)||void 0===d?void 0:d.webhook_key)&&void 0!==p?p:"",H=_e(B),W=null!==(f=null==H?void 0:H.cart_signing)&&void 0!==f?f:B,M=null!==(h=null==H?void 0:H.xml_datafeed)&&void 0!==h?h:B,ue=null!==(y=null==H?void 0:H.sso)&&void 0!==y?y:B;return _(J||(J=he` ${0} <foxy-internal-summary-control infer="essentials-group-one"> <foxy-internal-text-control layout="summary-item" infer="store-name" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="logo-url"> </foxy-internal-text-control> <foxy-internal-text-control helper-text="${0}" layout="summary-item" suffix="${0}" infer="store-domain" .setValue="${0}" .checkValidityAsync="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="store-url"> </foxy-internal-text-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-two"> <foxy-internal-switch-control infer="is-maintenance-mode"></foxy-internal-switch-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-three"> <foxy-internal-editable-list-control layout="summary-item" infer="store-email" .getValue="${0}" .setValue="${0}"> </foxy-internal-editable-list-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-four"> <foxy-internal-select-control layout="summary-item" infer="timezone" .options="${0}"> </foxy-internal-select-control> <foxy-internal-select-control layout="summary-item" infer="country" .options="${0}"> </foxy-internal-select-control> ${0} <foxy-internal-text-control layout="summary-item" infer="postal-code"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="currency-style" .options="${0}" .getValue="${0}" .setValue="${0}"> </foxy-internal-select-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="store-secrets" id="store-secrets"> <foxy-internal-switch-control infer="use-single-secret" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="emails"> <foxy-internal-text-control layout="summary-item" infer="from-email" placeholder="${0}"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="send-html-email" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-select-control> <foxy-internal-switch-control infer="use-email-dns"> </foxy-internal-switch-control> </foxy-internal-summary-control> ${0} <foxy-internal-summary-control infer="emails" label="" helper-text=""> <foxy-internal-switch-control infer="use-smtp-config" helper-text-as-tooltip .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="shipping"> <foxy-internal-select-control layout="summary-item" infer="shipping-address-type" .options="${0}"> </foxy-internal-select-control> <foxy-internal-switch-control infer="features-multiship" helper-text-as-tooltip> </foxy-internal-switch-control> <foxy-internal-switch-control infer="require-signed-shipping-rates" helper-text-as-tooltip> </foxy-internal-switch-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="cart"> <foxy-internal-frequency-control layout="summary-item" infer="app-session-time" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-frequency-control> <foxy-internal-switch-control infer="products-require-expires-property" helper-text-as-tooltip> </foxy-internal-switch-control> <foxy-internal-switch-control infer="use-cart-validation" helper-text-as-tooltip> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout"> <foxy-internal-select-control layout="summary-item" infer="customer-password-hash-type" .options="${0}" .setValue="${0}"> </foxy-internal-select-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout" label="" helper-text=""> <foxy-internal-password-control visibility-toggle="copy" layout="summary-item" infer="unified-order-entry-password" show-generator> </foxy-internal-password-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout" label="" helper-text=""> <foxy-internal-switch-control infer="use-single-sign-on"></foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="receipt"> <foxy-internal-text-control layout="summary-item" infer="receipt-continue-url"> </foxy-internal-text-control> <foxy-internal-switch-control infer="bcc-on-receipt-email"></foxy-internal-switch-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="custom-display-id-config"> <foxy-internal-switch-control infer="custom-display-id-config-enabled" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control helper-text="" label="" infer="custom-display-id-config"> <foxy-internal-switch-control infer="custom-display-id-config-transaction-journal-entries-enabled" class="sm-col-span-2" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="xml-datafeed"> <foxy-internal-switch-control infer="use-webhook"></foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="data-retention"> <foxy-internal-switch-control infer="auto-anonymize" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> ${0} ${0} ${0} ${0} ${0} ${0} ${0} ${0} `),this.renderHeader(),this.__storeNameSetValue,w,$,this.__setStoreDomainValue,this.reportingStoreDomainExists?this.__checkStoreDomainAvailability:null,this.__getStoreEmailValue,this.__setStoreEmailValue,U,q,P.length>0?_(Z||(Z=he` <foxy-internal-select-control layout="summary-item" infer="region" .options="${0}"> </foxy-internal-select-control> `),P):_(F||(F=he` <foxy-internal-text-control layout="summary-item" infer="region"> </foxy-internal-text-control> `)),this.__currencyStyleOptions,this.__currencyStyleGetValue,this.__currencyStyleSetValue,this.__useSingleWebhookKeyGetValue,this.__useSingleWebhookKeySetValue,this.__useSingleWebhookKeyGetValue()?_(Q||(Q=he` <foxy-internal-password-control layout="summary-item" infer="webhook-key" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> `),this.__singleWebhookKeyGeneratorOptions):_(X||(X=he` <foxy-internal-password-control json-path="api_legacy" property="webhook_key" layout="summary-item" infer="webhook-key-api-legacy" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="cart_signing" property="webhook_key" layout="summary-item" infer="webhook-key-cart-signing" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="sso" property="webhook_key" layout="summary-item" infer="webhook-key-sso" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="xml_datafeed" property="webhook_key" layout="summary-item" infer="webhook-key-xml-datafeed" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> `),this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions),null!==(x=null===(g=this.__getStoreEmailValue()[0])||void 0===g?void 0:g.value)&&void 0!==x?x:this.t("emails.from-email.placeholder"),this.__sendHtmlEmailGetValue,this.__sendHtmlEmailSetValue,this.__sendHtmlEmailOptions,!this.form.use_email_dns||(null===(v=this.data)||void 0===v?void 0:v.use_email_dns)||this.hiddenSelector.matches("emails:email-dns",!0)?"":this.__renderEmailDnsRecords(),this.__getUseSmtpConfigValue,this.__setUseSmtpConfigValue,this.form.smtp_config?_(ee||(ee=he` <foxy-internal-text-control layout="summary-item" infer="smtp-config-host" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-number-control layout="summary-item" infer="smtp-config-port" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-text-control layout="summary-item" infer="smtp-config-username" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-password-control layout="summary-item" infer="smtp-config-password" .getValue="${0}" .setValue="${0}"> </foxy-internal-password-control> <foxy-internal-select-control layout="summary-item" infer="smtp-config-security" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-select-control> `),this.__smtpConfigHostGetValue,this.__smtpConfigHostSetValue,this.__smtpConfigPortGetValue,this.__smtpConfigPortSetValue,this.__smtpConfigUsernameGetValue,this.__smtpConfigUsernameSetValue,this.__smtpConfigPasswordGetValue,this.__smtpConfigPasswordSetValue,this.__smtpConfigSecurityGetValue,this.__smtpConfigSecuritySetValue,this.__smtpConfigSecurityOptions):"",I,this.__getAppSessionTimeValue,this.__setAppSessionTimeValue,this.__appSessionTimeOptions,W&&this.form.use_cart_validation?this.__renderReadonlyWebhookKey("webhook-key-cart-signing",W):"",D,(e=>{var t;const o=T.find((([t])=>t===e));this.edit({customer_password_hash_type:e,customer_password_hash_config:null!==(t=null==o?void 0:o[1].config)&&void 0!==t?t:""})}),"number"==typeof this.form.customer_password_hash_config?_(te||(te=he` <foxy-internal-number-control layout="summary-item" infer="customer-password-hash-config"> </foxy-internal-number-control> `)):_(oe||(oe=he` <foxy-internal-text-control layout="summary-item" infer="customer-password-hash-config"> </foxy-internal-text-control> `)),this.form.use_single_sign_on?_(re||(re=he` <foxy-internal-text-control layout="summary-item" infer="single-sign-on-url"> </foxy-internal-text-control> ${0} `),ue?this.__renderReadonlyWebhookKey("webhook-key-sso",ue):""):"",(()=>K.enabled),(e=>{this.__setCustomDisplayIdConfig("enabled",e)}),K.enabled?_(ne||(ne=he` <foxy-internal-number-control layout="summary-item" infer="custom-display-id-config-start" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-number-control layout="summary-item" infer="custom-display-id-config-length" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-suffix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <div class="text-right text-secondary"> <p class="flex justify-end"> <foxy-i18n infer="" key="custom-display-id-config-first-example"></foxy-i18n> <span style="font-family:monospace"> ${0}</span> </p> <p class="flex justify-end"> <foxy-i18n infer="" key="custom-display-id-config-random-example"></foxy-i18n> <span style="font-family:monospace"> ${0}</span> </p> </div> `),(()=>parseInt(K.start||"0")),(e=>{this.__setCustomDisplayIdConfig("start",String(e))}),(()=>parseInt(K.length||"0")),(e=>{this.__setCustomDisplayIdConfig("length",String(e))}),(()=>K.prefix),(e=>{this.__setCustomDisplayIdConfig("prefix",e)}),(()=>K.suffix),(e=>{this.__setCustomDisplayIdConfig("suffix",e)}),null==L?void 0:L.first,null==L?void 0:L.random):"",(()=>N.enabled),(e=>{this.__setTransactionJournalEntriesConfig("enabled",e)}),N.enabled?_(ie||(ie=he` <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-transaction-separator" class="col-span-2" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <div class="sm-col-span-2 leading-s text-right text-secondary"> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-authcapture-example"> </foxy-i18n> <span style="font-family:monospace"> ${0} </span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-capture-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-void-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-refund-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> </div> `),(()=>R.transaction_authcapture.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_authcapture",e)}),(()=>R.transaction_capture.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_capture",e)}),(()=>R.transaction_void.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_void",e)}),(()=>R.transaction_refund.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_refund",e)}),(()=>N.transaction_separator),(e=>{this.__setTransactionJournalEntriesConfig("transaction_separator",e)}),null==Y?void 0:Y.authcapture,null==Y?void 0:Y.capture,null==Y?void 0:Y.void,null==Y?void 0:Y.refund):"",this.form.use_webhook?_(se||(se=he` <foxy-internal-text-control layout="summary-item" infer="webhook-url"> </foxy-internal-text-control> ${0} `),M?this.__renderReadonlyWebhookKey("webhook-key-xml-datafeed",M):""):"",this.__getAutoAnonymizeValue,this.__setAutoAnonymizeValue,(null===(b=this.form.data_retention)||void 0===b?void 0:b.auto_anonymize)?_(ae||(ae=he` <foxy-internal-number-control layout="summary-item" infer="auto-anonymize-days" min="90" step="1" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> `),this.__getAutoAnonymizeDaysValue,this.__setAutoAnonymizeDaysValue):"",this.renderTemplateOrSlot(),this.href||!this.hCaptchaSiteKey?"":_(le||(le=he` <div class="text-xs text-tertiary"> <foxy-i18n infer="hcaptcha" key="disclaimer"></foxy-i18n> <br> <a target="_blank" class="transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.hcaptcha.com/privacy" rel="noopener noreferrer"> <foxy-i18n class="underline" infer="hcaptcha" key="privacy_policy"></foxy-i18n> </a> <span>•</span> <a target="_blank" class="transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.hcaptcha.com/terms" rel="noopener noreferrer"> <foxy-i18n class="underline" infer="hcaptcha" key="terms_of_service"></foxy-i18n> </a> <h-captcha site-key="${0}" class="hidden" size="invisible" hl="${0}" @verified="${0}"> </h-captcha> </div> `),this.hCaptchaSiteKey,this.lang,(({token:e})=>{this.__hCaptchaToken=e,super.submit()})),super.renderBody(),k.render(this.customerPasswordHashTypes),S.render(this.shippingAddressTypes),V.render(this.timezones),j.render(this.countries),C.render(G))}submit(){var e,t;!this.href&&this.hCaptchaSiteKey?(null===(e=this.__hCaptcha)||void 0===e||e.reset(),null===(t=this.__hCaptcha)||void 0===t||t.execute()):super.submit()}async _fetch(...e){try{const t=new ge.API.WHATWGRequest(...e);return this.__hCaptchaToken&&t.headers.set("h-captcha-code",this.__hCaptchaToken),await super._fetch(t)}catch(e){let t;try{t=await e.text()}catch(t){throw e}if(t.includes("store_domain is invalid because it has a reserved format")||t.includes("store_domain can not end with"))throw["error:store_domain_reserved"];if(t.includes("store_domain is already in use"))throw["error:store_domain_exists"];throw e}}get __displayIdExamples(){const e=this.__getCustomDisplayIdConfig(),t=parseInt(e.start||"0"),o=parseInt(e.length||"0"),r=Math.min(t+Math.floor(Math.random()*Math.pow(10,o)),Math.pow(10,o)-1);if(e.start&&e.length&&t/10<=o)return{first:`${e.prefix}${t.toString().padStart(o,"0")}${e.suffix}`,random:`${e.prefix}${r.toString().padStart(o,"0")}${e.suffix}`}}get __journalIdExamples(){const e=this.__getCustomDisplayIdConfig(),t=e.transaction_journal_entries,o=parseInt(e.start||"0"),r=parseInt(e.length||"0"),n=Math.min(o+Math.floor(Math.random()*Math.pow(10,r)),Math.pow(10,r)-1),i=`${e.prefix}${n.toString().padStart(r,"0")}${e.suffix}`,s=Math.floor(1e3*Math.random()),a=String(s).padStart(3,"0");if(e.start&&e.length&&o/10<=r)return{authcapture:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_authcapture.prefix}${a}`,capture:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_capture.prefix}${a}`,refund:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_refund.prefix}${a}`,void:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_void.prefix}${a}`}}get __hCaptcha(){return this.renderRoot.querySelector("h-captcha")}__getCustomDisplayIdConfig(){return R({enabled:!1,start:"0",length:"0",prefix:"",suffix:"",transaction_journal_entries:{enabled:!1,transaction_separator:"",log_detail_request_types:{transaction_authcapture:{prefix:""},transaction_capture:{prefix:""},transaction_refund:{prefix:""},transaction_void:{prefix:""}}}},this.form.custom_display_id_config||void 0)}__setCustomDisplayIdConfig(e,t){const o=this.__getCustomDisplayIdConfig();o[e]=t,this.edit({custom_display_id_config:o})}__getTransactionJournalEntriesConfig(){return this.__getCustomDisplayIdConfig().transaction_journal_entries}__setTransactionJournalEntriesConfig(e,t){const o=this.__getCustomDisplayIdConfig().transaction_journal_entries;o[e]=t,this.__setCustomDisplayIdConfig("transaction_journal_entries",o)}__setTransactionJournalEntriesPrefix(e,t){const o=this.__getTransactionJournalEntriesConfig();o.log_detail_request_types[e].prefix=t,this.__setTransactionJournalEntriesConfig("log_detail_request_types",o.log_detail_request_types)}__getSmtpConfig(){var e;let t;try{t=JSON.parse(null!==(e=this.form.smtp_config)&&void 0!==e?e:"")}catch(e){t={username:"",password:"",security:"",host:"",port:""}}return t}__setSmtpConfig(e,t){const o=this.__getSmtpConfig();o[e]=t,this.edit({smtp_config:JSON.stringify(o)})}__renderLoader(e){var t;const o=`loader-${e}`;return{data:null===(t=this.renderRoot.querySelector(`#${o}`))||void 0===t?void 0:t.data,render:e=>_(ue||(ue=he` <foxy-nucleon class="hidden" infer="" href="${0}" id="${0}" @update="${0}"> </foxy-nucleon> `),h(null!=e?e:void 0),o,(()=>this.requestUpdate()))}}__renderEmailDnsRecords(){const e=(e,t)=>_(ce||(ce=he` <foxy-i18n style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" class="bg-contrast-5 h-full" infer="emails email-dns" key="${0}"> </foxy-i18n> <div class="flex items-start bg-contrast-5 gap-s h-full" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <code class="flex-1" style="overflow-wrap:anywhere">${0}</code> <foxy-copy-to-clipboard infer="emails email-dns copy-to-clipboard" text="${0}"> </foxy-copy-to-clipboard> </div> `),e,t,t);return _(me||(me=he` <div class="grid" style="gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <div class="flex items-start border border-primary rounded bg-base" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px);gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> ${0} <div class="grid" style="gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <foxy-i18n infer="emails email-dns" key="helper_text"></foxy-i18n> <a target="_blank" class="rounded font-medium text-primary transition-colors cursor-pointer hover-opacity-80 focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.foxy.io/help/articles/set-up-email-deliverability-with-spf-dkim-and-dmarc#set-up-email-dns" rel="noopener noreferrer"> <foxy-i18n infer="emails email-dns" key="link_text"></foxy-i18n> </a> ${0} </div> </div> </div> `),g(de||(de=he`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="flex-shrink-0 text-primary" style="width: 1.25em"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`)),[{host:"smtpapi._domainkey",value:"k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB"},{host:"@",value:"v=spf1 include:_spf.foxycart.com ~all"}].map((({host:t,value:o})=>_(pe||(pe=he` <div class="grid rounded-s overflow-hidden text-s" style="grid-template-columns:auto 1fr;gap:1px"> ${0} ${0} </div> `),e("host",t),e("value",o)))))}__renderReadonlyWebhookKey(e,t){var o;return _(fe||(fe=he` <div class="leading-xs"> <div class="flex items-center gap-s"> <p class="flex-1"> <foxy-i18n infer="${0}" key="label"></foxy-i18n> </p> <p class="text-tertiary">${0}${0}</p> <foxy-copy-to-clipboard layout="complete" infer="${0} copy-to-clipboard" theme="contrast tertiary-inline" text="${0}"> </foxy-copy-to-clipboard> </div> <p class="text-xs text-secondary"> <foxy-i18n infer="${0}" key="helper_text"></foxy-i18n> <a class="text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n infer="${0}" key="link_text"></foxy-i18n> </a> </p> </div> `),e,"*".repeat(8),t.substr(-4),e,t,e,null!==(o=this.storeSecretsPageUrl)&&void 0!==o?o:"#store-secrets",e)}}customElements.define("foxy-store-form",ge);export{ge as StoreForm};
|
|
1
|
+
import"./shared-a6b2bd14.js";import"./shared-b4b6bd8b.js";import"./shared-efe0bfd2.js";import"./shared-6c167083.js";import"./shared-d81149d8.js";import"./shared-2cab5d23.js";import"./shared-9154f04d.js";import"./shared-4b3bdf49.js";import"./shared-f6416c66.js";import{I as e}from"./shared-2a678cc8.js";import"./foxy-copy-to-clipboard.js";import"./foxy-nucleon-element.js";import"./shared-a95d3946.js";import{ag as t,aQ as o,ap as r,a6 as n,aj as i,ak as s,aR as a,aP as l,a as u,aS as c,al as m,_ as d}from"./shared-8f9014ff.js";import{R as h,a as p}from"./shared-887ac0b0.js";import{i as f}from"./shared-53e42a77.js";import{i as y}from"./shared-589d66fe.js";import{h as _,s as g}from"./shared-ba5c42c7.js";import{b as x}from"./shared-9496e995.js";import{g as v,b,k as w,c as k,d as $,e as S,f as V}from"./shared-da4f9115.js";import{b as j}from"./shared-276618b9.js";import{i as C}from"./shared-257dd725.js";import"./shared-9687ab7b.js";import"./shared-0fd68dc0.js";import"./shared-8d8975d5.js";import"./shared-99c53365.js";import"./shared-db623837.js";import"./shared-6cdfb858.js";import"./shared-0f92b865.js";import"./shared-486d4db3.js";import"./shared-5212ef4f.js";import"./shared-41c9c53f.js";import"./shared-930e68b7.js";import"./shared-791b4510.js";import"./shared-4e709717.js";import"./shared-5fd5805c.js";import"./shared-d0aed1c1.js";import"./shared-53e476fd.js";import"./shared-8df8e77c.js";import"./shared-9a3bf65c.js";import"./shared-a5d6db21.js";import"./shared-a0baefff.js";import"./shared-f8e360e6.js";import"./shared-515003f6.js";import"./shared-a0309d5f.js";import"./shared-a20ef119.js";import"./shared-b5e048f5.js";import"./shared-7892fd3f.js";import"./shared-ce05e482.js";import"./shared-3a91efdc.js";import"./shared-058530fc.js";import"./shared-69c98b7b.js";import"./foxy-spinner.js";import"./shared-19073761.js";import"./shared-bab2ea2c.js";import"./shared-cd96ff03.js";import"./shared-0e19bda5.js";var A="[object Object]",E=Function.prototype,O=Object.prototype,z=E.toString,T=O.hasOwnProperty,D=z.call(Object);var I,P=function(e,t,o){for(var r=-1,n=Object(e),i=o(e),s=i.length;s--;){var a=i[I?s:++r];if(!1===t(n[a],a,n))break}return e};function U(e,t,o){(void 0!==o&&!r(e[t],o)||void 0===o&&!(t in e))&&x(e,t,o)}function q(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function G(e,r,m,d,h,p,f){var y=q(e,m),_=q(r,m),g=f.get(_);if(g)U(e,m,g);else{var x,j=p?p(y,_,m+"",e,r,f):void 0,C=void 0===j;if(C){var E=i(_),O=!E&&s(_),I=!E&&!O&&a(_);j=_,E||O||I?i(y)?j=y:t(x=y)&&n(x)?j=k(y):O?(C=!1,j=$(_,!0)):I?(C=!1,j=S(_,!0)):j=[]:function(e){if(!t(e)||o(e)!=A)return!1;var r=v(e);if(null===r)return!0;var n=T.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==D}(_)||l(_)?(j=y,l(y)?j=function(e){return b(e,w(e))}(y):u(y)&&!c(y)||(j=V(_))):C=!1}C&&(f.set(_,j),h(j,_,d,p,f),f.delete(_)),U(e,m,j)}}function K(e,t,o,r,n){e!==t&&P(t,(function(i,s){if(n||(n=new m),u(i))G(e,t,s,o,K,r,n);else{var a=r?r(q(e,s),i,s+"",e,t,n):void 0;void 0===a&&(a=i),U(e,s,a)}}),w)}var N,R=(N=function(e,t,o){K(e,t,o)},j((function(e,t){var o=-1,r=t.length,n=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(n=N.length>3&&"function"==typeof n?(r--,n):void 0,i&&C(t[0],t[1],i)&&(n=r<3?void 0:n,r=1),e=Object(e);++o<r;){var s=t[o];s&&N(e,s,o,n)}return e})));function L(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Y(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const W=[["ß","ss"],["ẞ","Ss"],["ä","ae"],["Ä","Ae"],["ö","oe"],["Ö","Oe"],["ü","ue"],["Ü","Ue"],["À","A"],["Á","A"],["Â","A"],["Ã","A"],["Ä","Ae"],["Å","A"],["Æ","AE"],["Ç","C"],["È","E"],["É","E"],["Ê","E"],["Ë","E"],["Ì","I"],["Í","I"],["Î","I"],["Ï","I"],["Ð","D"],["Ñ","N"],["Ò","O"],["Ó","O"],["Ô","O"],["Õ","O"],["Ö","Oe"],["Ő","O"],["Ø","O"],["Ù","U"],["Ú","U"],["Û","U"],["Ü","Ue"],["Ű","U"],["Ý","Y"],["Þ","TH"],["ß","ss"],["à","a"],["á","a"],["â","a"],["ã","a"],["ä","ae"],["å","a"],["æ","ae"],["ç","c"],["è","e"],["é","e"],["ê","e"],["ë","e"],["ì","i"],["í","i"],["î","i"],["ï","i"],["ð","d"],["ñ","n"],["ò","o"],["ó","o"],["ô","o"],["õ","o"],["ö","oe"],["ő","o"],["ø","o"],["ù","u"],["ú","u"],["û","u"],["ü","ue"],["ű","u"],["ý","y"],["þ","th"],["ÿ","y"],["ẞ","SS"],["à","a"],["À","A"],["á","a"],["Á","A"],["â","a"],["Â","A"],["ã","a"],["Ã","A"],["è","e"],["È","E"],["é","e"],["É","E"],["ê","e"],["Ê","E"],["ì","i"],["Ì","I"],["í","i"],["Í","I"],["ò","o"],["Ò","O"],["ó","o"],["Ó","O"],["ô","o"],["Ô","O"],["õ","o"],["Õ","O"],["ù","u"],["Ù","U"],["ú","u"],["Ú","U"],["ý","y"],["Ý","Y"],["ă","a"],["Ă","A"],["Đ","D"],["đ","d"],["ĩ","i"],["Ĩ","I"],["ũ","u"],["Ũ","U"],["ơ","o"],["Ơ","O"],["ư","u"],["Ư","U"],["ạ","a"],["Ạ","A"],["ả","a"],["Ả","A"],["ấ","a"],["Ấ","A"],["ầ","a"],["Ầ","A"],["ẩ","a"],["Ẩ","A"],["ẫ","a"],["Ẫ","A"],["ậ","a"],["Ậ","A"],["ắ","a"],["Ắ","A"],["ằ","a"],["Ằ","A"],["ẳ","a"],["Ẳ","A"],["ẵ","a"],["Ẵ","A"],["ặ","a"],["Ặ","A"],["ẹ","e"],["Ẹ","E"],["ẻ","e"],["Ẻ","E"],["ẽ","e"],["Ẽ","E"],["ế","e"],["Ế","E"],["ề","e"],["Ề","E"],["ể","e"],["Ể","E"],["ễ","e"],["Ễ","E"],["ệ","e"],["Ệ","E"],["ỉ","i"],["Ỉ","I"],["ị","i"],["Ị","I"],["ọ","o"],["Ọ","O"],["ỏ","o"],["Ỏ","O"],["ố","o"],["Ố","O"],["ồ","o"],["Ồ","O"],["ổ","o"],["Ổ","O"],["ỗ","o"],["Ỗ","O"],["ộ","o"],["Ộ","O"],["ớ","o"],["Ớ","O"],["ờ","o"],["Ờ","O"],["ở","o"],["Ở","O"],["ỡ","o"],["Ỡ","O"],["ợ","o"],["Ợ","O"],["ụ","u"],["Ụ","U"],["ủ","u"],["Ủ","U"],["ứ","u"],["Ứ","U"],["ừ","u"],["Ừ","U"],["ử","u"],["Ử","U"],["ữ","u"],["Ữ","U"],["ự","u"],["Ự","U"],["ỳ","y"],["Ỳ","Y"],["ỵ","y"],["Ỵ","Y"],["ỷ","y"],["Ỷ","Y"],["ỹ","y"],["Ỹ","Y"],["ء","e"],["آ","a"],["أ","a"],["ؤ","w"],["إ","i"],["ئ","y"],["ا","a"],["ب","b"],["ة","t"],["ت","t"],["ث","th"],["ج","j"],["ح","h"],["خ","kh"],["د","d"],["ذ","dh"],["ر","r"],["ز","z"],["س","s"],["ش","sh"],["ص","s"],["ض","d"],["ط","t"],["ظ","z"],["ع","e"],["غ","gh"],["ـ","_"],["ف","f"],["ق","q"],["ك","k"],["ل","l"],["م","m"],["ن","n"],["ه","h"],["و","w"],["ى","a"],["ي","y"],["َ","a"],["ُ","u"],["ِ","i"],["٠","0"],["١","1"],["٢","2"],["٣","3"],["٤","4"],["٥","5"],["٦","6"],["٧","7"],["٨","8"],["٩","9"],["چ","ch"],["ک","k"],["گ","g"],["پ","p"],["ژ","zh"],["ی","y"],["۰","0"],["۱","1"],["۲","2"],["۳","3"],["۴","4"],["۵","5"],["۶","6"],["۷","7"],["۸","8"],["۹","9"],["ټ","p"],["ځ","z"],["څ","c"],["ډ","d"],["ﺫ","d"],["ﺭ","r"],["ړ","r"],["ﺯ","z"],["ږ","g"],["ښ","x"],["ګ","g"],["ڼ","n"],["ۀ","e"],["ې","e"],["ۍ","ai"],["ٹ","t"],["ڈ","d"],["ڑ","r"],["ں","n"],["ہ","h"],["ھ","h"],["ے","e"],["А","A"],["а","a"],["Б","B"],["б","b"],["В","V"],["в","v"],["Г","G"],["г","g"],["Д","D"],["д","d"],["ъе","ye"],["Ъе","Ye"],["ъЕ","yE"],["ЪЕ","YE"],["Е","E"],["е","e"],["Ё","Yo"],["ё","yo"],["Ж","Zh"],["ж","zh"],["З","Z"],["з","z"],["И","I"],["и","i"],["ый","iy"],["Ый","Iy"],["ЫЙ","IY"],["ыЙ","iY"],["Й","Y"],["й","y"],["К","K"],["к","k"],["Л","L"],["л","l"],["М","M"],["м","m"],["Н","N"],["н","n"],["О","O"],["о","o"],["П","P"],["п","p"],["Р","R"],["р","r"],["С","S"],["с","s"],["Т","T"],["т","t"],["У","U"],["у","u"],["Ф","F"],["ф","f"],["Х","Kh"],["х","kh"],["Ц","Ts"],["ц","ts"],["Ч","Ch"],["ч","ch"],["Ш","Sh"],["ш","sh"],["Щ","Sch"],["щ","sch"],["Ъ",""],["ъ",""],["Ы","Y"],["ы","y"],["Ь",""],["ь",""],["Э","E"],["э","e"],["Ю","Yu"],["ю","yu"],["Я","Ya"],["я","ya"],["ă","a"],["Ă","A"],["ș","s"],["Ș","S"],["ț","t"],["Ț","T"],["ţ","t"],["Ţ","T"],["ş","s"],["Ş","S"],["ç","c"],["Ç","C"],["ğ","g"],["Ğ","G"],["ı","i"],["İ","I"],["ա","a"],["Ա","A"],["բ","b"],["Բ","B"],["գ","g"],["Գ","G"],["դ","d"],["Դ","D"],["ե","ye"],["Ե","Ye"],["զ","z"],["Զ","Z"],["է","e"],["Է","E"],["ը","y"],["Ը","Y"],["թ","t"],["Թ","T"],["ժ","zh"],["Ժ","Zh"],["ի","i"],["Ի","I"],["լ","l"],["Լ","L"],["խ","kh"],["Խ","Kh"],["ծ","ts"],["Ծ","Ts"],["կ","k"],["Կ","K"],["հ","h"],["Հ","H"],["ձ","dz"],["Ձ","Dz"],["ղ","gh"],["Ղ","Gh"],["ճ","tch"],["Ճ","Tch"],["մ","m"],["Մ","M"],["յ","y"],["Յ","Y"],["ն","n"],["Ն","N"],["շ","sh"],["Շ","Sh"],["ո","vo"],["Ո","Vo"],["չ","ch"],["Չ","Ch"],["պ","p"],["Պ","P"],["ջ","j"],["Ջ","J"],["ռ","r"],["Ռ","R"],["ս","s"],["Ս","S"],["վ","v"],["Վ","V"],["տ","t"],["Տ","T"],["ր","r"],["Ր","R"],["ց","c"],["Ց","C"],["ու","u"],["ՈՒ","U"],["Ու","U"],["փ","p"],["Փ","P"],["ք","q"],["Ք","Q"],["օ","o"],["Օ","O"],["ֆ","f"],["Ֆ","F"],["և","yev"],["ა","a"],["ბ","b"],["გ","g"],["დ","d"],["ე","e"],["ვ","v"],["ზ","z"],["თ","t"],["ი","i"],["კ","k"],["ლ","l"],["მ","m"],["ნ","n"],["ო","o"],["პ","p"],["ჟ","zh"],["რ","r"],["ს","s"],["ტ","t"],["უ","u"],["ფ","ph"],["ქ","q"],["ღ","gh"],["ყ","k"],["შ","sh"],["ჩ","ch"],["ც","ts"],["ძ","dz"],["წ","ts"],["ჭ","tch"],["ხ","kh"],["ჯ","j"],["ჰ","h"],["č","c"],["ď","d"],["ě","e"],["ň","n"],["ř","r"],["š","s"],["ť","t"],["ů","u"],["ž","z"],["Č","C"],["Ď","D"],["Ě","E"],["Ň","N"],["Ř","R"],["Š","S"],["Ť","T"],["Ů","U"],["Ž","Z"],["ހ","h"],["ށ","sh"],["ނ","n"],["ރ","r"],["ބ","b"],["ޅ","lh"],["ކ","k"],["އ","a"],["ވ","v"],["މ","m"],["ފ","f"],["ދ","dh"],["ތ","th"],["ލ","l"],["ގ","g"],["ޏ","gn"],["ސ","s"],["ޑ","d"],["ޒ","z"],["ޓ","t"],["ޔ","y"],["ޕ","p"],["ޖ","j"],["ޗ","ch"],["ޘ","tt"],["ޙ","hh"],["ޚ","kh"],["ޛ","th"],["ޜ","z"],["ޝ","sh"],["ޞ","s"],["ޟ","d"],["ޠ","t"],["ޡ","z"],["ޢ","a"],["ޣ","gh"],["ޤ","q"],["ޥ","w"],["ަ","a"],["ާ","aa"],["ި","i"],["ީ","ee"],["ު","u"],["ޫ","oo"],["ެ","e"],["ޭ","ey"],["ޮ","o"],["ޯ","oa"],["ް",""],["α","a"],["β","v"],["γ","g"],["δ","d"],["ε","e"],["ζ","z"],["η","i"],["θ","th"],["ι","i"],["κ","k"],["λ","l"],["μ","m"],["ν","n"],["ξ","ks"],["ο","o"],["π","p"],["ρ","r"],["σ","s"],["τ","t"],["υ","y"],["φ","f"],["χ","x"],["ψ","ps"],["ω","o"],["ά","a"],["έ","e"],["ί","i"],["ό","o"],["ύ","y"],["ή","i"],["ώ","o"],["ς","s"],["ϊ","i"],["ΰ","y"],["ϋ","y"],["ΐ","i"],["Α","A"],["Β","B"],["Γ","G"],["Δ","D"],["Ε","E"],["Ζ","Z"],["Η","I"],["Θ","TH"],["Ι","I"],["Κ","K"],["Λ","L"],["Μ","M"],["Ν","N"],["Ξ","KS"],["Ο","O"],["Π","P"],["Ρ","R"],["Σ","S"],["Τ","T"],["Υ","Y"],["Φ","F"],["Χ","X"],["Ψ","PS"],["Ω","O"],["Ά","A"],["Έ","E"],["Ί","I"],["Ό","O"],["Ύ","Y"],["Ή","I"],["Ώ","O"],["Ϊ","I"],["Ϋ","Y"],["ā","a"],["ē","e"],["ģ","g"],["ī","i"],["ķ","k"],["ļ","l"],["ņ","n"],["ū","u"],["Ā","A"],["Ē","E"],["Ģ","G"],["Ī","I"],["Ķ","K"],["Ļ","L"],["Ņ","N"],["Ū","U"],["č","c"],["š","s"],["ž","z"],["Č","C"],["Š","S"],["Ž","Z"],["ą","a"],["č","c"],["ę","e"],["ė","e"],["į","i"],["š","s"],["ų","u"],["ū","u"],["ž","z"],["Ą","A"],["Č","C"],["Ę","E"],["Ė","E"],["Į","I"],["Š","S"],["Ų","U"],["Ū","U"],["Ќ","Kj"],["ќ","kj"],["Љ","Lj"],["љ","lj"],["Њ","Nj"],["њ","nj"],["Тс","Ts"],["тс","ts"],["ą","a"],["ć","c"],["ę","e"],["ł","l"],["ń","n"],["ś","s"],["ź","z"],["ż","z"],["Ą","A"],["Ć","C"],["Ę","E"],["Ł","L"],["Ń","N"],["Ś","S"],["Ź","Z"],["Ż","Z"],["Є","Ye"],["І","I"],["Ї","Yi"],["Ґ","G"],["є","ye"],["і","i"],["ї","yi"],["ґ","g"],["IJ","IJ"],["ij","ij"],["¢","c"],["¥","Y"],["߿","b"],["৳","t"],["૱","Bo"],["฿","B"],["₠","CE"],["₡","C"],["₢","Cr"],["₣","F"],["₥","m"],["₦","N"],["₧","Pt"],["₨","Rs"],["₩","W"],["₫","s"],["€","E"],["₭","K"],["₮","T"],["₯","Dp"],["₰","S"],["₱","P"],["₲","G"],["₳","A"],["₴","S"],["₵","C"],["₶","tt"],["₷","S"],["₸","T"],["₹","R"],["₺","L"],["₽","P"],["₿","B"],["﹩","$"],["¢","c"],["¥","Y"],["₩","W"],["𝐀","A"],["𝐁","B"],["𝐂","C"],["𝐃","D"],["𝐄","E"],["𝐅","F"],["𝐆","G"],["𝐇","H"],["𝐈","I"],["𝐉","J"],["𝐊","K"],["𝐋","L"],["𝐌","M"],["𝐍","N"],["𝐎","O"],["𝐏","P"],["𝐐","Q"],["𝐑","R"],["𝐒","S"],["𝐓","T"],["𝐔","U"],["𝐕","V"],["𝐖","W"],["𝐗","X"],["𝐘","Y"],["𝐙","Z"],["𝐚","a"],["𝐛","b"],["𝐜","c"],["𝐝","d"],["𝐞","e"],["𝐟","f"],["𝐠","g"],["𝐡","h"],["𝐢","i"],["𝐣","j"],["𝐤","k"],["𝐥","l"],["𝐦","m"],["𝐧","n"],["𝐨","o"],["𝐩","p"],["𝐪","q"],["𝐫","r"],["𝐬","s"],["𝐭","t"],["𝐮","u"],["𝐯","v"],["𝐰","w"],["𝐱","x"],["𝐲","y"],["𝐳","z"],["𝐴","A"],["𝐵","B"],["𝐶","C"],["𝐷","D"],["𝐸","E"],["𝐹","F"],["𝐺","G"],["𝐻","H"],["𝐼","I"],["𝐽","J"],["𝐾","K"],["𝐿","L"],["𝑀","M"],["𝑁","N"],["𝑂","O"],["𝑃","P"],["𝑄","Q"],["𝑅","R"],["𝑆","S"],["𝑇","T"],["𝑈","U"],["𝑉","V"],["𝑊","W"],["𝑋","X"],["𝑌","Y"],["𝑍","Z"],["𝑎","a"],["𝑏","b"],["𝑐","c"],["𝑑","d"],["𝑒","e"],["𝑓","f"],["𝑔","g"],["𝑖","i"],["𝑗","j"],["𝑘","k"],["𝑙","l"],["𝑚","m"],["𝑛","n"],["𝑜","o"],["𝑝","p"],["𝑞","q"],["𝑟","r"],["𝑠","s"],["𝑡","t"],["𝑢","u"],["𝑣","v"],["𝑤","w"],["𝑥","x"],["𝑦","y"],["𝑧","z"],["𝑨","A"],["𝑩","B"],["𝑪","C"],["𝑫","D"],["𝑬","E"],["𝑭","F"],["𝑮","G"],["𝑯","H"],["𝑰","I"],["𝑱","J"],["𝑲","K"],["𝑳","L"],["𝑴","M"],["𝑵","N"],["𝑶","O"],["𝑷","P"],["𝑸","Q"],["𝑹","R"],["𝑺","S"],["𝑻","T"],["𝑼","U"],["𝑽","V"],["𝑾","W"],["𝑿","X"],["𝒀","Y"],["𝒁","Z"],["𝒂","a"],["𝒃","b"],["𝒄","c"],["𝒅","d"],["𝒆","e"],["𝒇","f"],["𝒈","g"],["𝒉","h"],["𝒊","i"],["𝒋","j"],["𝒌","k"],["𝒍","l"],["𝒎","m"],["𝒏","n"],["𝒐","o"],["𝒑","p"],["𝒒","q"],["𝒓","r"],["𝒔","s"],["𝒕","t"],["𝒖","u"],["𝒗","v"],["𝒘","w"],["𝒙","x"],["𝒚","y"],["𝒛","z"],["𝒜","A"],["𝒞","C"],["𝒟","D"],["𝒢","g"],["𝒥","J"],["𝒦","K"],["𝒩","N"],["𝒪","O"],["𝒫","P"],["𝒬","Q"],["𝒮","S"],["𝒯","T"],["𝒰","U"],["𝒱","V"],["𝒲","W"],["𝒳","X"],["𝒴","Y"],["𝒵","Z"],["𝒶","a"],["𝒷","b"],["𝒸","c"],["𝒹","d"],["𝒻","f"],["𝒽","h"],["𝒾","i"],["𝒿","j"],["𝓀","h"],["𝓁","l"],["𝓂","m"],["𝓃","n"],["𝓅","p"],["𝓆","q"],["𝓇","r"],["𝓈","s"],["𝓉","t"],["𝓊","u"],["𝓋","v"],["𝓌","w"],["𝓍","x"],["𝓎","y"],["𝓏","z"],["𝓐","A"],["𝓑","B"],["𝓒","C"],["𝓓","D"],["𝓔","E"],["𝓕","F"],["𝓖","G"],["𝓗","H"],["𝓘","I"],["𝓙","J"],["𝓚","K"],["𝓛","L"],["𝓜","M"],["𝓝","N"],["𝓞","O"],["𝓟","P"],["𝓠","Q"],["𝓡","R"],["𝓢","S"],["𝓣","T"],["𝓤","U"],["𝓥","V"],["𝓦","W"],["𝓧","X"],["𝓨","Y"],["𝓩","Z"],["𝓪","a"],["𝓫","b"],["𝓬","c"],["𝓭","d"],["𝓮","e"],["𝓯","f"],["𝓰","g"],["𝓱","h"],["𝓲","i"],["𝓳","j"],["𝓴","k"],["𝓵","l"],["𝓶","m"],["𝓷","n"],["𝓸","o"],["𝓹","p"],["𝓺","q"],["𝓻","r"],["𝓼","s"],["𝓽","t"],["𝓾","u"],["𝓿","v"],["𝔀","w"],["𝔁","x"],["𝔂","y"],["𝔃","z"],["𝔄","A"],["𝔅","B"],["𝔇","D"],["𝔈","E"],["𝔉","F"],["𝔊","G"],["𝔍","J"],["𝔎","K"],["𝔏","L"],["𝔐","M"],["𝔑","N"],["𝔒","O"],["𝔓","P"],["𝔔","Q"],["𝔖","S"],["𝔗","T"],["𝔘","U"],["𝔙","V"],["𝔚","W"],["𝔛","X"],["𝔜","Y"],["𝔞","a"],["𝔟","b"],["𝔠","c"],["𝔡","d"],["𝔢","e"],["𝔣","f"],["𝔤","g"],["𝔥","h"],["𝔦","i"],["𝔧","j"],["𝔨","k"],["𝔩","l"],["𝔪","m"],["𝔫","n"],["𝔬","o"],["𝔭","p"],["𝔮","q"],["𝔯","r"],["𝔰","s"],["𝔱","t"],["𝔲","u"],["𝔳","v"],["𝔴","w"],["𝔵","x"],["𝔶","y"],["𝔷","z"],["𝔸","A"],["𝔹","B"],["𝔻","D"],["𝔼","E"],["𝔽","F"],["𝔾","G"],["𝕀","I"],["𝕁","J"],["𝕂","K"],["𝕃","L"],["𝕄","M"],["𝕆","N"],["𝕊","S"],["𝕋","T"],["𝕌","U"],["𝕍","V"],["𝕎","W"],["𝕏","X"],["𝕐","Y"],["𝕒","a"],["𝕓","b"],["𝕔","c"],["𝕕","d"],["𝕖","e"],["𝕗","f"],["𝕘","g"],["𝕙","h"],["𝕚","i"],["𝕛","j"],["𝕜","k"],["𝕝","l"],["𝕞","m"],["𝕟","n"],["𝕠","o"],["𝕡","p"],["𝕢","q"],["𝕣","r"],["𝕤","s"],["𝕥","t"],["𝕦","u"],["𝕧","v"],["𝕨","w"],["𝕩","x"],["𝕪","y"],["𝕫","z"],["𝕬","A"],["𝕭","B"],["𝕮","C"],["𝕯","D"],["𝕰","E"],["𝕱","F"],["𝕲","G"],["𝕳","H"],["𝕴","I"],["𝕵","J"],["𝕶","K"],["𝕷","L"],["𝕸","M"],["𝕹","N"],["𝕺","O"],["𝕻","P"],["𝕼","Q"],["𝕽","R"],["𝕾","S"],["𝕿","T"],["𝖀","U"],["𝖁","V"],["𝖂","W"],["𝖃","X"],["𝖄","Y"],["𝖅","Z"],["𝖆","a"],["𝖇","b"],["𝖈","c"],["𝖉","d"],["𝖊","e"],["𝖋","f"],["𝖌","g"],["𝖍","h"],["𝖎","i"],["𝖏","j"],["𝖐","k"],["𝖑","l"],["𝖒","m"],["𝖓","n"],["𝖔","o"],["𝖕","p"],["𝖖","q"],["𝖗","r"],["𝖘","s"],["𝖙","t"],["𝖚","u"],["𝖛","v"],["𝖜","w"],["𝖝","x"],["𝖞","y"],["𝖟","z"],["𝖠","A"],["𝖡","B"],["𝖢","C"],["𝖣","D"],["𝖤","E"],["𝖥","F"],["𝖦","G"],["𝖧","H"],["𝖨","I"],["𝖩","J"],["𝖪","K"],["𝖫","L"],["𝖬","M"],["𝖭","N"],["𝖮","O"],["𝖯","P"],["𝖰","Q"],["𝖱","R"],["𝖲","S"],["𝖳","T"],["𝖴","U"],["𝖵","V"],["𝖶","W"],["𝖷","X"],["𝖸","Y"],["𝖹","Z"],["𝖺","a"],["𝖻","b"],["𝖼","c"],["𝖽","d"],["𝖾","e"],["𝖿","f"],["𝗀","g"],["𝗁","h"],["𝗂","i"],["𝗃","j"],["𝗄","k"],["𝗅","l"],["𝗆","m"],["𝗇","n"],["𝗈","o"],["𝗉","p"],["𝗊","q"],["𝗋","r"],["𝗌","s"],["𝗍","t"],["𝗎","u"],["𝗏","v"],["𝗐","w"],["𝗑","x"],["𝗒","y"],["𝗓","z"],["𝗔","A"],["𝗕","B"],["𝗖","C"],["𝗗","D"],["𝗘","E"],["𝗙","F"],["𝗚","G"],["𝗛","H"],["𝗜","I"],["𝗝","J"],["𝗞","K"],["𝗟","L"],["𝗠","M"],["𝗡","N"],["𝗢","O"],["𝗣","P"],["𝗤","Q"],["𝗥","R"],["𝗦","S"],["𝗧","T"],["𝗨","U"],["𝗩","V"],["𝗪","W"],["𝗫","X"],["𝗬","Y"],["𝗭","Z"],["𝗮","a"],["𝗯","b"],["𝗰","c"],["𝗱","d"],["𝗲","e"],["𝗳","f"],["𝗴","g"],["𝗵","h"],["𝗶","i"],["𝗷","j"],["𝗸","k"],["𝗹","l"],["𝗺","m"],["𝗻","n"],["𝗼","o"],["𝗽","p"],["𝗾","q"],["𝗿","r"],["𝘀","s"],["𝘁","t"],["𝘂","u"],["𝘃","v"],["𝘄","w"],["𝘅","x"],["𝘆","y"],["𝘇","z"],["𝘈","A"],["𝘉","B"],["𝘊","C"],["𝘋","D"],["𝘌","E"],["𝘍","F"],["𝘎","G"],["𝘏","H"],["𝘐","I"],["𝘑","J"],["𝘒","K"],["𝘓","L"],["𝘔","M"],["𝘕","N"],["𝘖","O"],["𝘗","P"],["𝘘","Q"],["𝘙","R"],["𝘚","S"],["𝘛","T"],["𝘜","U"],["𝘝","V"],["𝘞","W"],["𝘟","X"],["𝘠","Y"],["𝘡","Z"],["𝘢","a"],["𝘣","b"],["𝘤","c"],["𝘥","d"],["𝘦","e"],["𝘧","f"],["𝘨","g"],["𝘩","h"],["𝘪","i"],["𝘫","j"],["𝘬","k"],["𝘭","l"],["𝘮","m"],["𝘯","n"],["𝘰","o"],["𝘱","p"],["𝘲","q"],["𝘳","r"],["𝘴","s"],["𝘵","t"],["𝘶","u"],["𝘷","v"],["𝘸","w"],["𝘹","x"],["𝘺","y"],["𝘻","z"],["𝘼","A"],["𝘽","B"],["𝘾","C"],["𝘿","D"],["𝙀","E"],["𝙁","F"],["𝙂","G"],["𝙃","H"],["𝙄","I"],["𝙅","J"],["𝙆","K"],["𝙇","L"],["𝙈","M"],["𝙉","N"],["𝙊","O"],["𝙋","P"],["𝙌","Q"],["𝙍","R"],["𝙎","S"],["𝙏","T"],["𝙐","U"],["𝙑","V"],["𝙒","W"],["𝙓","X"],["𝙔","Y"],["𝙕","Z"],["𝙖","a"],["𝙗","b"],["𝙘","c"],["𝙙","d"],["𝙚","e"],["𝙛","f"],["𝙜","g"],["𝙝","h"],["𝙞","i"],["𝙟","j"],["𝙠","k"],["𝙡","l"],["𝙢","m"],["𝙣","n"],["𝙤","o"],["𝙥","p"],["𝙦","q"],["𝙧","r"],["𝙨","s"],["𝙩","t"],["𝙪","u"],["𝙫","v"],["𝙬","w"],["𝙭","x"],["𝙮","y"],["𝙯","z"],["𝙰","A"],["𝙱","B"],["𝙲","C"],["𝙳","D"],["𝙴","E"],["𝙵","F"],["𝙶","G"],["𝙷","H"],["𝙸","I"],["𝙹","J"],["𝙺","K"],["𝙻","L"],["𝙼","M"],["𝙽","N"],["𝙾","O"],["𝙿","P"],["𝚀","Q"],["𝚁","R"],["𝚂","S"],["𝚃","T"],["𝚄","U"],["𝚅","V"],["𝚆","W"],["𝚇","X"],["𝚈","Y"],["𝚉","Z"],["𝚊","a"],["𝚋","b"],["𝚌","c"],["𝚍","d"],["𝚎","e"],["𝚏","f"],["𝚐","g"],["𝚑","h"],["𝚒","i"],["𝚓","j"],["𝚔","k"],["𝚕","l"],["𝚖","m"],["𝚗","n"],["𝚘","o"],["𝚙","p"],["𝚚","q"],["𝚛","r"],["𝚜","s"],["𝚝","t"],["𝚞","u"],["𝚟","v"],["𝚠","w"],["𝚡","x"],["𝚢","y"],["𝚣","z"],["𝚤","l"],["𝚥","j"],["𝛢","A"],["𝛣","B"],["𝛤","G"],["𝛥","D"],["𝛦","E"],["𝛧","Z"],["𝛨","I"],["𝛩","TH"],["𝛪","I"],["𝛫","K"],["𝛬","L"],["𝛭","M"],["𝛮","N"],["𝛯","KS"],["𝛰","O"],["𝛱","P"],["𝛲","R"],["𝛳","TH"],["𝛴","S"],["𝛵","T"],["𝛶","Y"],["𝛷","F"],["𝛸","x"],["𝛹","PS"],["𝛺","O"],["𝛻","D"],["𝛼","a"],["𝛽","b"],["𝛾","g"],["𝛿","d"],["𝜀","e"],["𝜁","z"],["𝜂","i"],["𝜃","th"],["𝜄","i"],["𝜅","k"],["𝜆","l"],["𝜇","m"],["𝜈","n"],["𝜉","ks"],["𝜊","o"],["𝜋","p"],["𝜌","r"],["𝜍","s"],["𝜎","s"],["𝜏","t"],["𝜐","y"],["𝜑","f"],["𝜒","x"],["𝜓","ps"],["𝜔","o"],["𝜕","d"],["𝜖","E"],["𝜗","TH"],["𝜘","K"],["𝜙","f"],["𝜚","r"],["𝜛","p"],["𝜜","A"],["𝜝","V"],["𝜞","G"],["𝜟","D"],["𝜠","E"],["𝜡","Z"],["𝜢","I"],["𝜣","TH"],["𝜤","I"],["𝜥","K"],["𝜦","L"],["𝜧","M"],["𝜨","N"],["𝜩","KS"],["𝜪","O"],["𝜫","P"],["𝜬","S"],["𝜭","TH"],["𝜮","S"],["𝜯","T"],["𝜰","Y"],["𝜱","F"],["𝜲","X"],["𝜳","PS"],["𝜴","O"],["𝜵","D"],["𝜶","a"],["𝜷","v"],["𝜸","g"],["𝜹","d"],["𝜺","e"],["𝜻","z"],["𝜼","i"],["𝜽","th"],["𝜾","i"],["𝜿","k"],["𝝀","l"],["𝝁","m"],["𝝂","n"],["𝝃","ks"],["𝝄","o"],["𝝅","p"],["𝝆","r"],["𝝇","s"],["𝝈","s"],["𝝉","t"],["𝝊","y"],["𝝋","f"],["𝝌","x"],["𝝍","ps"],["𝝎","o"],["𝝏","a"],["𝝐","e"],["𝝑","i"],["𝝒","k"],["𝝓","f"],["𝝔","r"],["𝝕","p"],["𝝖","A"],["𝝗","B"],["𝝘","G"],["𝝙","D"],["𝝚","E"],["𝝛","Z"],["𝝜","I"],["𝝝","TH"],["𝝞","I"],["𝝟","K"],["𝝠","L"],["𝝡","M"],["𝝢","N"],["𝝣","KS"],["𝝤","O"],["𝝥","P"],["𝝦","R"],["𝝧","TH"],["𝝨","S"],["𝝩","T"],["𝝪","Y"],["𝝫","F"],["𝝬","X"],["𝝭","PS"],["𝝮","O"],["𝝯","D"],["𝝰","a"],["𝝱","v"],["𝝲","g"],["𝝳","d"],["𝝴","e"],["𝝵","z"],["𝝶","i"],["𝝷","th"],["𝝸","i"],["𝝹","k"],["𝝺","l"],["𝝻","m"],["𝝼","n"],["𝝽","ks"],["𝝾","o"],["𝝿","p"],["𝞀","r"],["𝞁","s"],["𝞂","s"],["𝞃","t"],["𝞄","y"],["𝞅","f"],["𝞆","x"],["𝞇","ps"],["𝞈","o"],["𝞉","a"],["𝞊","e"],["𝞋","i"],["𝞌","k"],["𝞍","f"],["𝞎","r"],["𝞏","p"],["𝞐","A"],["𝞑","V"],["𝞒","G"],["𝞓","D"],["𝞔","E"],["𝞕","Z"],["𝞖","I"],["𝞗","TH"],["𝞘","I"],["𝞙","K"],["𝞚","L"],["𝞛","M"],["𝞜","N"],["𝞝","KS"],["𝞞","O"],["𝞟","P"],["𝞠","S"],["𝞡","TH"],["𝞢","S"],["𝞣","T"],["𝞤","Y"],["𝞥","F"],["𝞦","X"],["𝞧","PS"],["𝞨","O"],["𝞩","D"],["𝞪","av"],["𝞫","g"],["𝞬","d"],["𝞭","e"],["𝞮","z"],["𝞯","i"],["𝞰","i"],["𝞱","th"],["𝞲","i"],["𝞳","k"],["𝞴","l"],["𝞵","m"],["𝞶","n"],["𝞷","ks"],["𝞸","o"],["𝞹","p"],["𝞺","r"],["𝞻","s"],["𝞼","s"],["𝞽","t"],["𝞾","y"],["𝞿","f"],["𝟀","x"],["𝟁","ps"],["𝟂","o"],["𝟃","a"],["𝟄","e"],["𝟅","i"],["𝟆","k"],["𝟇","f"],["𝟈","r"],["𝟉","p"],["𝟊","F"],["𝟋","f"],["⒜","(a)"],["⒝","(b)"],["⒞","(c)"],["⒟","(d)"],["⒠","(e)"],["⒡","(f)"],["⒢","(g)"],["⒣","(h)"],["⒤","(i)"],["⒥","(j)"],["⒦","(k)"],["⒧","(l)"],["⒨","(m)"],["⒩","(n)"],["⒪","(o)"],["⒫","(p)"],["⒬","(q)"],["⒭","(r)"],["⒮","(s)"],["⒯","(t)"],["⒰","(u)"],["⒱","(v)"],["⒲","(w)"],["⒳","(x)"],["⒴","(y)"],["⒵","(z)"],["Ⓐ","(A)"],["Ⓑ","(B)"],["Ⓒ","(C)"],["Ⓓ","(D)"],["Ⓔ","(E)"],["Ⓕ","(F)"],["Ⓖ","(G)"],["Ⓗ","(H)"],["Ⓘ","(I)"],["Ⓙ","(J)"],["Ⓚ","(K)"],["Ⓛ","(L)"],["Ⓝ","(N)"],["Ⓞ","(O)"],["Ⓟ","(P)"],["Ⓠ","(Q)"],["Ⓡ","(R)"],["Ⓢ","(S)"],["Ⓣ","(T)"],["Ⓤ","(U)"],["Ⓥ","(V)"],["Ⓦ","(W)"],["Ⓧ","(X)"],["Ⓨ","(Y)"],["Ⓩ","(Z)"],["ⓐ","(a)"],["ⓑ","(b)"],["ⓒ","(b)"],["ⓓ","(c)"],["ⓔ","(e)"],["ⓕ","(f)"],["ⓖ","(g)"],["ⓗ","(h)"],["ⓘ","(i)"],["ⓙ","(j)"],["ⓚ","(k)"],["ⓛ","(l)"],["ⓜ","(m)"],["ⓝ","(n)"],["ⓞ","(o)"],["ⓟ","(p)"],["ⓠ","(q)"],["ⓡ","(r)"],["ⓢ","(s)"],["ⓣ","(t)"],["ⓤ","(u)"],["ⓥ","(v)"],["ⓦ","(w)"],["ⓧ","(x)"],["ⓨ","(y)"],["ⓩ","(z)"],["Ċ","C"],["ċ","c"],["Ġ","G"],["ġ","g"],["Ħ","H"],["ħ","h"],["Ż","Z"],["ż","z"],["𝟎","0"],["𝟏","1"],["𝟐","2"],["𝟑","3"],["𝟒","4"],["𝟓","5"],["𝟔","6"],["𝟕","7"],["𝟖","8"],["𝟗","9"],["𝟘","0"],["𝟙","1"],["𝟚","2"],["𝟛","3"],["𝟜","4"],["𝟝","5"],["𝟞","6"],["𝟟","7"],["𝟠","8"],["𝟡","9"],["𝟢","0"],["𝟣","1"],["𝟤","2"],["𝟥","3"],["𝟦","4"],["𝟧","5"],["𝟨","6"],["𝟩","7"],["𝟪","8"],["𝟫","9"],["𝟬","0"],["𝟭","1"],["𝟮","2"],["𝟯","3"],["𝟰","4"],["𝟱","5"],["𝟲","6"],["𝟳","7"],["𝟴","8"],["𝟵","9"],["𝟶","0"],["𝟷","1"],["𝟸","2"],["𝟹","3"],["𝟺","4"],["𝟻","5"],["𝟼","6"],["𝟽","7"],["𝟾","8"],["𝟿","9"],["①","1"],["②","2"],["③","3"],["④","4"],["⑤","5"],["⑥","6"],["⑦","7"],["⑧","8"],["⑨","9"],["⑩","10"],["⑪","11"],["⑫","12"],["⑬","13"],["⑭","14"],["⑮","15"],["⑯","16"],["⑰","17"],["⑱","18"],["⑲","19"],["⑳","20"],["⑴","1"],["⑵","2"],["⑶","3"],["⑷","4"],["⑸","5"],["⑹","6"],["⑺","7"],["⑻","8"],["⑼","9"],["⑽","10"],["⑾","11"],["⑿","12"],["⒀","13"],["⒁","14"],["⒂","15"],["⒃","16"],["⒄","17"],["⒅","18"],["⒆","19"],["⒇","20"],["⒈","1."],["⒉","2."],["⒊","3."],["⒋","4."],["⒌","5."],["⒍","6."],["⒎","7."],["⒏","8."],["⒐","9."],["⒑","10."],["⒒","11."],["⒓","12."],["⒔","13."],["⒕","14."],["⒖","15."],["⒗","16."],["⒘","17."],["⒙","18."],["⒚","19."],["⒛","20."],["⓪","0"],["⓫","11"],["⓬","12"],["⓭","13"],["⓮","14"],["⓯","15"],["⓰","16"],["⓱","17"],["⓲","18"],["⓳","19"],["⓴","20"],["⓵","1"],["⓶","2"],["⓷","3"],["⓸","4"],["⓹","5"],["⓺","6"],["⓻","7"],["⓼","8"],["⓽","9"],["⓾","10"],["⓿","0"],["🙰","&"],["🙱","&"],["🙲","&"],["🙳","&"],["🙴","&"],["🙵","&"],["🙶",'"'],["🙷",'"'],["🙸",'"'],["‽","?!"],["🙹","?!"],["🙺","?!"],["🙻","?!"],["🙼","/"],["🙽","\\"],["🜇","AR"],["🜈","V"],["🜉","V"],["🜆","VR"],["🜅","VF"],["🜩","2"],["🜪","5"],["🝡","f"],["🝢","W"],["🝣","U"],["🝧","V"],["🝨","T"],["🝪","V"],["🝫","MB"],["🝬","VB"],["🝲","3B"],["🝳","3B"],["💯","100"],["🔙","BACK"],["🔚","END"],["🔛","ON!"],["🔜","SOON"],["🔝","TOP"],["🔞","18"],["🔤","abc"],["🔠","ABCD"],["🔡","abcd"],["🔢","1234"],["🔣","T&@%"],["#️⃣","#"],["*️⃣","*"],["0️⃣","0"],["1️⃣","1"],["2️⃣","2"],["3️⃣","3"],["4️⃣","4"],["5️⃣","5"],["6️⃣","6"],["7️⃣","7"],["8️⃣","8"],["9️⃣","9"],["🔟","10"],["🅰️","A"],["🅱️","B"],["🆎","AB"],["🆑","CL"],["🅾️","O"],["🅿","P"],["🆘","SOS"],["🅲","C"],["🅳","D"],["🅴","E"],["🅵","F"],["🅶","G"],["🅷","H"],["🅸","I"],["🅹","J"],["🅺","K"],["🅻","L"],["🅼","M"],["🅽","N"],["🆀","Q"],["🆁","R"],["🆂","S"],["🆃","T"],["🆄","U"],["🆅","V"],["🆆","W"],["🆇","X"],["🆈","Y"],["🆉","Z"]],M=(e,t)=>{for(const[o,r]of t)e=e.replace(new RegExp(Y(o),"g"),r);return e};const B=[["&"," and "],["🦄"," unicorn "],["♥"," love "]];function H(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);const o=(t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],...t}).preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-");e=function(e,t){if("string"!=typeof e)throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const o=new Map([...W,...t.customReplacements]);return e=e.normalize(),(e=M(e,o)).normalize("NFD").replace(/\p{Diacritic}/gu,"").normalize()}(e,{customReplacements:new Map([...B,...t.customReplacements])}),t.decamelize&&(e=(e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"))(e));const n=(e=>{let t="a-z\\d";if(t+=e.lowercase?"":"A-Z",e.preserveCharacters.length>0)for(const o of e.preserveCharacters){if(o===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=L(o)}return new RegExp(`[^${t}]+`,"g")})(t);return t.lowercase&&(e=e.toLowerCase()),e=(e=(e=e.replace(/([a-zA-Z\d]+)'([ts])(\s|$)/g,"$1$2$3")).replace(n,t.separator)).replace(/\\/g,""),t.separator&&(e=((e,t)=>{const o=L(t);return e.replace(new RegExp(`${o}{2,}`,"g"),t).replace(new RegExp(`^${o}|${o}$`,"g"),"")})(e,t.separator)),o&&(e=`_${e}`),r&&(e=`${e}-`),e}let J,Z,F,Q,X,ee,te,oe,re,ne,ie,se,ae,le,ue,ce,me,de,he,pe,fe,ye=e=>e;const _e=h(p(e,"store-form"));function ge(e){try{return JSON.parse(e)}catch(e){return null}}class xe extends _e{constructor(){var e;super(...arguments),e=this,this.reportingStoreDomainExists=null,this.customerPasswordHashTypes=null,this.shippingAddressTypes=null,this.storeSecretsPageUrl=null,this.hCaptchaSiteKey=null,this.storeVersions=null,this.checkoutTypes=null,this.localeCodes=null,this.languages=null,this.timezones=null,this.countries=null,this.regions=null,this.__currencyStyleOptions=[{rawLabel:"12.34",value:"101"},{rawLabel:"USD 12.34",value:"001"},{rawLabel:"$12.34",value:"000"},{rawLabel:"12",value:"111"},{rawLabel:"USD 12",value:"011"},{rawLabel:"$12",value:"010"}],this.__currencyStyleGetValue=()=>({101:"101",100:"101","001":"001","000":"000",111:"111",110:"111","011":"011","010":"010"}[[this.form.hide_currency_symbol,this.form.hide_decimal_characters,this.form.use_international_currency_symbol].map((e=>Number(Boolean(e)))).join("")]),this.__currencyStyleSetValue=e=>{this.edit({hide_currency_symbol:Boolean(Number(e[0])),hide_decimal_characters:Boolean(Number(e[1])),use_international_currency_symbol:Boolean(Number(e[2]))})},this.__appSessionTimeOptions=[{value:"s",label:"second"},{value:"m",label:"minute"},{value:"h",label:"hour"},{value:"d",label:"day"}],this.__checkStoreDomainAvailability=async function(t){var o;if(e.reportingStoreDomainExists){if(t===(null===(o=e.data)||void 0===o?void 0:o.store_domain))return!0;const r=new URL(e.reportingStoreDomainExists);r.searchParams.set("store_domain",t);return(await new xe.API(e).fetch(r.toString())).ok||"store-domain:v8n_unavailable"}throw new Error("reportingStoreDomainExists is not set.")},this.__storeNameSetValue=e=>{var t,o;const r=H(null!==(t=this.form.store_name)&&void 0!==t?t:""),n=null!==(o=this.form.store_domain)&&void 0!==o?o:"",i=H(e);r===n&&this.edit({store_domain:i}),this.edit({store_name:e})},this.__getDataRetention=()=>{var e,t;const o=this.form.data_retention;return{auto_anonymize:null!==(e=null==o?void 0:o.auto_anonymize)&&void 0!==e&&e,auto_anonymize_days:null!==(t=null==o?void 0:o.auto_anonymize_days)&&void 0!==t?t:null}},this.__getAutoAnonymizeValue=()=>this.__getDataRetention().auto_anonymize,this.__setAutoAnonymizeValue=e=>{this.edit({data_retention:d(d({},this.__getDataRetention()),{},{auto_anonymize:e})})},this.__getAutoAnonymizeDaysValue=()=>this.__getDataRetention().auto_anonymize_days,this.__setAutoAnonymizeDaysValue=e=>{this.edit({data_retention:d(d({},this.__getDataRetention()),{},{auto_anonymize_days:e})})},this.__setPackageWeightMax=e=>{this.edit({package_weight_max:e})},this.__getStoreEmailValue=()=>{var e;return(null!==(e=this.form.store_email)&&void 0!==e?e:"").split(",").map((e=>({value:e.trim()}))).filter((({value:e})=>e.length>0))},this.__setStoreEmailValue=e=>{this.edit({store_email:e.map((e=>e.value)).join(",")})},this.__getUseSmtpConfigValue=()=>!!this.form.smtp_config,this.__setUseSmtpConfigValue=e=>{e?this.edit({smtp_config:JSON.stringify({username:"",password:"",security:"",host:"",port:""})}):this.edit({smtp_config:""})},this.__getAppSessionTimeValue=()=>{const e=this.form.app_session_time||43200;return e%86400==0?e/86400+"d":e%3600==0?e/3600+"h":e%60==0?e/60+"m":`${e}s`},this.__setAppSessionTimeValue=e=>{const t=e[e.length-1],o=parseInt(e.substring(0,e.length-1));this.edit({app_session_time:{d:86400,h:3600,m:60,s:1}[t]*o})},this.__setStoreDomainValue=e=>{var t;if(this.data)if(e.endsWith(".foxycart.com")){const t=e.substring(0,e.length-13);this.edit({store_domain:t,use_remote_domain:!1})}else this.edit({store_domain:e,use_remote_domain:e.includes(".")});else this.edit({store_domain:null!==(t=e.split(".")[0])&&void 0!==t?t:"",use_remote_domain:!1})},this.__smtpConfigHostGetValue=()=>this.__getSmtpConfig().host,this.__smtpConfigHostSetValue=e=>{this.__setSmtpConfig("host",e)},this.__smtpConfigPortGetValue=()=>{const e=parseInt(this.__getSmtpConfig().port);return isNaN(e)?void 0:e},this.__smtpConfigPortSetValue=e=>{this.__setSmtpConfig("port",String(e))},this.__smtpConfigUsernameGetValue=()=>this.__getSmtpConfig().username,this.__smtpConfigUsernameSetValue=e=>{this.__setSmtpConfig("username",e)},this.__smtpConfigPasswordGetValue=()=>this.__getSmtpConfig().password,this.__smtpConfigPasswordSetValue=e=>{this.__setSmtpConfig("password",e)},this.__smtpConfigSecurityGetValue=()=>this.__getSmtpConfig().security,this.__smtpConfigSecuritySetValue=e=>{this.__setSmtpConfig("security",e)},this.__smtpConfigSecurityOptions=[{label:"option_ssl",value:"ssl"},{label:"option_tls",value:"tls"},{label:"option_none",value:""}],this.__singleWebhookKeyGeneratorOptions={length:90,separator:""},this.__jsonWebhookKeyGeneratorOptions={length:90,separator:""},this.__useSingleWebhookKeyGetValue=()=>{var e;try{return JSON.parse(null!==(e=this.form.webhook_key)&&void 0!==e?e:""),!1}catch(e){return!0}},this.__useSingleWebhookKeySetValue=e=>{if(e)this.edit({webhook_key:""});else{const e={cart_signing:"",xml_datafeed:"",api_legacy:"",sso:""};this.edit({webhook_key:JSON.stringify(e)})}},this.__sendHtmlEmailOptions=[{label:"option_text_only",value:"text_only"},{label:"option_text_plus_html",value:"text_plus_html"}],this.__sendHtmlEmailGetValue=()=>this.form.send_html_email?"text_plus_html":"text_only",this.__sendHtmlEmailSetValue=e=>{this.edit({send_html_email:"text_plus_html"===e})},this.__hCaptchaToken=null}static get properties(){return d(d({},super.properties),{},{reportingStoreDomainExists:{attribute:"reporting-store-domain-exists"},customerPasswordHashTypes:{attribute:"customer-password-hash-types"},shippingAddressTypes:{attribute:"shipping-address-types"},storeSecretsPageUrl:{attribute:"store-secrets-page-url"},hCaptchaSiteKey:{attribute:"h-captcha-site-key"},storeVersions:{attribute:"store-versions"},checkoutTypes:{attribute:"checkout-types"},localeCodes:{attribute:"locale-codes"},languages:{},timezones:{},countries:{},regions:{}})}static get v8n(){return[({store_name:e})=>!!e||"store-name:v8n_required",({store_name:e})=>e&&e.length<=50||"store-name:v8n_too_long",({store_domain:e,use_remote_domain:t})=>{if(!e)return"store-domain:v8n_required";if(e.length>100)return"store-domain:v8n_too_long";const[o,...r]=e.split(".").reverse();return!!(t&&r.length>1&&r.every((e=>/^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(e)))&&/^[a-z]{2,63}$/.test(o))||(!(t||0!==r.length||!/^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(e))||"store-domain:v8n_invalid")},({store_url:e})=>!!e||"store-url:v8n_required",({store_url:e})=>e&&e.length<=300||"store-url:v8n_too_long",({store_url:e})=>!e||y(e)||"store-url:v8n_invalid",({receipt_continue_url:e})=>!e||e.length<=300||"receipt-continue-url:v8n_too_long",({store_email:e})=>!!e||"store-email:v8n_required",({store_email:e})=>e&&e.length<=300||"store-email:v8n_too_long",({from_email:e})=>!e||e.length<=100||"from-email:v8n_too_long",({smtp_config:e})=>!e||e.length<=1e3||"use-smtp-config:v8n_too_long",({postal_code:e})=>!!e||"postal-code:v8n_required",({postal_code:e})=>e&&e.length<=50||"postal-code:v8n_too_long",({region:e})=>!!e||"region:v8n_required",({region:e})=>e&&e.length<=100||"region:v8n_too_long",({country:e})=>!!e||"country:v8n_required",({logo_url:e})=>!e||e.length<=200||"logo-url:v8n_too_long",({webhook_url:e,use_webhook:t})=>!t||!!e||"webhook-url:v8n_required",({webhook_url:e,use_webhook:t})=>!t||!e||e.length<=300||"webhook-url:v8n_too_long",({webhook_key:e})=>void 0===e||e.length>0||"webhook-key:v8n_required",({webhook_key:e},t)=>{var o;return(null===(o=t.data)||void 0===o?void 0:o.webhook_key)===e||(!e||e.length<=100||"webhook-key:v8n_too_long")},({webhook_key:e,use_webhook:t})=>{const o=ge(null!=e?e:"");return!t||!!(o?o.xml_datafeed:e)||"use-webhook:v8n_webhook_key_required"},({webhook_key:e,use_cart_validation:t})=>{const o=ge(null!=e?e:"");return!t||!!(o?o.cart_signing:e)||"use-cart-validation:v8n_webhook_key_required"},({webhook_key:e,use_single_sign_on:t})=>{const o=ge(null!=e?e:"");return!t||!!(o?o.sso:e)||"use-single-sign-on:v8n_webhook_key_required"},...["xml_datafeed","cart_signing","api_legacy","sso"].map((e=>[({webhook_key:t})=>{const o=ge(null!=t?t:""),r=`webhook-key-${e.replace(/_/g,"-")}:v8n_required`;return!o||!!o[e]||r},({webhook_key:t})=>{const o=ge(null!=t?t:""),r=`webhook-key-${e.replace(/_/g,"-")}:v8n_too_long`;return!o||o[e].length<=100||r}])).flat(),({single_sign_on_url:e,use_single_sign_on:t})=>!t||!!e||"single-sign-on-url:v8n_required",({single_sign_on_url:e,use_single_sign_on:t})=>!t||!e||e.length<=300||"single-sign-on-url:v8n_too_long",({customer_password_hash_config:e})=>!e||String(e).length<=100||"customer-password-hash-config:v8n_too_long",({unified_order_entry_password:e})=>!e||String(e).length<=100||"unified-order-entry-password:v8n_too_long",({data_retention:e})=>{const t=null==e?void 0:e.auto_anonymize_days;return null==t||(Number.isInteger(t)&&t>=90||"auto-anonymize-days:v8n_too_small")},({data_retention:e})=>{if(!(null==e?void 0:e.auto_anonymize))return!0;const t=e.auto_anonymize_days;return"number"==typeof t&&t>=90||"auto-anonymize-days:v8n_required"},({package_weight_max:e})=>null!==e||"package-weight-max:v8n_required",({package_weight_max:e})=>!e||e>=0||"package-weight-max:v8n_negative"]}get headerSubtitleOptions(){var e;return{context:(null===(e=this.data)||void 0===e?void 0:e.is_active)?"active":"inactive"}}renderBody(){var e,t,o,r,n,i,s,a,l,u,c,m,d,h,p,f,y,g,x,v,b;const w=this.t(this.form.use_remote_domain&&!(null===(e=this.data)||void 0===e?void 0:e.use_remote_domain)?"essentials-group-one.store-domain.custom_domain_note":"essentials-group-one.store-domain.helper_text"),k=!this.form.store_domain||this.form.store_domain.includes(".")?"":".foxycart.com",$=this.__renderLoader(1),S=this.__renderLoader(2),V=this.__renderLoader(7),j=this.__renderLoader(8),C=this.__renderLoader(9),A=Object.entries(null!==(o=null===(t=null==S?void 0:S.data)||void 0===t?void 0:t.values)&&void 0!==o?o:{}),E=null!==(n=null===(r=null==V?void 0:V.data)||void 0===r?void 0:r.values.timezone)&&void 0!==n?n:[],O=Object.values(null!==(s=null===(i=null==j?void 0:j.data)||void 0===i?void 0:i.values)&&void 0!==s?s:{}),z=Object.values(null!==(l=null===(a=null==C?void 0:C.data)||void 0===a?void 0:a.values)&&void 0!==l?l:{}),T=Object.entries(null!==(c=null===(u=null==$?void 0:$.data)||void 0===u?void 0:u.values)&&void 0!==c?c:{}),D=T.map((e=>({rawLabel:e[1].description,value:e[0]}))),I=A.map((([e,t])=>({rawLabel:t,value:e}))),P=E.map((e=>({rawLabel:e.description,value:e.timezone}))),U=O.map((e=>({rawLabel:e.default,value:e.cc2}))),q=z.map((e=>({rawLabel:e.default,value:e.code})));let G;try{const e=new URL(null!==(m=this.regions)&&void 0!==m?m:""),t=this.form.country;t&&e.searchParams.set("country_code",t),G=e.toString()}catch(e){G=void 0}const K=this.__getCustomDisplayIdConfig(),N=K.transaction_journal_entries,R=N.log_detail_request_types,L=this.__displayIdExamples,Y=this.__journalIdExamples,W=this.form.package_weight_max,M=void 0!==W&&0!==W,B=null!==(h=null===(d=this.data)||void 0===d?void 0:d.webhook_key)&&void 0!==h?h:"",H=ge(B),ce=null!==(p=null==H?void 0:H.cart_signing)&&void 0!==p?p:B,me=null!==(f=null==H?void 0:H.xml_datafeed)&&void 0!==f?f:B,de=null!==(y=null==H?void 0:H.sso)&&void 0!==y?y:B;return _(J||(J=ye` ${0} <foxy-internal-summary-control infer="essentials-group-one"> <foxy-internal-text-control layout="summary-item" infer="store-name" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="logo-url"> </foxy-internal-text-control> <foxy-internal-text-control helper-text="${0}" layout="summary-item" suffix="${0}" infer="store-domain" .setValue="${0}" .checkValidityAsync="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="store-url"> </foxy-internal-text-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-two"> <foxy-internal-switch-control infer="is-maintenance-mode"></foxy-internal-switch-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-three"> <foxy-internal-editable-list-control layout="summary-item" infer="store-email" .getValue="${0}" .setValue="${0}"> </foxy-internal-editable-list-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="essentials-group-four"> <foxy-internal-select-control layout="summary-item" infer="timezone" .options="${0}"> </foxy-internal-select-control> <foxy-internal-select-control layout="summary-item" infer="country" .options="${0}"> </foxy-internal-select-control> ${0} <foxy-internal-text-control layout="summary-item" infer="postal-code"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="currency-style" .options="${0}" .getValue="${0}" .setValue="${0}"> </foxy-internal-select-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="store-secrets" id="store-secrets"> <foxy-internal-switch-control infer="use-single-secret" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="emails"> <foxy-internal-text-control layout="summary-item" infer="from-email" placeholder="${0}"> </foxy-internal-text-control> <foxy-internal-select-control layout="summary-item" infer="send-html-email" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-select-control> <foxy-internal-switch-control infer="use-email-dns"> </foxy-internal-switch-control> </foxy-internal-summary-control> ${0} <foxy-internal-summary-control infer="emails" label="" helper-text=""> <foxy-internal-switch-control infer="use-smtp-config" helper-text-as-tooltip .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="shipping"> <foxy-internal-select-control layout="summary-item" infer="shipping-address-type" .options="${0}"> </foxy-internal-select-control> <foxy-internal-switch-control infer="features-multiship" helper-text-as-tooltip> </foxy-internal-switch-control> <foxy-internal-switch-control infer="require-signed-shipping-rates" helper-text-as-tooltip> </foxy-internal-switch-control> <foxy-internal-switch-control infer="package-weight-split" helper-text-as-tooltip .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="cart"> <foxy-internal-frequency-control layout="summary-item" infer="app-session-time" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-frequency-control> <foxy-internal-switch-control infer="products-require-expires-property" helper-text-as-tooltip> </foxy-internal-switch-control> <foxy-internal-switch-control infer="use-cart-validation" helper-text-as-tooltip> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout"> <foxy-internal-select-control layout="summary-item" infer="customer-password-hash-type" .options="${0}" .setValue="${0}"> </foxy-internal-select-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout" label="" helper-text=""> <foxy-internal-password-control visibility-toggle="copy" layout="summary-item" infer="unified-order-entry-password" show-generator> </foxy-internal-password-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="checkout" label="" helper-text=""> <foxy-internal-switch-control infer="use-single-sign-on"></foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="receipt"> <foxy-internal-text-control layout="summary-item" infer="receipt-continue-url"> </foxy-internal-text-control> <foxy-internal-switch-control infer="bcc-on-receipt-email"></foxy-internal-switch-control> </foxy-internal-summary-control> <foxy-internal-summary-control infer="custom-display-id-config"> <foxy-internal-switch-control infer="custom-display-id-config-enabled" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control helper-text="" label="" infer="custom-display-id-config"> <foxy-internal-switch-control infer="custom-display-id-config-transaction-journal-entries-enabled" class="sm-col-span-2" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="xml-datafeed"> <foxy-internal-switch-control infer="use-webhook"></foxy-internal-switch-control> ${0} </foxy-internal-summary-control> <foxy-internal-summary-control infer="data-retention"> <foxy-internal-switch-control infer="auto-anonymize" .getValue="${0}" .setValue="${0}"> </foxy-internal-switch-control> ${0} </foxy-internal-summary-control> ${0} ${0} ${0} ${0} ${0} ${0} ${0} ${0} `),this.renderHeader(),this.__storeNameSetValue,w,k,this.__setStoreDomainValue,this.reportingStoreDomainExists?this.__checkStoreDomainAvailability:null,this.__getStoreEmailValue,this.__setStoreEmailValue,P,U,q.length>0?_(Z||(Z=ye` <foxy-internal-select-control layout="summary-item" infer="region" .options="${0}"> </foxy-internal-select-control> `),q):_(F||(F=ye` <foxy-internal-text-control layout="summary-item" infer="region"> </foxy-internal-text-control> `)),this.__currencyStyleOptions,this.__currencyStyleGetValue,this.__currencyStyleSetValue,this.__useSingleWebhookKeyGetValue,this.__useSingleWebhookKeySetValue,this.__useSingleWebhookKeyGetValue()?_(Q||(Q=ye` <foxy-internal-password-control layout="summary-item" infer="webhook-key" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> `),this.__singleWebhookKeyGeneratorOptions):_(X||(X=ye` <foxy-internal-password-control json-path="api_legacy" property="webhook_key" layout="summary-item" infer="webhook-key-api-legacy" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="cart_signing" property="webhook_key" layout="summary-item" infer="webhook-key-cart-signing" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="sso" property="webhook_key" layout="summary-item" infer="webhook-key-sso" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> <foxy-internal-password-control json-path="xml_datafeed" property="webhook_key" layout="summary-item" infer="webhook-key-xml-datafeed" show-generator .generatorOptions="${0}"> </foxy-internal-password-control> `),this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions,this.__jsonWebhookKeyGeneratorOptions),null!==(x=null===(g=this.__getStoreEmailValue()[0])||void 0===g?void 0:g.value)&&void 0!==x?x:this.t("emails.from-email.placeholder"),this.__sendHtmlEmailGetValue,this.__sendHtmlEmailSetValue,this.__sendHtmlEmailOptions,!this.form.use_email_dns||(null===(v=this.data)||void 0===v?void 0:v.use_email_dns)||this.hiddenSelector.matches("emails:email-dns",!0)?"":this.__renderEmailDnsRecords(),this.__getUseSmtpConfigValue,this.__setUseSmtpConfigValue,this.form.smtp_config?_(ee||(ee=ye` <foxy-internal-text-control layout="summary-item" infer="smtp-config-host" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-number-control layout="summary-item" infer="smtp-config-port" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-text-control layout="summary-item" infer="smtp-config-username" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-password-control layout="summary-item" infer="smtp-config-password" .getValue="${0}" .setValue="${0}"> </foxy-internal-password-control> <foxy-internal-select-control layout="summary-item" infer="smtp-config-security" .getValue="${0}" .setValue="${0}" .options="${0}"> </foxy-internal-select-control> `),this.__smtpConfigHostGetValue,this.__smtpConfigHostSetValue,this.__smtpConfigPortGetValue,this.__smtpConfigPortSetValue,this.__smtpConfigUsernameGetValue,this.__smtpConfigUsernameSetValue,this.__smtpConfigPasswordGetValue,this.__smtpConfigPasswordSetValue,this.__smtpConfigSecurityGetValue,this.__smtpConfigSecuritySetValue,this.__smtpConfigSecurityOptions):"",I,(()=>M),(e=>this.__setPackageWeightMax(e?null:0)),M?_(te||(te=ye` <foxy-internal-number-control layout="summary-item" infer="package-weight-max" min="0" .setValue="${0}"> </foxy-internal-number-control> `),(e=>{this.__setPackageWeightMax(0===e?null:e)})):"",this.__getAppSessionTimeValue,this.__setAppSessionTimeValue,this.__appSessionTimeOptions,ce&&this.form.use_cart_validation?this.__renderReadonlyWebhookKey("webhook-key-cart-signing",ce):"",D,(e=>{var t;const o=T.find((([t])=>t===e));this.edit({customer_password_hash_type:e,customer_password_hash_config:null!==(t=null==o?void 0:o[1].config)&&void 0!==t?t:""})}),"number"==typeof this.form.customer_password_hash_config?_(oe||(oe=ye` <foxy-internal-number-control layout="summary-item" infer="customer-password-hash-config"> </foxy-internal-number-control> `)):_(re||(re=ye` <foxy-internal-text-control layout="summary-item" infer="customer-password-hash-config"> </foxy-internal-text-control> `)),this.form.use_single_sign_on?_(ne||(ne=ye` <foxy-internal-text-control layout="summary-item" infer="single-sign-on-url"> </foxy-internal-text-control> ${0} `),de?this.__renderReadonlyWebhookKey("webhook-key-sso",de):""):"",(()=>K.enabled),(e=>{this.__setCustomDisplayIdConfig("enabled",e)}),K.enabled?_(ie||(ie=ye` <foxy-internal-number-control layout="summary-item" infer="custom-display-id-config-start" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-number-control layout="summary-item" infer="custom-display-id-config-length" step="1" min="0" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-suffix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <div class="text-right text-secondary"> <p class="flex justify-end"> <foxy-i18n infer="" key="custom-display-id-config-first-example"></foxy-i18n> <span style="font-family:monospace"> ${0}</span> </p> <p class="flex justify-end"> <foxy-i18n infer="" key="custom-display-id-config-random-example"></foxy-i18n> <span style="font-family:monospace"> ${0}</span> </p> </div> `),(()=>parseInt(K.start||"0")),(e=>{this.__setCustomDisplayIdConfig("start",String(e))}),(()=>parseInt(K.length||"0")),(e=>{this.__setCustomDisplayIdConfig("length",String(e))}),(()=>K.prefix),(e=>{this.__setCustomDisplayIdConfig("prefix",e)}),(()=>K.suffix),(e=>{this.__setCustomDisplayIdConfig("suffix",e)}),null==L?void 0:L.first,null==L?void 0:L.random):"",(()=>N.enabled),(e=>{this.__setTransactionJournalEntriesConfig("enabled",e)}),N.enabled?_(se||(se=ye` <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <foxy-internal-text-control layout="summary-item" infer="custom-display-id-config-transaction-journal-entries-transaction-separator" class="col-span-2" .getValue="${0}" .setValue="${0}"> </foxy-internal-text-control> <div class="sm-col-span-2 leading-s text-right text-secondary"> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-authcapture-example"> </foxy-i18n> <span style="font-family:monospace"> ${0} </span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-capture-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-void-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> <p> <foxy-i18n infer="" key="custom-display-id-config-transaction-journal-entries-refund-example"> </foxy-i18n> <span style="font-family:monospace">${0}</span> </p> </div> `),(()=>R.transaction_authcapture.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_authcapture",e)}),(()=>R.transaction_capture.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_capture",e)}),(()=>R.transaction_void.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_void",e)}),(()=>R.transaction_refund.prefix),(e=>{this.__setTransactionJournalEntriesPrefix("transaction_refund",e)}),(()=>N.transaction_separator),(e=>{this.__setTransactionJournalEntriesConfig("transaction_separator",e)}),null==Y?void 0:Y.authcapture,null==Y?void 0:Y.capture,null==Y?void 0:Y.void,null==Y?void 0:Y.refund):"",this.form.use_webhook?_(ae||(ae=ye` <foxy-internal-text-control layout="summary-item" infer="webhook-url"> </foxy-internal-text-control> ${0} `),me?this.__renderReadonlyWebhookKey("webhook-key-xml-datafeed",me):""):"",this.__getAutoAnonymizeValue,this.__setAutoAnonymizeValue,(null===(b=this.form.data_retention)||void 0===b?void 0:b.auto_anonymize)?_(le||(le=ye` <foxy-internal-number-control layout="summary-item" infer="auto-anonymize-days" min="90" step="1" .getValue="${0}" .setValue="${0}"> </foxy-internal-number-control> `),this.__getAutoAnonymizeDaysValue,this.__setAutoAnonymizeDaysValue):"",this.renderTemplateOrSlot(),this.href||!this.hCaptchaSiteKey?"":_(ue||(ue=ye` <div class="text-xs text-tertiary"> <foxy-i18n infer="hcaptcha" key="disclaimer"></foxy-i18n> <br> <a target="_blank" class="transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.hcaptcha.com/privacy" rel="noopener noreferrer"> <foxy-i18n class="underline" infer="hcaptcha" key="privacy_policy"></foxy-i18n> </a> <span>•</span> <a target="_blank" class="transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.hcaptcha.com/terms" rel="noopener noreferrer"> <foxy-i18n class="underline" infer="hcaptcha" key="terms_of_service"></foxy-i18n> </a> <h-captcha site-key="${0}" class="hidden" size="invisible" hl="${0}" @verified="${0}"> </h-captcha> </div> `),this.hCaptchaSiteKey,this.lang,(({token:e})=>{this.__hCaptchaToken=e,super.submit()})),super.renderBody(),$.render(this.customerPasswordHashTypes),S.render(this.shippingAddressTypes),V.render(this.timezones),j.render(this.countries),C.render(G))}submit(){var e,t;!this.href&&this.hCaptchaSiteKey?(null===(e=this.__hCaptcha)||void 0===e||e.reset(),null===(t=this.__hCaptcha)||void 0===t||t.execute()):super.submit()}async _fetch(...e){try{const t=new xe.API.WHATWGRequest(...e);return this.__hCaptchaToken&&t.headers.set("h-captcha-code",this.__hCaptchaToken),await super._fetch(t)}catch(e){let t;try{t=await e.text()}catch(t){throw e}if(t.includes("store_domain is invalid because it has a reserved format")||t.includes("store_domain can not end with"))throw["error:store_domain_reserved"];if(t.includes("store_domain is already in use"))throw["error:store_domain_exists"];throw e}}get __displayIdExamples(){const e=this.__getCustomDisplayIdConfig(),t=parseInt(e.start||"0"),o=parseInt(e.length||"0"),r=Math.min(t+Math.floor(Math.random()*Math.pow(10,o)),Math.pow(10,o)-1);if(e.start&&e.length&&t/10<=o)return{first:`${e.prefix}${t.toString().padStart(o,"0")}${e.suffix}`,random:`${e.prefix}${r.toString().padStart(o,"0")}${e.suffix}`}}get __journalIdExamples(){const e=this.__getCustomDisplayIdConfig(),t=e.transaction_journal_entries,o=parseInt(e.start||"0"),r=parseInt(e.length||"0"),n=Math.min(o+Math.floor(Math.random()*Math.pow(10,r)),Math.pow(10,r)-1),i=`${e.prefix}${n.toString().padStart(r,"0")}${e.suffix}`,s=Math.floor(1e3*Math.random()),a=String(s).padStart(3,"0");if(e.start&&e.length&&o/10<=r)return{authcapture:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_authcapture.prefix}${a}`,capture:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_capture.prefix}${a}`,refund:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_refund.prefix}${a}`,void:`${i}${t.transaction_separator}${t.log_detail_request_types.transaction_void.prefix}${a}`}}get __hCaptcha(){return this.renderRoot.querySelector("h-captcha")}__getCustomDisplayIdConfig(){return R({enabled:!1,start:"0",length:"0",prefix:"",suffix:"",transaction_journal_entries:{enabled:!1,transaction_separator:"",log_detail_request_types:{transaction_authcapture:{prefix:""},transaction_capture:{prefix:""},transaction_refund:{prefix:""},transaction_void:{prefix:""}}}},this.form.custom_display_id_config||void 0)}__setCustomDisplayIdConfig(e,t){const o=this.__getCustomDisplayIdConfig();o[e]=t,this.edit({custom_display_id_config:o})}__getTransactionJournalEntriesConfig(){return this.__getCustomDisplayIdConfig().transaction_journal_entries}__setTransactionJournalEntriesConfig(e,t){const o=this.__getCustomDisplayIdConfig().transaction_journal_entries;o[e]=t,this.__setCustomDisplayIdConfig("transaction_journal_entries",o)}__setTransactionJournalEntriesPrefix(e,t){const o=this.__getTransactionJournalEntriesConfig();o.log_detail_request_types[e].prefix=t,this.__setTransactionJournalEntriesConfig("log_detail_request_types",o.log_detail_request_types)}__getSmtpConfig(){var e;let t;try{t=JSON.parse(null!==(e=this.form.smtp_config)&&void 0!==e?e:"")}catch(e){t={username:"",password:"",security:"",host:"",port:""}}return t}__setSmtpConfig(e,t){const o=this.__getSmtpConfig();o[e]=t,this.edit({smtp_config:JSON.stringify(o)})}__renderLoader(e){var t;const o=`loader-${e}`;return{data:null===(t=this.renderRoot.querySelector(`#${o}`))||void 0===t?void 0:t.data,render:e=>_(ce||(ce=ye` <foxy-nucleon class="hidden" infer="" href="${0}" id="${0}" @update="${0}"> </foxy-nucleon> `),f(null!=e?e:void 0),o,(()=>this.requestUpdate()))}}__renderEmailDnsRecords(){const e=(e,t)=>_(me||(me=ye` <foxy-i18n style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)" class="bg-contrast-5 h-full" infer="emails email-dns" key="${0}"> </foxy-i18n> <div class="flex items-start bg-contrast-5 gap-s h-full" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <code class="flex-1" style="overflow-wrap:anywhere">${0}</code> <foxy-copy-to-clipboard infer="emails email-dns copy-to-clipboard" text="${0}"> </foxy-copy-to-clipboard> </div> `),e,t,t);return _(de||(de=ye` <div class="grid" style="gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <div class="flex items-start border border-primary rounded bg-base" style="padding:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px);gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> ${0} <div class="grid" style="gap:calc(.625em + (var(--lumo-border-radius)/ 4) - 1px)"> <foxy-i18n infer="emails email-dns" key="helper_text"></foxy-i18n> <a target="_blank" class="rounded font-medium text-primary transition-colors cursor-pointer hover-opacity-80 focus-outline-none focus-ring-2 focus-ring-primary-50" href="https://www.foxy.io/help/articles/set-up-email-deliverability-with-spf-dkim-and-dmarc#set-up-email-dns" rel="noopener noreferrer"> <foxy-i18n infer="emails email-dns" key="link_text"></foxy-i18n> </a> ${0} </div> </div> </div> `),g(he||(he=ye`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" class="flex-shrink-0 text-primary" style="width: 1.25em"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>`)),[{host:"smtpapi._domainkey",value:"k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB"},{host:"@",value:"v=spf1 include:_spf.foxycart.com ~all"}].map((({host:t,value:o})=>_(pe||(pe=ye` <div class="grid rounded-s overflow-hidden text-s" style="grid-template-columns:auto 1fr;gap:1px"> ${0} ${0} </div> `),e("host",t),e("value",o)))))}__renderReadonlyWebhookKey(e,t){var o;return _(fe||(fe=ye` <div class="leading-xs"> <div class="flex items-center gap-s"> <p class="flex-1"> <foxy-i18n infer="${0}" key="label"></foxy-i18n> </p> <p class="text-tertiary">${0}${0}</p> <foxy-copy-to-clipboard layout="complete" infer="${0} copy-to-clipboard" theme="contrast tertiary-inline" text="${0}"> </foxy-copy-to-clipboard> </div> <p class="text-xs text-secondary"> <foxy-i18n infer="${0}" key="helper_text"></foxy-i18n> <a class="text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> <foxy-i18n infer="${0}" key="link_text"></foxy-i18n> </a> </p> </div> `),e,"*".repeat(8),t.substr(-4),e,t,e,null!==(o=this.storeSecretsPageUrl)&&void 0!==o?o:"#store-secrets",e)}}customElements.define("foxy-store-form",xe);export{xe as StoreForm};
|
|
@@ -247,6 +247,19 @@
|
|
|
247
247
|
"helper_text": "Enables multiple shipping addresses per order. For more information, see our wiki on multiship.",
|
|
248
248
|
"checked": "Yes",
|
|
249
249
|
"unchecked": "No"
|
|
250
|
+
},
|
|
251
|
+
"package-weight-split": {
|
|
252
|
+
"label": "Split heavy orders into multiple packages",
|
|
253
|
+
"helper_text": "When an order's shippable items weigh more than the limit below, live rates are requested for several packages of equal weight instead of one.",
|
|
254
|
+
"checked": "Yes",
|
|
255
|
+
"unchecked": "No"
|
|
256
|
+
},
|
|
257
|
+
"package-weight-max": {
|
|
258
|
+
"label": "Maximum package weight",
|
|
259
|
+
"placeholder": "Required",
|
|
260
|
+
"helper_text": "Uses the same weight unit as your item categories.",
|
|
261
|
+
"v8n_required": "Please enter a weight above 0.",
|
|
262
|
+
"v8n_negative": "Please enter a weight above 0."
|
|
250
263
|
}
|
|
251
264
|
},
|
|
252
265
|
"cart": {
|
|
@@ -62,6 +62,7 @@ export declare class StoreForm extends Base<Data> {
|
|
|
62
62
|
private readonly __setAutoAnonymizeValue;
|
|
63
63
|
private readonly __getAutoAnonymizeDaysValue;
|
|
64
64
|
private readonly __setAutoAnonymizeDaysValue;
|
|
65
|
+
private readonly __setPackageWeightMax;
|
|
65
66
|
private readonly __getStoreEmailValue;
|
|
66
67
|
private readonly __setStoreEmailValue;
|
|
67
68
|
private readonly __getUseSmtpConfigValue;
|
|
@@ -146,6 +146,10 @@ export class StoreForm extends Base {
|
|
|
146
146
|
this.__setAutoAnonymizeDaysValue = (newValue) => {
|
|
147
147
|
this.edit({ data_retention: { ...this.__getDataRetention(), auto_anonymize_days: newValue } });
|
|
148
148
|
};
|
|
149
|
+
// null is a UI-only state (switch on, no limit yet) that v8n blocks from being submitted.
|
|
150
|
+
this.__setPackageWeightMax = (newValue) => {
|
|
151
|
+
this.edit({ package_weight_max: newValue });
|
|
152
|
+
};
|
|
149
153
|
this.__getStoreEmailValue = () => {
|
|
150
154
|
var _a;
|
|
151
155
|
const emails = (_a = this.form.store_email) !== null && _a !== void 0 ? _a : '';
|
|
@@ -400,6 +404,12 @@ export class StoreForm extends Base {
|
|
|
400
404
|
const days = v.auto_anonymize_days;
|
|
401
405
|
return (typeof days === 'number' && days >= 90) || 'auto-anonymize-days:v8n_required';
|
|
402
406
|
},
|
|
407
|
+
({ package_weight_max: v }) => {
|
|
408
|
+
return v !== null || 'package-weight-max:v8n_required';
|
|
409
|
+
},
|
|
410
|
+
({ package_weight_max: v }) => {
|
|
411
|
+
return !v || v >= 0 || 'package-weight-max:v8n_negative';
|
|
412
|
+
},
|
|
403
413
|
];
|
|
404
414
|
}
|
|
405
415
|
get headerSubtitleOptions() {
|
|
@@ -449,6 +459,8 @@ export class StoreForm extends Base {
|
|
|
449
459
|
const logDetailRequestTypes = transactionJournalEntriesConfig.log_detail_request_types;
|
|
450
460
|
const displayIdExamples = this.__displayIdExamples;
|
|
451
461
|
const journalIdExamples = this.__journalIdExamples;
|
|
462
|
+
const packageWeightMax = this.form.package_weight_max;
|
|
463
|
+
const isPackageWeightSplitEnabled = packageWeightMax !== undefined && packageWeightMax !== 0;
|
|
452
464
|
const rawWebhookKey = (_p = (_o = this.data) === null || _o === void 0 ? void 0 : _o.webhook_key) !== null && _p !== void 0 ? _p : '';
|
|
453
465
|
const parsedWebhookKey = parseWebhookKey(rawWebhookKey);
|
|
454
466
|
const cartSigningKey = (_q = parsedWebhookKey === null || parsedWebhookKey === void 0 ? void 0 : parsedWebhookKey.cart_signing) !== null && _q !== void 0 ? _q : rawWebhookKey;
|
|
@@ -697,6 +709,29 @@ export class StoreForm extends Base {
|
|
|
697
709
|
|
|
698
710
|
<foxy-internal-switch-control infer="require-signed-shipping-rates" helper-text-as-tooltip>
|
|
699
711
|
</foxy-internal-switch-control>
|
|
712
|
+
|
|
713
|
+
<foxy-internal-switch-control
|
|
714
|
+
infer="package-weight-split"
|
|
715
|
+
helper-text-as-tooltip
|
|
716
|
+
.getValue=${() => isPackageWeightSplitEnabled}
|
|
717
|
+
.setValue=${(newValue) => this.__setPackageWeightMax(newValue ? null : 0)}
|
|
718
|
+
>
|
|
719
|
+
</foxy-internal-switch-control>
|
|
720
|
+
|
|
721
|
+
${isPackageWeightSplitEnabled
|
|
722
|
+
? html `
|
|
723
|
+
<foxy-internal-number-control
|
|
724
|
+
layout="summary-item"
|
|
725
|
+
infer="package-weight-max"
|
|
726
|
+
min="0"
|
|
727
|
+
.setValue=${(newValue) => {
|
|
728
|
+
// 0 means "don't split" in the API, so keep the switch on and ask for a real limit instead.
|
|
729
|
+
this.__setPackageWeightMax(newValue === 0 ? null : newValue);
|
|
730
|
+
}}
|
|
731
|
+
>
|
|
732
|
+
</foxy-internal-number-control>
|
|
733
|
+
`
|
|
734
|
+
: ''}
|
|
700
735
|
</foxy-internal-summary-control>
|
|
701
736
|
|
|
702
737
|
<foxy-internal-summary-control infer="cart">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreForm.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreForm/StoreForm.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,eAAe,EAAE,sCAAmC;AAC7D,OAAO,EAAE,YAAY,EAAE,oDAAiD;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,sCAAmC;AACvD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,MAAM,iBAAiB,CAAC;AAEpC,MAAM,EAAE,GAAG,YAAY,CAAC;AACxB,MAAM,IAAI,GAAG,eAAe,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;AAElE,SAAS,eAAe,CAAC,UAAkB;IACzC,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC/B;IAAC,WAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,IAAU;IAAzC;;QA0IE,8DAA8D;QAC9D,+BAA0B,GAAkB,IAAI,CAAC;QAEjD,6EAA6E;QAC7E,8BAAyB,GAAkB,IAAI,CAAC;QAEhD,uEAAuE;QACvE,yBAAoB,GAAkB,IAAI,CAAC;QAE3C,2FAA2F;QAC3F,wBAAmB,GAAkB,IAAI,CAAC;QAE1C,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,KAAK,EAAE,uCAAuC;aAC/C;SACF,CAAC;QAEF,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;cAK7C,GAAG;;;;;;;+DAO8C,IAAI;kFACe,IAAI;;;KAGjF,CAAC;QAEF,OAAO,IAAI,CAAA;;;;;;YAMH,GAAG,CAAA,iWAAiW;;;;;;;;;;;;;cAalW,OAAO,CAAC,GAAG,CACX,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAI,CAAA;;;;;oBAKnB,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC;;eAE7D,CACF;;;;KAIR,CAAC;IACJ,CAAC;IAEO,0BAA0B,CAAC,KAAa,EAAE,GAAW;;QAC3D,OAAO,IAAI,CAAA;;;;+BAIgB,KAAK;;qCAEC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;;qBAG9C,KAAK;;mBAEP,GAAG;;;;;6BAKO,KAAK;;;mBAGf,MAAA,IAAI,CAAC,mBAAmB,mCAAI,gBAAgB;;+BAEhC,KAAK;;;;KAI/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { VanillaHCaptchaWebComponent } from 'vanilla-hcaptcha';\nimport type { PropertyDeclarations } from 'lit-element';\nimport type { Resource, Graph } from '@foxy.io/sdk/core';\nimport type { TemplateResult } from 'lit-html';\nimport type { NucleonElement } from '../NucleonElement';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Item } from '../../internal/InternalEditableListControl/types';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport type {\n ParsedCustomDisplayIdConfig,\n ParsedDataRetention,\n ParsedSmtpConfig,\n ParsedWebhookKey,\n Data,\n} from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { isHttpUrl } from '../../../utils/is-http-url';\nimport { html, svg } from 'lit-html';\n\nimport slugify from '@sindresorhus/slugify';\nimport merge from 'lodash-es/merge';\n\nconst NS = 'store-form';\nconst Base = ResponsiveMixin(TranslatableMixin(InternalForm, NS));\n\nfunction parseWebhookKey(webhookKey: string): ParsedWebhookKey | null {\n try {\n return JSON.parse(webhookKey);\n } catch {\n return null;\n }\n}\n\n/**\n * Form element for store settings (`fx:store`).\n *\n * @element foxy-store-form\n * @since 1.21.0\n */\nexport class StoreForm extends Base<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n reportingStoreDomainExists: { attribute: 'reporting-store-domain-exists' },\n customerPasswordHashTypes: { attribute: 'customer-password-hash-types' },\n shippingAddressTypes: { attribute: 'shipping-address-types' },\n storeSecretsPageUrl: { attribute: 'store-secrets-page-url' },\n hCaptchaSiteKey: { attribute: 'h-captcha-site-key' },\n storeVersions: { attribute: 'store-versions' },\n checkoutTypes: { attribute: 'checkout-types' },\n localeCodes: { attribute: 'locale-codes' },\n languages: {},\n timezones: {},\n countries: {},\n regions: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data, StoreForm> {\n return [\n ({ store_name: v }) => !!v || 'store-name:v8n_required',\n ({ store_name: v }) => (v && v.length <= 50) || 'store-name:v8n_too_long',\n ({ store_domain: storeDomain, use_remote_domain: useRemoteDomain }) => {\n if (!storeDomain) return 'store-domain:v8n_required';\n if (storeDomain.length > 100) return 'store-domain:v8n_too_long';\n\n const [tld, ...slds] = storeDomain.split('.').reverse();\n\n if (\n useRemoteDomain &&\n slds.length > 1 &&\n slds.every(s => /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(s)) &&\n /^[a-z]{2,63}$/.test(tld)\n ) {\n return true;\n }\n\n if (\n !useRemoteDomain &&\n slds.length === 0 &&\n /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(storeDomain)\n ) {\n return true;\n }\n\n return 'store-domain:v8n_invalid';\n },\n ({ store_url: v }) => !!v || 'store-url:v8n_required',\n ({ store_url: v }) => (v && v.length <= 300) || 'store-url:v8n_too_long',\n ({ store_url: v }) => !v || isHttpUrl(v) || 'store-url:v8n_invalid',\n ({ receipt_continue_url: v }) => !v || v.length <= 300 || 'receipt-continue-url:v8n_too_long',\n ({ store_email: v }) => !!v || 'store-email:v8n_required',\n ({ store_email: v }) => (v && v.length <= 300) || 'store-email:v8n_too_long',\n ({ from_email: v }) => !v || v.length <= 100 || 'from-email:v8n_too_long',\n ({ smtp_config: v }) => !v || v.length <= 1000 || 'use-smtp-config:v8n_too_long',\n ({ postal_code: v }) => !!v || 'postal-code:v8n_required',\n ({ postal_code: v }) => (v && v.length <= 50) || 'postal-code:v8n_too_long',\n ({ region: v }) => !!v || 'region:v8n_required',\n ({ region: v }) => (v && v.length <= 100) || 'region:v8n_too_long',\n ({ country: v }) => !!v || 'country:v8n_required',\n ({ logo_url: v }) => !v || v.length <= 200 || 'logo-url:v8n_too_long',\n\n ({ webhook_url: v, use_webhook }) => !use_webhook || !!v || 'webhook-url:v8n_required',\n ({ webhook_url: v, use_webhook }) => {\n return !use_webhook || !v || v.length <= 300 || 'webhook-url:v8n_too_long';\n },\n\n ({ webhook_key: v }) => v === void 0 || v.length > 0 || 'webhook-key:v8n_required',\n ({ webhook_key: v }, host) => {\n // TODO remove the line below when API limit is corrected to match the legacy admin\n if (host.data?.webhook_key === v) return true;\n return !v || v.length <= 100 || 'webhook-key:v8n_too_long';\n },\n\n ({ webhook_key: v, use_webhook: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-webhook:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.xml_datafeed : v) || code;\n },\n\n ({ webhook_key: v, use_cart_validation: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-cart-validation:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.cart_signing : v) || code;\n },\n\n ({ webhook_key: v, use_single_sign_on: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-single-sign-on:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.sso : v) || code;\n },\n\n ...(['xml_datafeed', 'cart_signing', 'api_legacy', 'sso'] as const)\n .map(prop => [\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_required`;\n return !parsedV || !!parsedV[prop] || code;\n },\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_too_long`;\n return !parsedV || parsedV[prop].length <= 100 || code;\n },\n ])\n .flat(),\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !!v || 'single-sign-on-url:v8n_required';\n },\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !v || v.length <= 300 || 'single-sign-on-url:v8n_too_long';\n },\n\n ({ customer_password_hash_config: v }) => {\n return !v || String(v).length <= 100 || 'customer-password-hash-config:v8n_too_long';\n },\n\n ({ unified_order_entry_password: v }) => {\n return !v || String(v).length <= 100 || 'unified-order-entry-password:v8n_too_long';\n },\n\n ({ data_retention: v }) => {\n const days = v?.auto_anonymize_days;\n if (days === null || days === undefined) return true;\n return (Number.isInteger(days) && days >= 90) || 'auto-anonymize-days:v8n_too_small';\n },\n\n ({ data_retention: v }) => {\n if (!v?.auto_anonymize) return true;\n const days = v.auto_anonymize_days;\n return (typeof days === 'number' && days >= 90) || 'auto-anonymize-days:v8n_required';\n },\n ];\n }\n\n /** URL of the `fx:reporting_store_domain_exists` endpoint. */\n reportingStoreDomainExists: string | null = null;\n\n /** URL of the `fx:customer_password_hash_types` property helper resource. */\n customerPasswordHashTypes: string | null = null;\n\n /** URL of the `fx:shipping_address_types` property helper resource. */\n shippingAddressTypes: string | null = null;\n\n /** URL of the Store Secrets settings page if you are using this form on multiple pages. */\n storeSecretsPageUrl: string | null = null;\n\n /** hCaptcha site key for signup verification. If provided, requires users to complete a captcha before creating a store. */\n hCaptchaSiteKey: string | null = null;\n\n /**\n * URL of the `fx:store_versions` property helper resource.\n * @deprecated All elements in this library are designed to work with store version 2.0.\n */\n storeVersions: string | null = null;\n\n /**\n * URL of the `fx:checkout_types` property helper resource.\n * @deprecated Checkout type is effectively controlled by the default template config.\n */\n checkoutTypes: string | null = null;\n\n /**\n * URL of the `fx:locale_codes` property helper resource.\n * @deprecated Default locale code is effectively controlled by the active template set.\n */\n localeCodes: string | null = null;\n\n /**\n * URL of the `fx:languages` property helper resource.\n * @deprecated Default language is effectively controlled by the active template set.\n */\n languages: string | null = null;\n\n /** URL of the `fx:timezones` property helper resource. */\n timezones: string | null = null;\n\n /** URL of the `fx:countries` property helper resource. */\n countries: string | null = null;\n\n /** URL of the `fx:regions` property helper resource. */\n regions: string | null = null;\n\n private readonly __currencyStyleOptions = [\n { rawLabel: '12.34', value: '101' },\n { rawLabel: 'USD 12.34', value: '001' },\n { rawLabel: '$12.34', value: '000' },\n { rawLabel: '12', value: '111' },\n { rawLabel: 'USD 12', value: '011' },\n { rawLabel: '$12', value: '010' },\n ];\n\n private readonly __currencyStyleGetValue = () => {\n const map: Record<string, string> = {\n '101': '101',\n '100': '101',\n '001': '001',\n '000': '000',\n '111': '111',\n '110': '111',\n '011': '011',\n '010': '010',\n };\n\n const selectionCode = [\n this.form.hide_currency_symbol,\n this.form.hide_decimal_characters,\n this.form.use_international_currency_symbol,\n ]\n .map(v => Number(Boolean(v)))\n .join('');\n\n return map[selectionCode];\n };\n\n private readonly __currencyStyleSetValue = (newValue: string) => {\n this.edit({\n hide_currency_symbol: Boolean(Number(newValue[0])),\n hide_decimal_characters: Boolean(Number(newValue[1])),\n use_international_currency_symbol: Boolean(Number(newValue[2])),\n });\n };\n\n private readonly __appSessionTimeOptions = [\n { value: 's', label: 'second' },\n { value: 'm', label: 'minute' },\n { value: 'h', label: 'hour' },\n { value: 'd', label: 'day' },\n ];\n\n private readonly __checkStoreDomainAvailability = async (value: string) => {\n if (this.reportingStoreDomainExists) {\n if (value === this.data?.store_domain) return true;\n\n const url = new URL(this.reportingStoreDomainExists);\n url.searchParams.set('store_domain', value);\n\n const response = await new StoreForm.API(this).fetch(url.toString());\n return response.ok || 'store-domain:v8n_unavailable';\n } else {\n throw new Error('reportingStoreDomainExists is not set.');\n }\n };\n\n private readonly __storeNameSetValue = (newValue: string) => {\n const previousSuggestedDomain = slugify(this.form.store_name ?? '');\n const currentStoreDomain = this.form.store_domain ?? '';\n const newSuggestedDomain = slugify(newValue);\n\n if (previousSuggestedDomain === currentStoreDomain) {\n this.edit({ store_domain: newSuggestedDomain });\n }\n\n this.edit({ store_name: newValue });\n };\n\n private readonly __getDataRetention = (): ParsedDataRetention => {\n const config = this.form.data_retention;\n\n return {\n auto_anonymize: config?.auto_anonymize ?? false,\n auto_anonymize_days: config?.auto_anonymize_days ?? null,\n };\n };\n\n private readonly __getAutoAnonymizeValue = (): boolean => {\n return this.__getDataRetention().auto_anonymize;\n };\n\n private readonly __setAutoAnonymizeValue = (newValue: boolean) => {\n this.edit({ data_retention: { ...this.__getDataRetention(), auto_anonymize: newValue } });\n };\n\n private readonly __getAutoAnonymizeDaysValue = (): number | null => {\n return this.__getDataRetention().auto_anonymize_days;\n };\n\n private readonly __setAutoAnonymizeDaysValue = (newValue: number) => {\n this.edit({ data_retention: { ...this.__getDataRetention(), auto_anonymize_days: newValue } });\n };\n\n private readonly __getStoreEmailValue = (): Item[] => {\n const emails = this.form.store_email ?? '';\n return emails\n .split(',')\n .map(v => ({ value: v.trim() }))\n .filter(({ value }) => value.length > 0);\n };\n\n private readonly __setStoreEmailValue = (newValue: Item[]) => {\n this.edit({ store_email: newValue.map(v => v.value).join(',') });\n };\n\n private readonly __getUseSmtpConfigValue = () => {\n return !!this.form.smtp_config;\n };\n\n private readonly __setUseSmtpConfigValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({\n smtp_config: JSON.stringify({\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n }),\n });\n } else {\n this.edit({ smtp_config: '' });\n }\n };\n\n private readonly __getAppSessionTimeValue = () => {\n const valueInSeconds = this.form.app_session_time || 43200;\n\n if (valueInSeconds % 86400 === 0) return `${valueInSeconds / 86400}d`;\n if (valueInSeconds % 3600 === 0) return `${valueInSeconds / 3600}h`;\n if (valueInSeconds % 60 === 0) return `${valueInSeconds / 60}m`;\n\n return `${valueInSeconds}s`;\n };\n\n private readonly __setAppSessionTimeValue = (newValue: string) => {\n const units = newValue[newValue.length - 1];\n const count = parseInt(newValue.substring(0, newValue.length - 1));\n const map: Record<string, number> = { d: 86400, h: 3600, m: 60, s: 1 };\n\n this.edit({ app_session_time: map[units] * count });\n };\n\n private readonly __setStoreDomainValue = (newValue: string) => {\n if (this.data) {\n if (newValue.endsWith('.foxycart.com')) {\n const domain = newValue.substring(0, newValue.length - 13);\n this.edit({ store_domain: domain, use_remote_domain: false });\n } else {\n this.edit({ store_domain: newValue, use_remote_domain: newValue.includes('.') });\n }\n } else {\n this.edit({ store_domain: newValue.split('.')[0] ?? '', use_remote_domain: false });\n }\n };\n\n private readonly __smtpConfigHostGetValue = () => {\n return this.__getSmtpConfig().host;\n };\n\n private readonly __smtpConfigHostSetValue = (newValue: string) => {\n this.__setSmtpConfig('host', newValue);\n };\n\n private readonly __smtpConfigPortGetValue = () => {\n const port = parseInt(this.__getSmtpConfig().port);\n return isNaN(port) ? undefined : port;\n };\n\n private readonly __smtpConfigPortSetValue = (newValue: number) => {\n this.__setSmtpConfig('port', String(newValue));\n };\n\n private readonly __smtpConfigUsernameGetValue = () => {\n return this.__getSmtpConfig().username;\n };\n\n private readonly __smtpConfigUsernameSetValue = (newValue: string) => {\n this.__setSmtpConfig('username', newValue);\n };\n\n private readonly __smtpConfigPasswordGetValue = () => {\n return this.__getSmtpConfig().password;\n };\n\n private readonly __smtpConfigPasswordSetValue = (newValue: string) => {\n this.__setSmtpConfig('password', newValue);\n };\n\n private readonly __smtpConfigSecurityGetValue = () => {\n return this.__getSmtpConfig().security;\n };\n\n private readonly __smtpConfigSecuritySetValue = (newValue: string) => {\n this.__setSmtpConfig('security', newValue);\n };\n\n private readonly __smtpConfigSecurityOptions = [\n { label: 'option_ssl', value: 'ssl' },\n { label: 'option_tls', value: 'tls' },\n { label: 'option_none', value: '' },\n ];\n\n private readonly __singleWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __jsonWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __useSingleWebhookKeyGetValue = () => {\n try {\n JSON.parse(this.form.webhook_key ?? '');\n return false;\n } catch {\n return true;\n }\n };\n\n private readonly __useSingleWebhookKeySetValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({ webhook_key: '' });\n } else {\n const parsedKey: ParsedWebhookKey = {\n cart_signing: '',\n xml_datafeed: '',\n api_legacy: '',\n sso: '',\n };\n\n this.edit({ webhook_key: JSON.stringify(parsedKey) });\n }\n };\n\n private readonly __sendHtmlEmailOptions = [\n { label: 'option_text_only', value: 'text_only' },\n { label: 'option_text_plus_html', value: 'text_plus_html' },\n ];\n\n private readonly __sendHtmlEmailGetValue = () => {\n return this.form.send_html_email ? 'text_plus_html' : 'text_only';\n };\n\n private readonly __sendHtmlEmailSetValue = (newValue: 'text_only' | 'text_plus_html') => {\n this.edit({ send_html_email: newValue === 'text_plus_html' });\n };\n\n private __hCaptchaToken: string | null = null;\n\n get headerSubtitleOptions(): Record<string, unknown> {\n return { context: this.data?.is_active ? 'active' : 'inactive' };\n }\n\n renderBody(): TemplateResult {\n const storeDomainHelperText = this.t(\n this.form.use_remote_domain && !this.data?.use_remote_domain\n ? 'essentials-group-one.store-domain.custom_domain_note'\n : 'essentials-group-one.store-domain.helper_text'\n );\n\n const storeDomainSuffix =\n !this.form.store_domain || this.form.store_domain.includes('.') ? '' : '.foxycart.com';\n\n const customerPasswordHashTypesLoader = this.__renderLoader<Rels.CustomerPasswordHashTypes>(1);\n const shippingAddressTypesLoader = this.__renderLoader<Rels.ShippingAddressTypes>(2);\n const timezonesLoader = this.__renderLoader<Rels.Timezones>(7);\n const countriesLoader = this.__renderLoader<Rels.Countries>(8);\n const regionsLoader = this.__renderLoader<Rels.Regions>(9);\n\n const shippingAddressTypeEntries = Object.entries(\n shippingAddressTypesLoader?.data?.values ?? {}\n );\n\n const timezones = timezonesLoader?.data?.values.timezone ?? [];\n const countries = Object.values(countriesLoader?.data?.values ?? {});\n const regions = Object.values(regionsLoader?.data?.values ?? {});\n\n const customerPasswordHashTypeEntries = Object.entries(\n customerPasswordHashTypesLoader?.data?.values ?? {}\n );\n\n const customerPasswordHashTypeOptions = customerPasswordHashTypeEntries.map(v => ({\n rawLabel: v[1].description,\n value: v[0],\n }));\n\n const shippingAddressTypeOptions = shippingAddressTypeEntries.map(([value, rawLabel]) => ({\n rawLabel,\n value,\n }));\n\n const timezoneOptions = timezones.map(t => ({ rawLabel: t.description, value: t.timezone }));\n const countryOptions = countries.map(c => ({ rawLabel: c.default, value: c.cc2 }));\n const regionOptions = regions.map(r => ({ rawLabel: r.default, value: r.code }));\n\n let regionsUrl: string | undefined;\n\n try {\n const regionsURL = new URL(this.regions ?? '');\n const country = this.form.country;\n if (country) regionsURL.searchParams.set('country_code', country);\n regionsUrl = regionsURL.toString();\n } catch {\n regionsUrl = undefined;\n }\n\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const logDetailRequestTypes = transactionJournalEntriesConfig.log_detail_request_types;\n const displayIdExamples = this.__displayIdExamples;\n const journalIdExamples = this.__journalIdExamples;\n\n const rawWebhookKey = this.data?.webhook_key ?? '';\n const parsedWebhookKey = parseWebhookKey(rawWebhookKey);\n const cartSigningKey = parsedWebhookKey?.cart_signing ?? rawWebhookKey;\n const xmlDatafeedKey = parsedWebhookKey?.xml_datafeed ?? rawWebhookKey;\n const ssoKey = parsedWebhookKey?.sso ?? rawWebhookKey;\n\n return html`\n ${this.renderHeader()}\n\n <foxy-internal-summary-control infer=\"essentials-group-one\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"store-name\"\n .setValue=${this.__storeNameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"logo-url\">\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n helper-text=${storeDomainHelperText}\n layout=\"summary-item\"\n suffix=${storeDomainSuffix}\n infer=\"store-domain\"\n .setValue=${this.__setStoreDomainValue}\n .checkValidityAsync=${this.reportingStoreDomainExists\n ? this.__checkStoreDomainAvailability\n : null}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"store-url\">\n </foxy-internal-text-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-two\">\n <foxy-internal-switch-control infer=\"is-maintenance-mode\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-three\">\n <foxy-internal-editable-list-control\n layout=\"summary-item\"\n infer=\"store-email\"\n .getValue=${this.__getStoreEmailValue}\n .setValue=${this.__setStoreEmailValue}\n >\n </foxy-internal-editable-list-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-four\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"timezone\"\n .options=${timezoneOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"country\"\n .options=${countryOptions}\n >\n </foxy-internal-select-control>\n\n ${regionOptions.length > 0\n ? html`\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"region\"\n .options=${regionOptions}\n >\n </foxy-internal-select-control>\n `\n : html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"region\">\n </foxy-internal-text-control>\n `}\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"postal-code\">\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"currency-style\"\n .options=${this.__currencyStyleOptions}\n .getValue=${this.__currencyStyleGetValue}\n .setValue=${this.__currencyStyleSetValue}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"store-secrets\" id=\"store-secrets\">\n <foxy-internal-switch-control\n infer=\"use-single-secret\"\n .getValue=${this.__useSingleWebhookKeyGetValue}\n .setValue=${this.__useSingleWebhookKeySetValue}\n >\n </foxy-internal-switch-control>\n\n ${this.__useSingleWebhookKeyGetValue()\n ? html`\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"webhook-key\"\n show-generator\n .generatorOptions=${this.__singleWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `\n : html`\n <foxy-internal-password-control\n json-path=\"api_legacy\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-api-legacy\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"cart_signing\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-cart-signing\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"sso\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-sso\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"xml_datafeed\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-xml-datafeed\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"emails\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"from-email\"\n placeholder=${this.__getStoreEmailValue()[0]?.value ??\n this.t('emails.from-email.placeholder')}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"send-html-email\"\n .getValue=${this.__sendHtmlEmailGetValue}\n .setValue=${this.__sendHtmlEmailSetValue}\n .options=${this.__sendHtmlEmailOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"use-email-dns\"> </foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n ${this.form.use_email_dns &&\n !this.data?.use_email_dns &&\n !this.hiddenSelector.matches('emails:email-dns', true)\n ? this.__renderEmailDnsRecords()\n : ''}\n\n <foxy-internal-summary-control infer=\"emails\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control\n infer=\"use-smtp-config\"\n helper-text-as-tooltip\n .getValue=${this.__getUseSmtpConfigValue}\n .setValue=${this.__setUseSmtpConfigValue}\n >\n </foxy-internal-switch-control>\n\n ${this.form.smtp_config\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-host\"\n .getValue=${this.__smtpConfigHostGetValue}\n .setValue=${this.__smtpConfigHostSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"smtp-config-port\"\n step=\"1\"\n min=\"0\"\n .getValue=${this.__smtpConfigPortGetValue}\n .setValue=${this.__smtpConfigPortSetValue}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-username\"\n .getValue=${this.__smtpConfigUsernameGetValue}\n .setValue=${this.__smtpConfigUsernameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"smtp-config-password\"\n .getValue=${this.__smtpConfigPasswordGetValue}\n .setValue=${this.__smtpConfigPasswordSetValue}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"smtp-config-security\"\n .getValue=${this.__smtpConfigSecurityGetValue}\n .setValue=${this.__smtpConfigSecuritySetValue}\n .options=${this.__smtpConfigSecurityOptions}\n >\n </foxy-internal-select-control>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"shipping\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"shipping-address-type\"\n .options=${shippingAddressTypeOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"features-multiship\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"require-signed-shipping-rates\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"cart\">\n <foxy-internal-frequency-control\n layout=\"summary-item\"\n infer=\"app-session-time\"\n .getValue=${this.__getAppSessionTimeValue}\n .setValue=${this.__setAppSessionTimeValue}\n .options=${this.__appSessionTimeOptions}\n >\n </foxy-internal-frequency-control>\n\n <foxy-internal-switch-control\n infer=\"products-require-expires-property\"\n helper-text-as-tooltip\n >\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"use-cart-validation\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n ${cartSigningKey && this.form.use_cart_validation\n ? this.__renderReadonlyWebhookKey('webhook-key-cart-signing', cartSigningKey)\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-type\"\n .options=${customerPasswordHashTypeOptions}\n .setValue=${(newValue: string) => {\n const entry = customerPasswordHashTypeEntries.find(([v]) => v === newValue);\n this.edit({\n customer_password_hash_type: newValue,\n customer_password_hash_config: entry?.[1].config ?? '',\n });\n }}\n >\n </foxy-internal-select-control>\n\n ${typeof this.form.customer_password_hash_config === 'number'\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-number-control>\n `\n : html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-text-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-password-control\n visibility-toggle=\"copy\"\n layout=\"summary-item\"\n infer=\"unified-order-entry-password\"\n show-generator\n >\n </foxy-internal-password-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control infer=\"use-single-sign-on\"></foxy-internal-switch-control>\n ${this.form.use_single_sign_on\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"single-sign-on-url\">\n </foxy-internal-text-control>\n ${ssoKey ? this.__renderReadonlyWebhookKey('webhook-key-sso', ssoKey) : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"receipt\">\n <foxy-internal-text-control layout=\"summary-item\" infer=\"receipt-continue-url\">\n </foxy-internal-text-control>\n <foxy-internal-switch-control infer=\"bcc-on-receipt-email\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-enabled\"\n .getValue=${() => customDisplayIdConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setCustomDisplayIdConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${customDisplayIdConfig.enabled\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-start\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.start || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('start', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-length\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.length || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('length', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-prefix\"\n .getValue=${() => customDisplayIdConfig.prefix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('prefix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-suffix\"\n .getValue=${() => customDisplayIdConfig.suffix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('suffix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"text-right text-secondary\">\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-first-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.first}</span>\n </p>\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-random-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.random}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control helper-text=\"\" label=\"\" infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-transaction-journal-entries-enabled\"\n class=\"sm-col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setTransactionJournalEntriesConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${transactionJournalEntriesConfig.enabled\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_authcapture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_authcapture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_capture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_capture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_void.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_void', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_refund.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_refund', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-transaction-separator\"\n class=\"col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.transaction_separator}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesConfig('transaction_separator', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"sm-col-span-2 leading-s text-right text-secondary\">\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-authcapture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\"> ${journalIdExamples?.authcapture} </span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-capture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.capture}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-void-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.void}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-refund-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.refund}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"xml-datafeed\">\n <foxy-internal-switch-control infer=\"use-webhook\"></foxy-internal-switch-control>\n ${this.form.use_webhook\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"webhook-url\">\n </foxy-internal-text-control>\n ${xmlDatafeedKey\n ? this.__renderReadonlyWebhookKey('webhook-key-xml-datafeed', xmlDatafeedKey)\n : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"data-retention\">\n <foxy-internal-switch-control\n infer=\"auto-anonymize\"\n .getValue=${this.__getAutoAnonymizeValue}\n .setValue=${this.__setAutoAnonymizeValue}\n >\n </foxy-internal-switch-control>\n ${this.form.data_retention?.auto_anonymize\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"auto-anonymize-days\"\n min=\"90\"\n step=\"1\"\n .getValue=${this.__getAutoAnonymizeDaysValue}\n .setValue=${this.__setAutoAnonymizeDaysValue}\n >\n </foxy-internal-number-control>\n `\n : ''}\n </foxy-internal-summary-control>\n\n ${this.renderTemplateOrSlot()}\n ${this.href || !this.hCaptchaSiteKey\n ? ''\n : html`\n <div class=\"text-xs text-tertiary\">\n <foxy-i18n infer=\"hcaptcha\" key=\"disclaimer\"></foxy-i18n>\n <br />\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/privacy\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"privacy_policy\"></foxy-i18n>\n </a>\n <span>•</span>\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/terms\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"terms_of_service\"></foxy-i18n>\n </a>\n <h-captcha\n site-key=${this.hCaptchaSiteKey}\n class=\"hidden\"\n size=\"invisible\"\n hl=${this.lang}\n @verified=${({ token }: Record<'token' | 'eKey', string>) => {\n this.__hCaptchaToken = token;\n super.submit();\n }}\n >\n </h-captcha>\n </div>\n `}\n ${super.renderBody()}\n ${customerPasswordHashTypesLoader.render(this.customerPasswordHashTypes)}\n ${shippingAddressTypesLoader.render(this.shippingAddressTypes)}\n ${timezonesLoader.render(this.timezones)} ${countriesLoader.render(this.countries)}\n ${regionsLoader.render(regionsUrl)}\n `;\n }\n\n submit(): void {\n if (!this.href && this.hCaptchaSiteKey) {\n this.__hCaptcha?.reset();\n this.__hCaptcha?.execute();\n } else {\n super.submit();\n }\n }\n\n protected async _fetch<TResult = Data>(...args: Parameters<Window['fetch']>): Promise<TResult> {\n try {\n const request = new StoreForm.API.WHATWGRequest(...args);\n if (this.__hCaptchaToken) request.headers.set('h-captcha-code', this.__hCaptchaToken);\n return await super._fetch(request);\n } catch (err) {\n let errorText;\n\n try {\n errorText = await (err as Response).text();\n } catch {\n throw err;\n }\n\n if (\n errorText.includes('store_domain is invalid because it has a reserved format') ||\n errorText.includes('store_domain can not end with')\n ) {\n throw ['error:store_domain_reserved'];\n }\n\n if (errorText.includes('store_domain is already in use')) {\n throw ['error:store_domain_exists'];\n }\n\n throw err;\n }\n }\n\n private get __displayIdExamples() {\n const config = this.__getCustomDisplayIdConfig();\n const startAsInt = parseInt(config.start || '0');\n const lengthAsInt = parseInt(config.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n if (config.start && config.length && startAsInt / 10 <= lengthAsInt) {\n return {\n first: `${config.prefix}${startAsInt.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n random: `${config.prefix}${randomExampleNumericId.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n };\n }\n }\n\n private get __journalIdExamples() {\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const startAsInt = parseInt(customDisplayIdConfig.start || '0');\n const lengthAsInt = parseInt(customDisplayIdConfig.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n const randomExampleId = `${customDisplayIdConfig.prefix}${randomExampleNumericId\n .toString()\n .padStart(lengthAsInt, '0')}${customDisplayIdConfig.suffix}`;\n\n const randomNumericEntryId = Math.floor(Math.random() * 1000);\n const randomEntryId = String(randomNumericEntryId).padStart(3, '0');\n\n if (\n customDisplayIdConfig.start &&\n customDisplayIdConfig.length &&\n startAsInt / 10 <= lengthAsInt\n ) {\n return {\n authcapture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_authcapture.prefix}${randomEntryId}`,\n capture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_capture.prefix}${randomEntryId}`,\n refund: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_refund.prefix}${randomEntryId}`,\n void: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_void.prefix}${randomEntryId}`,\n };\n }\n }\n\n private get __hCaptcha() {\n return this.renderRoot.querySelector<VanillaHCaptchaWebComponent>('h-captcha');\n }\n\n private __getCustomDisplayIdConfig() {\n const defaultConfig: ParsedCustomDisplayIdConfig = {\n enabled: false,\n start: '0',\n length: '0',\n prefix: '',\n suffix: '',\n transaction_journal_entries: {\n enabled: false,\n transaction_separator: '',\n log_detail_request_types: {\n transaction_authcapture: { prefix: '' },\n transaction_capture: { prefix: '' },\n transaction_refund: { prefix: '' },\n transaction_void: { prefix: '' },\n },\n },\n };\n\n return merge(defaultConfig, this.form.custom_display_id_config || void 0);\n }\n\n private __setCustomDisplayIdConfig<TKey extends keyof ParsedCustomDisplayIdConfig>(\n key: TKey,\n value: ParsedCustomDisplayIdConfig[TKey]\n ) {\n const currentConfig = this.__getCustomDisplayIdConfig();\n currentConfig[key] = value;\n this.edit({ custom_display_id_config: currentConfig });\n }\n\n private __getTransactionJournalEntriesConfig() {\n return this.__getCustomDisplayIdConfig().transaction_journal_entries;\n }\n\n private __setTransactionJournalEntriesConfig<\n TKey extends keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']\n >(key: TKey, value: ParsedCustomDisplayIdConfig['transaction_journal_entries'][TKey]) {\n const config = this.__getCustomDisplayIdConfig().transaction_journal_entries;\n config[key] = value;\n this.__setCustomDisplayIdConfig('transaction_journal_entries', config);\n }\n\n private __setTransactionJournalEntriesPrefix(\n key: keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']['log_detail_request_types'],\n value: string\n ) {\n const config = this.__getTransactionJournalEntriesConfig();\n config.log_detail_request_types[key].prefix = value;\n this.__setTransactionJournalEntriesConfig(\n 'log_detail_request_types',\n config.log_detail_request_types\n );\n }\n\n private __getSmtpConfig() {\n let config: ParsedSmtpConfig;\n\n try {\n config = JSON.parse(this.form.smtp_config ?? '');\n } catch {\n config = {\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n };\n }\n\n return config;\n }\n\n private __setSmtpConfig<TKey extends keyof ParsedSmtpConfig>(\n key: TKey,\n value: ParsedSmtpConfig[TKey]\n ) {\n const config = this.__getSmtpConfig();\n config[key] = value;\n this.edit({ smtp_config: JSON.stringify(config) });\n }\n\n private __renderLoader<T extends Graph & { links: { self: unknown } }>(index: number) {\n const id = `loader-${index}`;\n return {\n data: this.renderRoot.querySelector<NucleonElement<Resource<T>>>(`#${id}`)?.data,\n render: (href?: string | null) => html`\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(href ?? undefined)}\n id=${id}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `,\n };\n }\n\n private __renderEmailDnsRecords() {\n const records = [\n {\n host: 'smtpapi._domainkey',\n value:\n 'k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB',\n },\n {\n host: '@',\n value: 'v=spf1 include:_spf.foxycart.com ~all',\n },\n ];\n\n const renderField = (key: string, text: string) => html`\n <foxy-i18n\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\"\n class=\"bg-contrast-5 h-full\"\n infer=\"emails email-dns\"\n key=${key}\n >\n </foxy-i18n>\n <div\n class=\"flex items-start bg-contrast-5 gap-s h-full\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\"\n >\n <code class=\"flex-1\" style=\"overflow-wrap: anywhere\">${text}</code>\n <foxy-copy-to-clipboard infer=\"emails email-dns copy-to-clipboard\" text=${text}>\n </foxy-copy-to-clipboard>\n </div>\n `;\n\n return html`\n <div class=\"grid\" style=\"gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\">\n <div\n class=\"flex items-start border border-primary rounded bg-base\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px); gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n ${svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\" class=\"flex-shrink-0 text-primary\" style=\"width: 1.25em\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\" clip-rule=\"evenodd\"></path></svg>`}\n <div class=\"grid\" style=\"gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\">\n <foxy-i18n infer=\"emails email-dns\" key=\"helper_text\"></foxy-i18n>\n\n <a\n target=\"_blank\"\n class=\"rounded font-medium text-primary transition-colors cursor-pointer hover-opacity-80 focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.foxy.io/help/articles/set-up-email-deliverability-with-spf-dkim-and-dmarc#set-up-email-dns\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n infer=\"emails email-dns\" key=\"link_text\"></foxy-i18n>\n </a>\n\n ${records.map(\n ({ host, value }) => html`\n <div\n class=\"grid rounded-s overflow-hidden text-s\"\n style=\"grid-template-columns: auto 1fr; gap: 1px;\"\n >\n ${renderField('host', host)} ${renderField('value', value)}\n </div>\n `\n )}\n </div>\n </div>\n </div>\n `;\n }\n\n private __renderReadonlyWebhookKey(scope: string, key: string) {\n return html`\n <div class=\"leading-xs\">\n <div class=\"flex items-center gap-s\">\n <p class=\"flex-1\">\n <foxy-i18n infer=${scope} key=\"label\"></foxy-i18n>\n </p>\n <p class=\"text-tertiary\">${'*'.repeat(8)}${key.substr(-4)}</p>\n <foxy-copy-to-clipboard\n layout=\"complete\"\n infer=\"${scope} copy-to-clipboard\"\n theme=\"contrast tertiary-inline\"\n text=${key}\n >\n </foxy-copy-to-clipboard>\n </div>\n <p class=\"text-xs text-secondary\">\n <foxy-i18n infer=${scope} key=\"helper_text\"></foxy-i18n>\n <a\n class=\"text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=${this.storeSecretsPageUrl ?? '#store-secrets'}\n >\n <foxy-i18n infer=${scope} key=\"link_text\"></foxy-i18n>\n </a>\n </p>\n </div>\n `;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"StoreForm.js","sourceRoot":"","sources":["../../../../src/elements/public/StoreForm/StoreForm.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,eAAe,EAAE,sCAAmC;AAC7D,OAAO,EAAE,YAAY,EAAE,oDAAiD;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,sCAAmC;AACvD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,OAAO,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,MAAM,iBAAiB,CAAC;AAEpC,MAAM,EAAE,GAAG,YAAY,CAAC;AACxB,MAAM,IAAI,GAAG,eAAe,CAAC,iBAAiB,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,CAAC;AAElE,SAAS,eAAe,CAAC,UAAkB;IACzC,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC/B;IAAC,WAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAO,SAAU,SAAQ,IAAU;IAAzC;;QAkJE,8DAA8D;QAC9D,+BAA0B,GAAkB,IAAI,CAAC;QAEjD,6EAA6E;QAC7E,8BAAyB,GAAkB,IAAI,CAAC;QAEhD,uEAAuE;QACvE,yBAAoB,GAAkB,IAAI,CAAC;QAE3C,2FAA2F;QAC3F,wBAAmB,GAAkB,IAAI,CAAC;QAE1C,4HAA4H;QAC5H,oBAAe,GAAkB,IAAI,CAAC;QAEtC;;;WAGG;QACH,kBAAa,GAAkB,IAAI,CAAC;QAEpC;;;WAGG;QACH,kBAAa,GAAkB,IA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AAW,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC;;eAE7D,CACF;;;;KAIR,CAAC;IACJ,CAAC;IAEO,0BAA0B,CAAC,KAAa,EAAE,GAAW;;QAC3D,OAAO,IAAI,CAAA;;;;+BAIgB,KAAK;;qCAEC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;;qBAG9C,KAAK;;mBAEP,GAAG;;;;;6BAKO,KAAK;;;mBAGf,MAAA,IAAI,CAAC,mBAAmB,mCAAI,gBAAgB;;+BAEhC,KAAK;;;;KAI/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import type { VanillaHCaptchaWebComponent } from 'vanilla-hcaptcha';\nimport type { PropertyDeclarations } from 'lit-element';\nimport type { Resource, Graph } from '@foxy.io/sdk/core';\nimport type { TemplateResult } from 'lit-html';\nimport type { NucleonElement } from '../NucleonElement';\nimport type { NucleonV8N } from '../NucleonElement/types';\nimport type { Item } from '../../internal/InternalEditableListControl/types';\nimport type { Rels } from '@foxy.io/sdk/backend';\n\nimport type {\n ParsedCustomDisplayIdConfig,\n ParsedDataRetention,\n ParsedSmtpConfig,\n ParsedWebhookKey,\n Data,\n} from './types';\n\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { ResponsiveMixin } from '../../../mixins/responsive';\nimport { InternalForm } from '../../internal/InternalForm/InternalForm';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { isHttpUrl } from '../../../utils/is-http-url';\nimport { html, svg } from 'lit-html';\n\nimport slugify from '@sindresorhus/slugify';\nimport merge from 'lodash-es/merge';\n\nconst NS = 'store-form';\nconst Base = ResponsiveMixin(TranslatableMixin(InternalForm, NS));\n\nfunction parseWebhookKey(webhookKey: string): ParsedWebhookKey | null {\n try {\n return JSON.parse(webhookKey);\n } catch {\n return null;\n }\n}\n\n/**\n * Form element for store settings (`fx:store`).\n *\n * @element foxy-store-form\n * @since 1.21.0\n */\nexport class StoreForm extends Base<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n reportingStoreDomainExists: { attribute: 'reporting-store-domain-exists' },\n customerPasswordHashTypes: { attribute: 'customer-password-hash-types' },\n shippingAddressTypes: { attribute: 'shipping-address-types' },\n storeSecretsPageUrl: { attribute: 'store-secrets-page-url' },\n hCaptchaSiteKey: { attribute: 'h-captcha-site-key' },\n storeVersions: { attribute: 'store-versions' },\n checkoutTypes: { attribute: 'checkout-types' },\n localeCodes: { attribute: 'locale-codes' },\n languages: {},\n timezones: {},\n countries: {},\n regions: {},\n };\n }\n\n static get v8n(): NucleonV8N<Data, StoreForm> {\n return [\n ({ store_name: v }) => !!v || 'store-name:v8n_required',\n ({ store_name: v }) => (v && v.length <= 50) || 'store-name:v8n_too_long',\n ({ store_domain: storeDomain, use_remote_domain: useRemoteDomain }) => {\n if (!storeDomain) return 'store-domain:v8n_required';\n if (storeDomain.length > 100) return 'store-domain:v8n_too_long';\n\n const [tld, ...slds] = storeDomain.split('.').reverse();\n\n if (\n useRemoteDomain &&\n slds.length > 1 &&\n slds.every(s => /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(s)) &&\n /^[a-z]{2,63}$/.test(tld)\n ) {\n return true;\n }\n\n if (\n !useRemoteDomain &&\n slds.length === 0 &&\n /^(?!-)[a-z0-9-]{1,63}(?<!-)$/.test(storeDomain)\n ) {\n return true;\n }\n\n return 'store-domain:v8n_invalid';\n },\n ({ store_url: v }) => !!v || 'store-url:v8n_required',\n ({ store_url: v }) => (v && v.length <= 300) || 'store-url:v8n_too_long',\n ({ store_url: v }) => !v || isHttpUrl(v) || 'store-url:v8n_invalid',\n ({ receipt_continue_url: v }) => !v || v.length <= 300 || 'receipt-continue-url:v8n_too_long',\n ({ store_email: v }) => !!v || 'store-email:v8n_required',\n ({ store_email: v }) => (v && v.length <= 300) || 'store-email:v8n_too_long',\n ({ from_email: v }) => !v || v.length <= 100 || 'from-email:v8n_too_long',\n ({ smtp_config: v }) => !v || v.length <= 1000 || 'use-smtp-config:v8n_too_long',\n ({ postal_code: v }) => !!v || 'postal-code:v8n_required',\n ({ postal_code: v }) => (v && v.length <= 50) || 'postal-code:v8n_too_long',\n ({ region: v }) => !!v || 'region:v8n_required',\n ({ region: v }) => (v && v.length <= 100) || 'region:v8n_too_long',\n ({ country: v }) => !!v || 'country:v8n_required',\n ({ logo_url: v }) => !v || v.length <= 200 || 'logo-url:v8n_too_long',\n\n ({ webhook_url: v, use_webhook }) => !use_webhook || !!v || 'webhook-url:v8n_required',\n ({ webhook_url: v, use_webhook }) => {\n return !use_webhook || !v || v.length <= 300 || 'webhook-url:v8n_too_long';\n },\n\n ({ webhook_key: v }) => v === void 0 || v.length > 0 || 'webhook-key:v8n_required',\n ({ webhook_key: v }, host) => {\n // TODO remove the line below when API limit is corrected to match the legacy admin\n if (host.data?.webhook_key === v) return true;\n return !v || v.length <= 100 || 'webhook-key:v8n_too_long';\n },\n\n ({ webhook_key: v, use_webhook: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-webhook:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.xml_datafeed : v) || code;\n },\n\n ({ webhook_key: v, use_cart_validation: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-cart-validation:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.cart_signing : v) || code;\n },\n\n ({ webhook_key: v, use_single_sign_on: on }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = 'use-single-sign-on:v8n_webhook_key_required';\n return !on || !!(parsedV ? parsedV.sso : v) || code;\n },\n\n ...(['xml_datafeed', 'cart_signing', 'api_legacy', 'sso'] as const)\n .map(prop => [\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_required`;\n return !parsedV || !!parsedV[prop] || code;\n },\n ({ webhook_key: v }: Partial<Data>) => {\n const parsedV = parseWebhookKey(v ?? '');\n const code = `webhook-key-${prop.replace(/_/g, '-')}:v8n_too_long`;\n return !parsedV || parsedV[prop].length <= 100 || code;\n },\n ])\n .flat(),\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !!v || 'single-sign-on-url:v8n_required';\n },\n\n ({ single_sign_on_url: v, use_single_sign_on: on }) => {\n return !on || !v || v.length <= 300 || 'single-sign-on-url:v8n_too_long';\n },\n\n ({ customer_password_hash_config: v }) => {\n return !v || String(v).length <= 100 || 'customer-password-hash-config:v8n_too_long';\n },\n\n ({ unified_order_entry_password: v }) => {\n return !v || String(v).length <= 100 || 'unified-order-entry-password:v8n_too_long';\n },\n\n ({ data_retention: v }) => {\n const days = v?.auto_anonymize_days;\n if (days === null || days === undefined) return true;\n return (Number.isInteger(days) && days >= 90) || 'auto-anonymize-days:v8n_too_small';\n },\n\n ({ data_retention: v }) => {\n if (!v?.auto_anonymize) return true;\n const days = v.auto_anonymize_days;\n return (typeof days === 'number' && days >= 90) || 'auto-anonymize-days:v8n_required';\n },\n\n ({ package_weight_max: v }) => {\n return v !== null || 'package-weight-max:v8n_required';\n },\n\n ({ package_weight_max: v }) => {\n return !v || v >= 0 || 'package-weight-max:v8n_negative';\n },\n ];\n }\n\n /** URL of the `fx:reporting_store_domain_exists` endpoint. */\n reportingStoreDomainExists: string | null = null;\n\n /** URL of the `fx:customer_password_hash_types` property helper resource. */\n customerPasswordHashTypes: string | null = null;\n\n /** URL of the `fx:shipping_address_types` property helper resource. */\n shippingAddressTypes: string | null = null;\n\n /** URL of the Store Secrets settings page if you are using this form on multiple pages. */\n storeSecretsPageUrl: string | null = null;\n\n /** hCaptcha site key for signup verification. If provided, requires users to complete a captcha before creating a store. */\n hCaptchaSiteKey: string | null = null;\n\n /**\n * URL of the `fx:store_versions` property helper resource.\n * @deprecated All elements in this library are designed to work with store version 2.0.\n */\n storeVersions: string | null = null;\n\n /**\n * URL of the `fx:checkout_types` property helper resource.\n * @deprecated Checkout type is effectively controlled by the default template config.\n */\n checkoutTypes: string | null = null;\n\n /**\n * URL of the `fx:locale_codes` property helper resource.\n * @deprecated Default locale code is effectively controlled by the active template set.\n */\n localeCodes: string | null = null;\n\n /**\n * URL of the `fx:languages` property helper resource.\n * @deprecated Default language is effectively controlled by the active template set.\n */\n languages: string | null = null;\n\n /** URL of the `fx:timezones` property helper resource. */\n timezones: string | null = null;\n\n /** URL of the `fx:countries` property helper resource. */\n countries: string | null = null;\n\n /** URL of the `fx:regions` property helper resource. */\n regions: string | null = null;\n\n private readonly __currencyStyleOptions = [\n { rawLabel: '12.34', value: '101' },\n { rawLabel: 'USD 12.34', value: '001' },\n { rawLabel: '$12.34', value: '000' },\n { rawLabel: '12', value: '111' },\n { rawLabel: 'USD 12', value: '011' },\n { rawLabel: '$12', value: '010' },\n ];\n\n private readonly __currencyStyleGetValue = () => {\n const map: Record<string, string> = {\n '101': '101',\n '100': '101',\n '001': '001',\n '000': '000',\n '111': '111',\n '110': '111',\n '011': '011',\n '010': '010',\n };\n\n const selectionCode = [\n this.form.hide_currency_symbol,\n this.form.hide_decimal_characters,\n this.form.use_international_currency_symbol,\n ]\n .map(v => Number(Boolean(v)))\n .join('');\n\n return map[selectionCode];\n };\n\n private readonly __currencyStyleSetValue = (newValue: string) => {\n this.edit({\n hide_currency_symbol: Boolean(Number(newValue[0])),\n hide_decimal_characters: Boolean(Number(newValue[1])),\n use_international_currency_symbol: Boolean(Number(newValue[2])),\n });\n };\n\n private readonly __appSessionTimeOptions = [\n { value: 's', label: 'second' },\n { value: 'm', label: 'minute' },\n { value: 'h', label: 'hour' },\n { value: 'd', label: 'day' },\n ];\n\n private readonly __checkStoreDomainAvailability = async (value: string) => {\n if (this.reportingStoreDomainExists) {\n if (value === this.data?.store_domain) return true;\n\n const url = new URL(this.reportingStoreDomainExists);\n url.searchParams.set('store_domain', value);\n\n const response = await new StoreForm.API(this).fetch(url.toString());\n return response.ok || 'store-domain:v8n_unavailable';\n } else {\n throw new Error('reportingStoreDomainExists is not set.');\n }\n };\n\n private readonly __storeNameSetValue = (newValue: string) => {\n const previousSuggestedDomain = slugify(this.form.store_name ?? '');\n const currentStoreDomain = this.form.store_domain ?? '';\n const newSuggestedDomain = slugify(newValue);\n\n if (previousSuggestedDomain === currentStoreDomain) {\n this.edit({ store_domain: newSuggestedDomain });\n }\n\n this.edit({ store_name: newValue });\n };\n\n private readonly __getDataRetention = (): ParsedDataRetention => {\n const config = this.form.data_retention;\n\n return {\n auto_anonymize: config?.auto_anonymize ?? false,\n auto_anonymize_days: config?.auto_anonymize_days ?? null,\n };\n };\n\n private readonly __getAutoAnonymizeValue = (): boolean => {\n return this.__getDataRetention().auto_anonymize;\n };\n\n private readonly __setAutoAnonymizeValue = (newValue: boolean) => {\n this.edit({ data_retention: { ...this.__getDataRetention(), auto_anonymize: newValue } });\n };\n\n private readonly __getAutoAnonymizeDaysValue = (): number | null => {\n return this.__getDataRetention().auto_anonymize_days;\n };\n\n private readonly __setAutoAnonymizeDaysValue = (newValue: number) => {\n this.edit({ data_retention: { ...this.__getDataRetention(), auto_anonymize_days: newValue } });\n };\n\n // null is a UI-only state (switch on, no limit yet) that v8n blocks from being submitted.\n private readonly __setPackageWeightMax = (newValue: number | null) => {\n this.edit({ package_weight_max: newValue as number });\n };\n\n private readonly __getStoreEmailValue = (): Item[] => {\n const emails = this.form.store_email ?? '';\n return emails\n .split(',')\n .map(v => ({ value: v.trim() }))\n .filter(({ value }) => value.length > 0);\n };\n\n private readonly __setStoreEmailValue = (newValue: Item[]) => {\n this.edit({ store_email: newValue.map(v => v.value).join(',') });\n };\n\n private readonly __getUseSmtpConfigValue = () => {\n return !!this.form.smtp_config;\n };\n\n private readonly __setUseSmtpConfigValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({\n smtp_config: JSON.stringify({\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n }),\n });\n } else {\n this.edit({ smtp_config: '' });\n }\n };\n\n private readonly __getAppSessionTimeValue = () => {\n const valueInSeconds = this.form.app_session_time || 43200;\n\n if (valueInSeconds % 86400 === 0) return `${valueInSeconds / 86400}d`;\n if (valueInSeconds % 3600 === 0) return `${valueInSeconds / 3600}h`;\n if (valueInSeconds % 60 === 0) return `${valueInSeconds / 60}m`;\n\n return `${valueInSeconds}s`;\n };\n\n private readonly __setAppSessionTimeValue = (newValue: string) => {\n const units = newValue[newValue.length - 1];\n const count = parseInt(newValue.substring(0, newValue.length - 1));\n const map: Record<string, number> = { d: 86400, h: 3600, m: 60, s: 1 };\n\n this.edit({ app_session_time: map[units] * count });\n };\n\n private readonly __setStoreDomainValue = (newValue: string) => {\n if (this.data) {\n if (newValue.endsWith('.foxycart.com')) {\n const domain = newValue.substring(0, newValue.length - 13);\n this.edit({ store_domain: domain, use_remote_domain: false });\n } else {\n this.edit({ store_domain: newValue, use_remote_domain: newValue.includes('.') });\n }\n } else {\n this.edit({ store_domain: newValue.split('.')[0] ?? '', use_remote_domain: false });\n }\n };\n\n private readonly __smtpConfigHostGetValue = () => {\n return this.__getSmtpConfig().host;\n };\n\n private readonly __smtpConfigHostSetValue = (newValue: string) => {\n this.__setSmtpConfig('host', newValue);\n };\n\n private readonly __smtpConfigPortGetValue = () => {\n const port = parseInt(this.__getSmtpConfig().port);\n return isNaN(port) ? undefined : port;\n };\n\n private readonly __smtpConfigPortSetValue = (newValue: number) => {\n this.__setSmtpConfig('port', String(newValue));\n };\n\n private readonly __smtpConfigUsernameGetValue = () => {\n return this.__getSmtpConfig().username;\n };\n\n private readonly __smtpConfigUsernameSetValue = (newValue: string) => {\n this.__setSmtpConfig('username', newValue);\n };\n\n private readonly __smtpConfigPasswordGetValue = () => {\n return this.__getSmtpConfig().password;\n };\n\n private readonly __smtpConfigPasswordSetValue = (newValue: string) => {\n this.__setSmtpConfig('password', newValue);\n };\n\n private readonly __smtpConfigSecurityGetValue = () => {\n return this.__getSmtpConfig().security;\n };\n\n private readonly __smtpConfigSecuritySetValue = (newValue: string) => {\n this.__setSmtpConfig('security', newValue);\n };\n\n private readonly __smtpConfigSecurityOptions = [\n { label: 'option_ssl', value: 'ssl' },\n { label: 'option_tls', value: 'tls' },\n { label: 'option_none', value: '' },\n ];\n\n private readonly __singleWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __jsonWebhookKeyGeneratorOptions = { length: 90, separator: '' };\n\n private readonly __useSingleWebhookKeyGetValue = () => {\n try {\n JSON.parse(this.form.webhook_key ?? '');\n return false;\n } catch {\n return true;\n }\n };\n\n private readonly __useSingleWebhookKeySetValue = (newValue: boolean) => {\n if (newValue) {\n this.edit({ webhook_key: '' });\n } else {\n const parsedKey: ParsedWebhookKey = {\n cart_signing: '',\n xml_datafeed: '',\n api_legacy: '',\n sso: '',\n };\n\n this.edit({ webhook_key: JSON.stringify(parsedKey) });\n }\n };\n\n private readonly __sendHtmlEmailOptions = [\n { label: 'option_text_only', value: 'text_only' },\n { label: 'option_text_plus_html', value: 'text_plus_html' },\n ];\n\n private readonly __sendHtmlEmailGetValue = () => {\n return this.form.send_html_email ? 'text_plus_html' : 'text_only';\n };\n\n private readonly __sendHtmlEmailSetValue = (newValue: 'text_only' | 'text_plus_html') => {\n this.edit({ send_html_email: newValue === 'text_plus_html' });\n };\n\n private __hCaptchaToken: string | null = null;\n\n get headerSubtitleOptions(): Record<string, unknown> {\n return { context: this.data?.is_active ? 'active' : 'inactive' };\n }\n\n renderBody(): TemplateResult {\n const storeDomainHelperText = this.t(\n this.form.use_remote_domain && !this.data?.use_remote_domain\n ? 'essentials-group-one.store-domain.custom_domain_note'\n : 'essentials-group-one.store-domain.helper_text'\n );\n\n const storeDomainSuffix =\n !this.form.store_domain || this.form.store_domain.includes('.') ? '' : '.foxycart.com';\n\n const customerPasswordHashTypesLoader = this.__renderLoader<Rels.CustomerPasswordHashTypes>(1);\n const shippingAddressTypesLoader = this.__renderLoader<Rels.ShippingAddressTypes>(2);\n const timezonesLoader = this.__renderLoader<Rels.Timezones>(7);\n const countriesLoader = this.__renderLoader<Rels.Countries>(8);\n const regionsLoader = this.__renderLoader<Rels.Regions>(9);\n\n const shippingAddressTypeEntries = Object.entries(\n shippingAddressTypesLoader?.data?.values ?? {}\n );\n\n const timezones = timezonesLoader?.data?.values.timezone ?? [];\n const countries = Object.values(countriesLoader?.data?.values ?? {});\n const regions = Object.values(regionsLoader?.data?.values ?? {});\n\n const customerPasswordHashTypeEntries = Object.entries(\n customerPasswordHashTypesLoader?.data?.values ?? {}\n );\n\n const customerPasswordHashTypeOptions = customerPasswordHashTypeEntries.map(v => ({\n rawLabel: v[1].description,\n value: v[0],\n }));\n\n const shippingAddressTypeOptions = shippingAddressTypeEntries.map(([value, rawLabel]) => ({\n rawLabel,\n value,\n }));\n\n const timezoneOptions = timezones.map(t => ({ rawLabel: t.description, value: t.timezone }));\n const countryOptions = countries.map(c => ({ rawLabel: c.default, value: c.cc2 }));\n const regionOptions = regions.map(r => ({ rawLabel: r.default, value: r.code }));\n\n let regionsUrl: string | undefined;\n\n try {\n const regionsURL = new URL(this.regions ?? '');\n const country = this.form.country;\n if (country) regionsURL.searchParams.set('country_code', country);\n regionsUrl = regionsURL.toString();\n } catch {\n regionsUrl = undefined;\n }\n\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const logDetailRequestTypes = transactionJournalEntriesConfig.log_detail_request_types;\n const displayIdExamples = this.__displayIdExamples;\n const journalIdExamples = this.__journalIdExamples;\n const packageWeightMax = this.form.package_weight_max;\n const isPackageWeightSplitEnabled = packageWeightMax !== undefined && packageWeightMax !== 0;\n\n const rawWebhookKey = this.data?.webhook_key ?? '';\n const parsedWebhookKey = parseWebhookKey(rawWebhookKey);\n const cartSigningKey = parsedWebhookKey?.cart_signing ?? rawWebhookKey;\n const xmlDatafeedKey = parsedWebhookKey?.xml_datafeed ?? rawWebhookKey;\n const ssoKey = parsedWebhookKey?.sso ?? rawWebhookKey;\n\n return html`\n ${this.renderHeader()}\n\n <foxy-internal-summary-control infer=\"essentials-group-one\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"store-name\"\n .setValue=${this.__storeNameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"logo-url\">\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n helper-text=${storeDomainHelperText}\n layout=\"summary-item\"\n suffix=${storeDomainSuffix}\n infer=\"store-domain\"\n .setValue=${this.__setStoreDomainValue}\n .checkValidityAsync=${this.reportingStoreDomainExists\n ? this.__checkStoreDomainAvailability\n : null}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"store-url\">\n </foxy-internal-text-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-two\">\n <foxy-internal-switch-control infer=\"is-maintenance-mode\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-three\">\n <foxy-internal-editable-list-control\n layout=\"summary-item\"\n infer=\"store-email\"\n .getValue=${this.__getStoreEmailValue}\n .setValue=${this.__setStoreEmailValue}\n >\n </foxy-internal-editable-list-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"essentials-group-four\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"timezone\"\n .options=${timezoneOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"country\"\n .options=${countryOptions}\n >\n </foxy-internal-select-control>\n\n ${regionOptions.length > 0\n ? html`\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"region\"\n .options=${regionOptions}\n >\n </foxy-internal-select-control>\n `\n : html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"region\">\n </foxy-internal-text-control>\n `}\n\n <foxy-internal-text-control layout=\"summary-item\" infer=\"postal-code\">\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"currency-style\"\n .options=${this.__currencyStyleOptions}\n .getValue=${this.__currencyStyleGetValue}\n .setValue=${this.__currencyStyleSetValue}\n >\n </foxy-internal-select-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"store-secrets\" id=\"store-secrets\">\n <foxy-internal-switch-control\n infer=\"use-single-secret\"\n .getValue=${this.__useSingleWebhookKeyGetValue}\n .setValue=${this.__useSingleWebhookKeySetValue}\n >\n </foxy-internal-switch-control>\n\n ${this.__useSingleWebhookKeyGetValue()\n ? html`\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"webhook-key\"\n show-generator\n .generatorOptions=${this.__singleWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `\n : html`\n <foxy-internal-password-control\n json-path=\"api_legacy\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-api-legacy\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"cart_signing\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-cart-signing\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"sso\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-sso\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-password-control\n json-path=\"xml_datafeed\"\n property=\"webhook_key\"\n layout=\"summary-item\"\n infer=\"webhook-key-xml-datafeed\"\n show-generator\n .generatorOptions=${this.__jsonWebhookKeyGeneratorOptions}\n >\n </foxy-internal-password-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"emails\">\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"from-email\"\n placeholder=${this.__getStoreEmailValue()[0]?.value ??\n this.t('emails.from-email.placeholder')}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"send-html-email\"\n .getValue=${this.__sendHtmlEmailGetValue}\n .setValue=${this.__sendHtmlEmailSetValue}\n .options=${this.__sendHtmlEmailOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"use-email-dns\"> </foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n ${this.form.use_email_dns &&\n !this.data?.use_email_dns &&\n !this.hiddenSelector.matches('emails:email-dns', true)\n ? this.__renderEmailDnsRecords()\n : ''}\n\n <foxy-internal-summary-control infer=\"emails\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control\n infer=\"use-smtp-config\"\n helper-text-as-tooltip\n .getValue=${this.__getUseSmtpConfigValue}\n .setValue=${this.__setUseSmtpConfigValue}\n >\n </foxy-internal-switch-control>\n\n ${this.form.smtp_config\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-host\"\n .getValue=${this.__smtpConfigHostGetValue}\n .setValue=${this.__smtpConfigHostSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"smtp-config-port\"\n step=\"1\"\n min=\"0\"\n .getValue=${this.__smtpConfigPortGetValue}\n .setValue=${this.__smtpConfigPortSetValue}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"smtp-config-username\"\n .getValue=${this.__smtpConfigUsernameGetValue}\n .setValue=${this.__smtpConfigUsernameSetValue}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-password-control\n layout=\"summary-item\"\n infer=\"smtp-config-password\"\n .getValue=${this.__smtpConfigPasswordGetValue}\n .setValue=${this.__smtpConfigPasswordSetValue}\n >\n </foxy-internal-password-control>\n\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"smtp-config-security\"\n .getValue=${this.__smtpConfigSecurityGetValue}\n .setValue=${this.__smtpConfigSecuritySetValue}\n .options=${this.__smtpConfigSecurityOptions}\n >\n </foxy-internal-select-control>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"shipping\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"shipping-address-type\"\n .options=${shippingAddressTypeOptions}\n >\n </foxy-internal-select-control>\n\n <foxy-internal-switch-control infer=\"features-multiship\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"require-signed-shipping-rates\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control\n infer=\"package-weight-split\"\n helper-text-as-tooltip\n .getValue=${() => isPackageWeightSplitEnabled}\n .setValue=${(newValue: boolean) => this.__setPackageWeightMax(newValue ? null : 0)}\n >\n </foxy-internal-switch-control>\n\n ${isPackageWeightSplitEnabled\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"package-weight-max\"\n min=\"0\"\n .setValue=${(newValue: number) => {\n // 0 means \"don't split\" in the API, so keep the switch on and ask for a real limit instead.\n this.__setPackageWeightMax(newValue === 0 ? null : newValue);\n }}\n >\n </foxy-internal-number-control>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"cart\">\n <foxy-internal-frequency-control\n layout=\"summary-item\"\n infer=\"app-session-time\"\n .getValue=${this.__getAppSessionTimeValue}\n .setValue=${this.__setAppSessionTimeValue}\n .options=${this.__appSessionTimeOptions}\n >\n </foxy-internal-frequency-control>\n\n <foxy-internal-switch-control\n infer=\"products-require-expires-property\"\n helper-text-as-tooltip\n >\n </foxy-internal-switch-control>\n\n <foxy-internal-switch-control infer=\"use-cart-validation\" helper-text-as-tooltip>\n </foxy-internal-switch-control>\n\n ${cartSigningKey && this.form.use_cart_validation\n ? this.__renderReadonlyWebhookKey('webhook-key-cart-signing', cartSigningKey)\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\">\n <foxy-internal-select-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-type\"\n .options=${customerPasswordHashTypeOptions}\n .setValue=${(newValue: string) => {\n const entry = customerPasswordHashTypeEntries.find(([v]) => v === newValue);\n this.edit({\n customer_password_hash_type: newValue,\n customer_password_hash_config: entry?.[1].config ?? '',\n });\n }}\n >\n </foxy-internal-select-control>\n\n ${typeof this.form.customer_password_hash_config === 'number'\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-number-control>\n `\n : html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"customer-password-hash-config\"\n >\n </foxy-internal-text-control>\n `}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-password-control\n visibility-toggle=\"copy\"\n layout=\"summary-item\"\n infer=\"unified-order-entry-password\"\n show-generator\n >\n </foxy-internal-password-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"checkout\" label=\"\" helper-text=\"\">\n <foxy-internal-switch-control infer=\"use-single-sign-on\"></foxy-internal-switch-control>\n ${this.form.use_single_sign_on\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"single-sign-on-url\">\n </foxy-internal-text-control>\n ${ssoKey ? this.__renderReadonlyWebhookKey('webhook-key-sso', ssoKey) : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"receipt\">\n <foxy-internal-text-control layout=\"summary-item\" infer=\"receipt-continue-url\">\n </foxy-internal-text-control>\n <foxy-internal-switch-control infer=\"bcc-on-receipt-email\"></foxy-internal-switch-control>\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-enabled\"\n .getValue=${() => customDisplayIdConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setCustomDisplayIdConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${customDisplayIdConfig.enabled\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-start\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.start || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('start', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-length\"\n step=\"1\"\n min=\"0\"\n .getValue=${() => parseInt(customDisplayIdConfig.length || '0')}\n .setValue=${(newValue: number) => {\n this.__setCustomDisplayIdConfig('length', String(newValue));\n }}\n >\n </foxy-internal-number-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-prefix\"\n .getValue=${() => customDisplayIdConfig.prefix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('prefix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-suffix\"\n .getValue=${() => customDisplayIdConfig.suffix}\n .setValue=${(newValue: string) => {\n this.__setCustomDisplayIdConfig('suffix', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"text-right text-secondary\">\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-first-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.first}</span>\n </p>\n <p class=\"flex justify-end\">\n <foxy-i18n infer=\"\" key=\"custom-display-id-config-random-example\"></foxy-i18n>\n <span style=\"font-family: monospace\"> ${displayIdExamples?.random}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control helper-text=\"\" label=\"\" infer=\"custom-display-id-config\">\n <foxy-internal-switch-control\n infer=\"custom-display-id-config-transaction-journal-entries-enabled\"\n class=\"sm-col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.enabled}\n .setValue=${(newValue: boolean) => {\n this.__setTransactionJournalEntriesConfig('enabled', newValue);\n }}\n >\n </foxy-internal-switch-control>\n\n ${transactionJournalEntriesConfig.enabled\n ? html`\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-authcapture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_authcapture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_authcapture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-capture-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_capture.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_capture', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-void-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_void.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_void', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-log-detail-request-types-transaction-refund-prefix\"\n .getValue=${() => logDetailRequestTypes.transaction_refund.prefix}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesPrefix('transaction_refund', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <foxy-internal-text-control\n layout=\"summary-item\"\n infer=\"custom-display-id-config-transaction-journal-entries-transaction-separator\"\n class=\"col-span-2\"\n .getValue=${() => transactionJournalEntriesConfig.transaction_separator}\n .setValue=${(newValue: string) => {\n this.__setTransactionJournalEntriesConfig('transaction_separator', newValue);\n }}\n >\n </foxy-internal-text-control>\n\n <div class=\"sm-col-span-2 leading-s text-right text-secondary\">\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-authcapture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\"> ${journalIdExamples?.authcapture} </span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-capture-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.capture}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-void-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.void}</span>\n </p>\n <p>\n <foxy-i18n\n infer=\"\"\n key=\"custom-display-id-config-transaction-journal-entries-refund-example\"\n >\n </foxy-i18n>\n <span style=\"font-family: monospace\">${journalIdExamples?.refund}</span>\n </p>\n </div>\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"xml-datafeed\">\n <foxy-internal-switch-control infer=\"use-webhook\"></foxy-internal-switch-control>\n ${this.form.use_webhook\n ? html`\n <foxy-internal-text-control layout=\"summary-item\" infer=\"webhook-url\">\n </foxy-internal-text-control>\n ${xmlDatafeedKey\n ? this.__renderReadonlyWebhookKey('webhook-key-xml-datafeed', xmlDatafeedKey)\n : ''}\n `\n : ''}\n </foxy-internal-summary-control>\n\n <foxy-internal-summary-control infer=\"data-retention\">\n <foxy-internal-switch-control\n infer=\"auto-anonymize\"\n .getValue=${this.__getAutoAnonymizeValue}\n .setValue=${this.__setAutoAnonymizeValue}\n >\n </foxy-internal-switch-control>\n ${this.form.data_retention?.auto_anonymize\n ? html`\n <foxy-internal-number-control\n layout=\"summary-item\"\n infer=\"auto-anonymize-days\"\n min=\"90\"\n step=\"1\"\n .getValue=${this.__getAutoAnonymizeDaysValue}\n .setValue=${this.__setAutoAnonymizeDaysValue}\n >\n </foxy-internal-number-control>\n `\n : ''}\n </foxy-internal-summary-control>\n\n ${this.renderTemplateOrSlot()}\n ${this.href || !this.hCaptchaSiteKey\n ? ''\n : html`\n <div class=\"text-xs text-tertiary\">\n <foxy-i18n infer=\"hcaptcha\" key=\"disclaimer\"></foxy-i18n>\n <br />\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/privacy\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"privacy_policy\"></foxy-i18n>\n </a>\n <span>•</span>\n <a\n target=\"_blank\"\n class=\"transition-colors hover-text-body rounded-s focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.hcaptcha.com/terms\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n class=\"underline\" infer=\"hcaptcha\" key=\"terms_of_service\"></foxy-i18n>\n </a>\n <h-captcha\n site-key=${this.hCaptchaSiteKey}\n class=\"hidden\"\n size=\"invisible\"\n hl=${this.lang}\n @verified=${({ token }: Record<'token' | 'eKey', string>) => {\n this.__hCaptchaToken = token;\n super.submit();\n }}\n >\n </h-captcha>\n </div>\n `}\n ${super.renderBody()}\n ${customerPasswordHashTypesLoader.render(this.customerPasswordHashTypes)}\n ${shippingAddressTypesLoader.render(this.shippingAddressTypes)}\n ${timezonesLoader.render(this.timezones)} ${countriesLoader.render(this.countries)}\n ${regionsLoader.render(regionsUrl)}\n `;\n }\n\n submit(): void {\n if (!this.href && this.hCaptchaSiteKey) {\n this.__hCaptcha?.reset();\n this.__hCaptcha?.execute();\n } else {\n super.submit();\n }\n }\n\n protected async _fetch<TResult = Data>(...args: Parameters<Window['fetch']>): Promise<TResult> {\n try {\n const request = new StoreForm.API.WHATWGRequest(...args);\n if (this.__hCaptchaToken) request.headers.set('h-captcha-code', this.__hCaptchaToken);\n return await super._fetch(request);\n } catch (err) {\n let errorText;\n\n try {\n errorText = await (err as Response).text();\n } catch {\n throw err;\n }\n\n if (\n errorText.includes('store_domain is invalid because it has a reserved format') ||\n errorText.includes('store_domain can not end with')\n ) {\n throw ['error:store_domain_reserved'];\n }\n\n if (errorText.includes('store_domain is already in use')) {\n throw ['error:store_domain_exists'];\n }\n\n throw err;\n }\n }\n\n private get __displayIdExamples() {\n const config = this.__getCustomDisplayIdConfig();\n const startAsInt = parseInt(config.start || '0');\n const lengthAsInt = parseInt(config.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n if (config.start && config.length && startAsInt / 10 <= lengthAsInt) {\n return {\n first: `${config.prefix}${startAsInt.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n random: `${config.prefix}${randomExampleNumericId.toString().padStart(lengthAsInt, '0')}${\n config.suffix\n }`,\n };\n }\n }\n\n private get __journalIdExamples() {\n const customDisplayIdConfig = this.__getCustomDisplayIdConfig();\n const transactionJournalEntriesConfig = customDisplayIdConfig.transaction_journal_entries;\n const startAsInt = parseInt(customDisplayIdConfig.start || '0');\n const lengthAsInt = parseInt(customDisplayIdConfig.length || '0');\n const randomExampleNumericId = Math.min(\n startAsInt + Math.floor(Math.random() * Math.pow(10, lengthAsInt)),\n Math.pow(10, lengthAsInt) - 1\n );\n\n const randomExampleId = `${customDisplayIdConfig.prefix}${randomExampleNumericId\n .toString()\n .padStart(lengthAsInt, '0')}${customDisplayIdConfig.suffix}`;\n\n const randomNumericEntryId = Math.floor(Math.random() * 1000);\n const randomEntryId = String(randomNumericEntryId).padStart(3, '0');\n\n if (\n customDisplayIdConfig.start &&\n customDisplayIdConfig.length &&\n startAsInt / 10 <= lengthAsInt\n ) {\n return {\n authcapture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_authcapture.prefix}${randomEntryId}`,\n capture: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_capture.prefix}${randomEntryId}`,\n refund: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_refund.prefix}${randomEntryId}`,\n void: `${randomExampleId}${transactionJournalEntriesConfig.transaction_separator}${transactionJournalEntriesConfig.log_detail_request_types.transaction_void.prefix}${randomEntryId}`,\n };\n }\n }\n\n private get __hCaptcha() {\n return this.renderRoot.querySelector<VanillaHCaptchaWebComponent>('h-captcha');\n }\n\n private __getCustomDisplayIdConfig() {\n const defaultConfig: ParsedCustomDisplayIdConfig = {\n enabled: false,\n start: '0',\n length: '0',\n prefix: '',\n suffix: '',\n transaction_journal_entries: {\n enabled: false,\n transaction_separator: '',\n log_detail_request_types: {\n transaction_authcapture: { prefix: '' },\n transaction_capture: { prefix: '' },\n transaction_refund: { prefix: '' },\n transaction_void: { prefix: '' },\n },\n },\n };\n\n return merge(defaultConfig, this.form.custom_display_id_config || void 0);\n }\n\n private __setCustomDisplayIdConfig<TKey extends keyof ParsedCustomDisplayIdConfig>(\n key: TKey,\n value: ParsedCustomDisplayIdConfig[TKey]\n ) {\n const currentConfig = this.__getCustomDisplayIdConfig();\n currentConfig[key] = value;\n this.edit({ custom_display_id_config: currentConfig });\n }\n\n private __getTransactionJournalEntriesConfig() {\n return this.__getCustomDisplayIdConfig().transaction_journal_entries;\n }\n\n private __setTransactionJournalEntriesConfig<\n TKey extends keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']\n >(key: TKey, value: ParsedCustomDisplayIdConfig['transaction_journal_entries'][TKey]) {\n const config = this.__getCustomDisplayIdConfig().transaction_journal_entries;\n config[key] = value;\n this.__setCustomDisplayIdConfig('transaction_journal_entries', config);\n }\n\n private __setTransactionJournalEntriesPrefix(\n key: keyof ParsedCustomDisplayIdConfig['transaction_journal_entries']['log_detail_request_types'],\n value: string\n ) {\n const config = this.__getTransactionJournalEntriesConfig();\n config.log_detail_request_types[key].prefix = value;\n this.__setTransactionJournalEntriesConfig(\n 'log_detail_request_types',\n config.log_detail_request_types\n );\n }\n\n private __getSmtpConfig() {\n let config: ParsedSmtpConfig;\n\n try {\n config = JSON.parse(this.form.smtp_config ?? '');\n } catch {\n config = {\n username: '',\n password: '',\n security: '',\n host: '',\n port: '',\n };\n }\n\n return config;\n }\n\n private __setSmtpConfig<TKey extends keyof ParsedSmtpConfig>(\n key: TKey,\n value: ParsedSmtpConfig[TKey]\n ) {\n const config = this.__getSmtpConfig();\n config[key] = value;\n this.edit({ smtp_config: JSON.stringify(config) });\n }\n\n private __renderLoader<T extends Graph & { links: { self: unknown } }>(index: number) {\n const id = `loader-${index}`;\n return {\n data: this.renderRoot.querySelector<NucleonElement<Resource<T>>>(`#${id}`)?.data,\n render: (href?: string | null) => html`\n <foxy-nucleon\n class=\"hidden\"\n infer=\"\"\n href=${ifDefined(href ?? undefined)}\n id=${id}\n @update=${() => this.requestUpdate()}\n >\n </foxy-nucleon>\n `,\n };\n }\n\n private __renderEmailDnsRecords() {\n const records = [\n {\n host: 'smtpapi._domainkey',\n value:\n 'k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB',\n },\n {\n host: '@',\n value: 'v=spf1 include:_spf.foxycart.com ~all',\n },\n ];\n\n const renderField = (key: string, text: string) => html`\n <foxy-i18n\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\"\n class=\"bg-contrast-5 h-full\"\n infer=\"emails email-dns\"\n key=${key}\n >\n </foxy-i18n>\n <div\n class=\"flex items-start bg-contrast-5 gap-s h-full\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\"\n >\n <code class=\"flex-1\" style=\"overflow-wrap: anywhere\">${text}</code>\n <foxy-copy-to-clipboard infer=\"emails email-dns copy-to-clipboard\" text=${text}>\n </foxy-copy-to-clipboard>\n </div>\n `;\n\n return html`\n <div class=\"grid\" style=\"gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\">\n <div\n class=\"flex items-start border border-primary rounded bg-base\"\n style=\"padding: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px); gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px)\"\n >\n ${svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\" class=\"flex-shrink-0 text-primary\" style=\"width: 1.25em\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\" clip-rule=\"evenodd\"></path></svg>`}\n <div class=\"grid\" style=\"gap: calc(0.625em + (var(--lumo-border-radius) / 4) - 1px);\">\n <foxy-i18n infer=\"emails email-dns\" key=\"helper_text\"></foxy-i18n>\n\n <a\n target=\"_blank\"\n class=\"rounded font-medium text-primary transition-colors cursor-pointer hover-opacity-80 focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=\"https://www.foxy.io/help/articles/set-up-email-deliverability-with-spf-dkim-and-dmarc#set-up-email-dns\"\n rel=\"noopener noreferrer\"\n >\n <foxy-i18n infer=\"emails email-dns\" key=\"link_text\"></foxy-i18n>\n </a>\n\n ${records.map(\n ({ host, value }) => html`\n <div\n class=\"grid rounded-s overflow-hidden text-s\"\n style=\"grid-template-columns: auto 1fr; gap: 1px;\"\n >\n ${renderField('host', host)} ${renderField('value', value)}\n </div>\n `\n )}\n </div>\n </div>\n </div>\n `;\n }\n\n private __renderReadonlyWebhookKey(scope: string, key: string) {\n return html`\n <div class=\"leading-xs\">\n <div class=\"flex items-center gap-s\">\n <p class=\"flex-1\">\n <foxy-i18n infer=${scope} key=\"label\"></foxy-i18n>\n </p>\n <p class=\"text-tertiary\">${'*'.repeat(8)}${key.substr(-4)}</p>\n <foxy-copy-to-clipboard\n layout=\"complete\"\n infer=\"${scope} copy-to-clipboard\"\n theme=\"contrast tertiary-inline\"\n text=${key}\n >\n </foxy-copy-to-clipboard>\n </div>\n <p class=\"text-xs text-secondary\">\n <foxy-i18n infer=${scope} key=\"helper_text\"></foxy-i18n>\n <a\n class=\"text-body font-medium rounded-s hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50\"\n href=${this.storeSecretsPageUrl ?? '#store-secrets'}\n >\n <foxy-i18n infer=${scope} key=\"link_text\"></foxy-i18n>\n </a>\n </p>\n </div>\n `;\n }\n}\n"]}
|
package/dist/types/hapi.d.ts
CHANGED
|
@@ -212,6 +212,8 @@ export interface FxStore {
|
|
|
212
212
|
shipping_address_type: string;
|
|
213
213
|
/** Shipping rate signing ensures that the rate the customer selects is carried through and not altered in any way. If you're intending to make use of javascript snippets on your store to alter the price or label of shipping rates or add custom rates dynamically, disable this setting as it will block those rates from being applied. The default is false. */
|
|
214
214
|
require_signed_shipping_rates: boolean;
|
|
215
|
+
/** The maximum weight of a single package when requesting live shipping rates. If the combined weight of the shippable items in an order exceeds this value, the order is split into multiple packages when calculating shipping rates. Set to 0 to treat the order as a single package. */
|
|
216
|
+
package_weight_max: number;
|
|
215
217
|
/** The timezone of your store. This will impact how dates are shown to customers and within the FoxyCart admin. */
|
|
216
218
|
timezone: string;
|
|
217
219
|
/** Set a master password here if you would like to be able to check out as your customers without having to know their password. */
|
package/dist/types/hapi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hapi.js","sourceRoot":"","sources":["../../src/types/hapi.ts"],"names":[],"mappings":"","sourcesContent":["interface Link {\n href: string;\n title: string;\n type?: string;\n}\n\ntype Curies = [\n {\n name: string;\n href: string;\n templated: boolean;\n }\n];\n\nexport interface FxAttribute {\n _links: { [key: string]: Link } & {\n curies: Curies;\n self: Link;\n };\n name: string;\n value: string;\n visibility: 'public' | 'private' | 'restricted';\n date_created: string;\n date_modified: string;\n}\n\nexport interface FxCustomerPortalSettings {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:store': Link;\n };\n\n /** If this field is true we get legacy API key or sso key from store and save it in settings. For false value we drop it. */\n sso: boolean;\n /** The date this resource was created. */\n date_created: string;\n /** The date this resource was last modified. */\n date_modified: string;\n /** Shared secret key. */\n jwtSharedSecret: string;\n /** Life span of session in minutes. Maximum 40320 (4 weeks). */\n sessionLifespanInMinutes: number;\n /** An array of domains. No trailing slashes, must be https unless it's localhost. Can accept a port. Allow up to 10 entries. */\n allowedOrigins: string[];\n /** Object which contains \"allowFrequencyModification\" and \"allowNextDateModification\" fields. Subscription modification data. */\n subscriptions: {\n /** An array that contains objects with jsonataQuery and values. Max length 10 (items). */\n allowFrequencyModification: {\n /** A string that should be a valid [JSONata](https://jsonata.org/) query. Max length 200 chars. */\n jsonataQuery: string;\n /** These strings should match the sub_frequency regex sanitization. Max array length 20, max length per string 4 characters. */\n values: string[];\n }[];\n /** We can forbid modify subscription next date. False disables modification, true lifts all constraints, array of objects defines custom rules. */\n allowNextDateModification:\n | boolean\n | {\n /** Beginning of the time period this rule applies to as frequency. Example: `2w` – apply to dates at least 2 weeks from now. */\n min?: string;\n /** End of the time period this rules applies to as frequency. Example: `1y` – apply to dates at most 1 year from now. */\n max?: string;\n /** Subscription selector that should be a valid [JSONata](https://jsonata.org/) query. Max length 200 chars. */\n jsonataQuery: string;\n /** List of dates (YYYY-MM-DD) that customers can't pick as next payment date. */\n disallowedDates?: string[];\n /** A pattern defining the days that will be available for customers to pick as the next payment date. */\n allowedDays?:\n | {\n /** Constraint type. If `day`, then this rule contains days of week only. */\n type: 'day';\n /** Days of week, 1-7, where 1 is Monday and 7 is Sunday. */\n days: number[];\n }\n | {\n /** Constraint type. If `month`, then this rule contains days of month only. */\n type: 'month';\n /** Days of month, 1-31. */\n days: number[];\n };\n }[];\n };\n /** Self-registration settings. Self-registration is disabled if this field is undefined. */\n signUp?: {\n /** If this field is true, then self-registration is enabled. */\n enabled: boolean;\n /** Client verification settings. */\n verification: {\n /** Verification type. Currently only hCaptcha is supported. */\n type: 'hcaptcha';\n /** hCaptcha site key. If empty, Foxy will use its own hCaptcha site key. */\n siteKey: string;\n /** hCaptcha secret key. If empty, Foxy will use its own hCaptcha secret key. */\n secretKey: string;\n };\n };\n}\n\nexport interface FxBookmark {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:property_helpers': Link;\n 'fx:reporting': Link;\n 'fx:encode': Link;\n 'fx:user': Link;\n 'fx:store': Link;\n 'fx:stores': Link;\n 'fx:token': Link;\n };\n\n message: string;\n}\n\nexport interface FxStore {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:attributes': Link;\n 'fx:store_version': Link;\n 'fx:users': Link;\n 'fx:user_accesses': Link;\n 'fx:customers': Link;\n 'fx:carts': Link;\n 'fx:transactions': Link;\n 'fx:subscriptions': Link;\n 'fx:subscription_settings': Link;\n 'fx:item_categories': Link;\n 'fx:taxes': Link;\n 'fx:payment_method_sets': Link;\n 'fx:coupons': Link;\n 'fx:template_sets': Link;\n 'fx:cart_templates': Link;\n 'fx:cart_include_templates': Link;\n 'fx:checkout_templates': Link;\n 'fx:customer_portal_settings': Link;\n 'fx:process_subscription_webhook': Link;\n 'fx:template_configs': Link;\n 'fx:payment_gateways': Link;\n 'fx:payment_methods_expiring': Link;\n 'fx:store_shipping_methods': Link;\n 'fx:receipt_templates': Link;\n 'fx:email_templates': Link;\n 'fx:error_entries': Link;\n 'fx:downloadables': Link;\n 'fx:hosted_payment_gateways': Link;\n 'fx:fraud_protections': Link;\n 'fx:integrations': Link;\n 'fx:native_integrations': Link;\n 'fx:activate_store_monthly_url': Link;\n 'fx:activate_store_yearly_url': Link;\n };\n\n _embedded?: Record<string, unknown> & {\n 'fx:attributes': FxAttribute[];\n };\n\n /** This is the store version for this store. For more details about this version, see the {@link https://api-sandbox.foxycart.com/hal-browser/browser.html#https://api-sandbox.foxycart.com/property_helpers/store_versions store_versions} property helpers which include changelog information. */\n store_version_uri: string;\n /** The name of your store as you'd like it displayed to your customers and our system. */\n store_name: string;\n /** This is a unique FoxyCart subdomain for your cart, checkout, and receipt. If you install a custom SSL certificate, this will contain a full domain such as store.yourdomain.com. */\n store_domain: string;\n /** Set to true when you plan to use a custom SSL certificate. If set to true, your store_domain must be a full domain. */\n use_remote_domain: boolean;\n /** The URL of your online store. */\n store_url: string;\n /** By default, FoxyCart sends customers back to the page referrer after completing a purchase. Instead, you can set a specific URL here. */\n receipt_continue_url: string;\n /** This is the email address of your store. By default, this will be the from address for your store receipts. If you specify a from_email, you can also put in multiple email addresses here, separated by a comma to be used when bcc_on_receipt_email is true. */\n store_email: string;\n /** Used for when you want to specify a different from email than your store's email address or when your store_email has a list of email addresses. */\n from_email: string;\n /** Set this to true if you would like each receipt sent to your customer to also be blind carbon copied to your store's email address. */\n bcc_on_receipt_email: boolean;\n /** Set this to true if you have set up your DNS settings to include and spf record for FoxyCart. See the {@link http://wiki.foxycart.com/v/1.1/emails FoxyCart documentation} for more details. */\n use_email_dns: boolean;\n /** If you'd like to configure your own SMTP server for sending transaction receipt emails, you can do so here. The JSON supports the following fields: `username`,`password`,`host`,`port`,`security`. The security value can be blank, `ssl`, or `tls` */\n smtp_config: string | null;\n /** The postal code of your store. This will be used for calculating shipping costs if you sell shippable items. */\n postal_code: string;\n /** The two character code for states in the United States. Other countries may call this a province. When a two character code isn't available, use the full region name. This will be used for calculating shipping costs if you sell shippable items. */\n region: string;\n /** Two character ISO 3166-1-alpha-2 code for the country your store is located in. This will be used for calculating shipping costs if you sell shippable items. */\n country: string;\n /** The locale code for your Store's locale. This will be used to format strings for your store. */\n locale_code: string;\n /** Set to true to prevent the currency symbol from being displayed (example: a points based checkout system). */\n hide_currency_symbol: boolean;\n /** Set to true to prevent the decimal characters from being displayed (example: a points based checkout system). */\n hide_decimal_characters: boolean;\n /** Set true to use the international currency symbol such as USD instead of the regional one like $. */\n use_international_currency_symbol: boolean;\n /** The default language for your store's cart, checkout, and receipt strings. */\n language: string;\n /** A url to your store's logo which may be used in your store's templates. */\n logo_url: string;\n /** The preferred configuration of your customer checkout experience, such as defaulting to guest checkout or requiring account creation with each checkout. */\n checkout_type: string;\n /** Set this to true to POST encrypted XML of your order to the webhook url of your choice. */\n use_webhook: boolean;\n /** This is the url of the webhook endpoint for processing your store's webhook. See the {@link http://wiki.foxycart.com/static/redirect/webhook FoxyCart documentation} for more details. */\n webhook_url: string;\n /** This is the key used to encrypt your webhook data. It is also used as the legacy API key and the HMAC cart encryption key. */\n webhook_key: string;\n /** Set to true to use HMAC cart validation for your store. */\n use_cart_validation: boolean;\n /** Set this to true to redirect to your server before checkout so you can use our single sign on feature and log in your users automatically to FoxyCart or if you want to validate items before checkout. */\n use_single_sign_on: boolean;\n /** This is your single sign on url to redirect your users to prior to hitting the checkout page. See the {@link http://wiki.foxycart.com/static/redirect/sso FoxyCart documentation} for more details. */\n single_sign_on_url: string;\n /** When saving a customer to FoxyCart, this is the password hashing method that will be used. */\n customer_password_hash_type: string;\n /** Configuration settings for the customer_password_hash_type in use. See the {@link http://wiki.foxycart.com/static/redirect/customers FoxyCart documentation} for more details. */\n customer_password_hash_config: string;\n /** Set to true to turn on FoxyCart's multiship functionality for shipping items to multiple locations in a single order. See the {@link http://wiki.foxycart.com/static/redirect/multiship FoxyCart documentation} for more details. */\n features_multiship: boolean;\n /** Set to true to require all front-end add-to-cart interactions have a valid `expires` property. */\n products_require_expires_property: boolean;\n /** If your store sells products which collect personal or sensitive information as product attributes, you may want to consider lowering your cart session lifespan. You can leave it as 0 to keep the default which is currently 43200 seconds (12 hours). The maximum allowed time is currently 259200 seconds (72 hours). */\n app_session_time: number;\n /** Used for determining the type of the customer address used when calculating shipping costs. */\n shipping_address_type: string;\n /** Shipping rate signing ensures that the rate the customer selects is carried through and not altered in any way. If you're intending to make use of javascript snippets on your store to alter the price or label of shipping rates or add custom rates dynamically, disable this setting as it will block those rates from being applied. The default is false. */\n require_signed_shipping_rates: boolean;\n /** The timezone of your store. This will impact how dates are shown to customers and within the FoxyCart admin. */\n timezone: string;\n /** Set a master password here if you would like to be able to check out as your customers without having to know their password. */\n unified_order_entry_password: string;\n /** Instead of displaying the Foxy Transaction ID, you can display your own custom display ID on your store's receipt and receipt emails. This JSON config determines how those display ids will work. The JSON supports the following fields: `enabled`, `start`, `length`, `prefix`, `suffix`. */\n custom_display_id_config: string;\n /** This can only be set during store creation. Contact us if you need this value changed later. */\n affiliate_id: number;\n /** This settings makes your checkout page completely non-functioning. Your customers will see the maintenance notification language string instead. The default is false. */\n is_maintenance_mode: boolean;\n /** If this store is in development or if it has an active FoxyCart subscription and can therefore use a live payment gateway to process live transactions. */\n is_active: boolean;\n /** The date of the first payment for this FoxyCart store subscription. This can be considered the go live date for this store. */\n first_payment_date: string | null;\n /** The date this resource was created. */\n date_created: string | null;\n /** The date this resource was last modified. */\n date_modified: string | null;\n}\n\nexport interface FxUser {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:default_store': Link;\n 'fx:attributes': Link;\n 'fx:stores': Link;\n };\n\n _embedded: Record<string, unknown>;\n\n /** The user's given name. */\n first_name: string;\n /** The user's surname. */\n last_name: string;\n /** The user's email address. This is used as the login to the FoxyCart admin for this user. */\n email: string;\n /** The user's phone number. */\n phone: string;\n /** This can only be set during user creation. Contact us if you need this value changed later. */\n affiliate_id: number;\n /** If this user is a programmer who writes server side code in languages like PHP, .NET, Python, Java, Ruby, etc */\n is_programmer: boolean;\n /** If this user is a front end developer who writes code in things like HTML, CSS, and maybe some JavaScript. */\n is_front_end_developer: boolean;\n /** If this user is a front end designer who works in wireframes, graphic designs, and user interfaces. */\n is_designer: boolean;\n /** If this user is a a merchant or store admin involved in the item and money side of the e-commerce business. */\n is_merchant: boolean;\n /** The date this resource was created. */\n date_created: string;\n /** The date this resource was last modified. */\n date_modified: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"hapi.js","sourceRoot":"","sources":["../../src/types/hapi.ts"],"names":[],"mappings":"","sourcesContent":["interface Link {\n href: string;\n title: string;\n type?: string;\n}\n\ntype Curies = [\n {\n name: string;\n href: string;\n templated: boolean;\n }\n];\n\nexport interface FxAttribute {\n _links: { [key: string]: Link } & {\n curies: Curies;\n self: Link;\n };\n name: string;\n value: string;\n visibility: 'public' | 'private' | 'restricted';\n date_created: string;\n date_modified: string;\n}\n\nexport interface FxCustomerPortalSettings {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:store': Link;\n };\n\n /** If this field is true we get legacy API key or sso key from store and save it in settings. For false value we drop it. */\n sso: boolean;\n /** The date this resource was created. */\n date_created: string;\n /** The date this resource was last modified. */\n date_modified: string;\n /** Shared secret key. */\n jwtSharedSecret: string;\n /** Life span of session in minutes. Maximum 40320 (4 weeks). */\n sessionLifespanInMinutes: number;\n /** An array of domains. No trailing slashes, must be https unless it's localhost. Can accept a port. Allow up to 10 entries. */\n allowedOrigins: string[];\n /** Object which contains \"allowFrequencyModification\" and \"allowNextDateModification\" fields. Subscription modification data. */\n subscriptions: {\n /** An array that contains objects with jsonataQuery and values. Max length 10 (items). */\n allowFrequencyModification: {\n /** A string that should be a valid [JSONata](https://jsonata.org/) query. Max length 200 chars. */\n jsonataQuery: string;\n /** These strings should match the sub_frequency regex sanitization. Max array length 20, max length per string 4 characters. */\n values: string[];\n }[];\n /** We can forbid modify subscription next date. False disables modification, true lifts all constraints, array of objects defines custom rules. */\n allowNextDateModification:\n | boolean\n | {\n /** Beginning of the time period this rule applies to as frequency. Example: `2w` – apply to dates at least 2 weeks from now. */\n min?: string;\n /** End of the time period this rules applies to as frequency. Example: `1y` – apply to dates at most 1 year from now. */\n max?: string;\n /** Subscription selector that should be a valid [JSONata](https://jsonata.org/) query. Max length 200 chars. */\n jsonataQuery: string;\n /** List of dates (YYYY-MM-DD) that customers can't pick as next payment date. */\n disallowedDates?: string[];\n /** A pattern defining the days that will be available for customers to pick as the next payment date. */\n allowedDays?:\n | {\n /** Constraint type. If `day`, then this rule contains days of week only. */\n type: 'day';\n /** Days of week, 1-7, where 1 is Monday and 7 is Sunday. */\n days: number[];\n }\n | {\n /** Constraint type. If `month`, then this rule contains days of month only. */\n type: 'month';\n /** Days of month, 1-31. */\n days: number[];\n };\n }[];\n };\n /** Self-registration settings. Self-registration is disabled if this field is undefined. */\n signUp?: {\n /** If this field is true, then self-registration is enabled. */\n enabled: boolean;\n /** Client verification settings. */\n verification: {\n /** Verification type. Currently only hCaptcha is supported. */\n type: 'hcaptcha';\n /** hCaptcha site key. If empty, Foxy will use its own hCaptcha site key. */\n siteKey: string;\n /** hCaptcha secret key. If empty, Foxy will use its own hCaptcha secret key. */\n secretKey: string;\n };\n };\n}\n\nexport interface FxBookmark {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:property_helpers': Link;\n 'fx:reporting': Link;\n 'fx:encode': Link;\n 'fx:user': Link;\n 'fx:store': Link;\n 'fx:stores': Link;\n 'fx:token': Link;\n };\n\n message: string;\n}\n\nexport interface FxStore {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:attributes': Link;\n 'fx:store_version': Link;\n 'fx:users': Link;\n 'fx:user_accesses': Link;\n 'fx:customers': Link;\n 'fx:carts': Link;\n 'fx:transactions': Link;\n 'fx:subscriptions': Link;\n 'fx:subscription_settings': Link;\n 'fx:item_categories': Link;\n 'fx:taxes': Link;\n 'fx:payment_method_sets': Link;\n 'fx:coupons': Link;\n 'fx:template_sets': Link;\n 'fx:cart_templates': Link;\n 'fx:cart_include_templates': Link;\n 'fx:checkout_templates': Link;\n 'fx:customer_portal_settings': Link;\n 'fx:process_subscription_webhook': Link;\n 'fx:template_configs': Link;\n 'fx:payment_gateways': Link;\n 'fx:payment_methods_expiring': Link;\n 'fx:store_shipping_methods': Link;\n 'fx:receipt_templates': Link;\n 'fx:email_templates': Link;\n 'fx:error_entries': Link;\n 'fx:downloadables': Link;\n 'fx:hosted_payment_gateways': Link;\n 'fx:fraud_protections': Link;\n 'fx:integrations': Link;\n 'fx:native_integrations': Link;\n 'fx:activate_store_monthly_url': Link;\n 'fx:activate_store_yearly_url': Link;\n };\n\n _embedded?: Record<string, unknown> & {\n 'fx:attributes': FxAttribute[];\n };\n\n /** This is the store version for this store. For more details about this version, see the {@link https://api-sandbox.foxycart.com/hal-browser/browser.html#https://api-sandbox.foxycart.com/property_helpers/store_versions store_versions} property helpers which include changelog information. */\n store_version_uri: string;\n /** The name of your store as you'd like it displayed to your customers and our system. */\n store_name: string;\n /** This is a unique FoxyCart subdomain for your cart, checkout, and receipt. If you install a custom SSL certificate, this will contain a full domain such as store.yourdomain.com. */\n store_domain: string;\n /** Set to true when you plan to use a custom SSL certificate. If set to true, your store_domain must be a full domain. */\n use_remote_domain: boolean;\n /** The URL of your online store. */\n store_url: string;\n /** By default, FoxyCart sends customers back to the page referrer after completing a purchase. Instead, you can set a specific URL here. */\n receipt_continue_url: string;\n /** This is the email address of your store. By default, this will be the from address for your store receipts. If you specify a from_email, you can also put in multiple email addresses here, separated by a comma to be used when bcc_on_receipt_email is true. */\n store_email: string;\n /** Used for when you want to specify a different from email than your store's email address or when your store_email has a list of email addresses. */\n from_email: string;\n /** Set this to true if you would like each receipt sent to your customer to also be blind carbon copied to your store's email address. */\n bcc_on_receipt_email: boolean;\n /** Set this to true if you have set up your DNS settings to include and spf record for FoxyCart. See the {@link http://wiki.foxycart.com/v/1.1/emails FoxyCart documentation} for more details. */\n use_email_dns: boolean;\n /** If you'd like to configure your own SMTP server for sending transaction receipt emails, you can do so here. The JSON supports the following fields: `username`,`password`,`host`,`port`,`security`. The security value can be blank, `ssl`, or `tls` */\n smtp_config: string | null;\n /** The postal code of your store. This will be used for calculating shipping costs if you sell shippable items. */\n postal_code: string;\n /** The two character code for states in the United States. Other countries may call this a province. When a two character code isn't available, use the full region name. This will be used for calculating shipping costs if you sell shippable items. */\n region: string;\n /** Two character ISO 3166-1-alpha-2 code for the country your store is located in. This will be used for calculating shipping costs if you sell shippable items. */\n country: string;\n /** The locale code for your Store's locale. This will be used to format strings for your store. */\n locale_code: string;\n /** Set to true to prevent the currency symbol from being displayed (example: a points based checkout system). */\n hide_currency_symbol: boolean;\n /** Set to true to prevent the decimal characters from being displayed (example: a points based checkout system). */\n hide_decimal_characters: boolean;\n /** Set true to use the international currency symbol such as USD instead of the regional one like $. */\n use_international_currency_symbol: boolean;\n /** The default language for your store's cart, checkout, and receipt strings. */\n language: string;\n /** A url to your store's logo which may be used in your store's templates. */\n logo_url: string;\n /** The preferred configuration of your customer checkout experience, such as defaulting to guest checkout or requiring account creation with each checkout. */\n checkout_type: string;\n /** Set this to true to POST encrypted XML of your order to the webhook url of your choice. */\n use_webhook: boolean;\n /** This is the url of the webhook endpoint for processing your store's webhook. See the {@link http://wiki.foxycart.com/static/redirect/webhook FoxyCart documentation} for more details. */\n webhook_url: string;\n /** This is the key used to encrypt your webhook data. It is also used as the legacy API key and the HMAC cart encryption key. */\n webhook_key: string;\n /** Set to true to use HMAC cart validation for your store. */\n use_cart_validation: boolean;\n /** Set this to true to redirect to your server before checkout so you can use our single sign on feature and log in your users automatically to FoxyCart or if you want to validate items before checkout. */\n use_single_sign_on: boolean;\n /** This is your single sign on url to redirect your users to prior to hitting the checkout page. See the {@link http://wiki.foxycart.com/static/redirect/sso FoxyCart documentation} for more details. */\n single_sign_on_url: string;\n /** When saving a customer to FoxyCart, this is the password hashing method that will be used. */\n customer_password_hash_type: string;\n /** Configuration settings for the customer_password_hash_type in use. See the {@link http://wiki.foxycart.com/static/redirect/customers FoxyCart documentation} for more details. */\n customer_password_hash_config: string;\n /** Set to true to turn on FoxyCart's multiship functionality for shipping items to multiple locations in a single order. See the {@link http://wiki.foxycart.com/static/redirect/multiship FoxyCart documentation} for more details. */\n features_multiship: boolean;\n /** Set to true to require all front-end add-to-cart interactions have a valid `expires` property. */\n products_require_expires_property: boolean;\n /** If your store sells products which collect personal or sensitive information as product attributes, you may want to consider lowering your cart session lifespan. You can leave it as 0 to keep the default which is currently 43200 seconds (12 hours). The maximum allowed time is currently 259200 seconds (72 hours). */\n app_session_time: number;\n /** Used for determining the type of the customer address used when calculating shipping costs. */\n shipping_address_type: string;\n /** Shipping rate signing ensures that the rate the customer selects is carried through and not altered in any way. If you're intending to make use of javascript snippets on your store to alter the price or label of shipping rates or add custom rates dynamically, disable this setting as it will block those rates from being applied. The default is false. */\n require_signed_shipping_rates: boolean;\n /** The maximum weight of a single package when requesting live shipping rates. If the combined weight of the shippable items in an order exceeds this value, the order is split into multiple packages when calculating shipping rates. Set to 0 to treat the order as a single package. */\n package_weight_max: number;\n /** The timezone of your store. This will impact how dates are shown to customers and within the FoxyCart admin. */\n timezone: string;\n /** Set a master password here if you would like to be able to check out as your customers without having to know their password. */\n unified_order_entry_password: string;\n /** Instead of displaying the Foxy Transaction ID, you can display your own custom display ID on your store's receipt and receipt emails. This JSON config determines how those display ids will work. The JSON supports the following fields: `enabled`, `start`, `length`, `prefix`, `suffix`. */\n custom_display_id_config: string;\n /** This can only be set during store creation. Contact us if you need this value changed later. */\n affiliate_id: number;\n /** This settings makes your checkout page completely non-functioning. Your customers will see the maintenance notification language string instead. The default is false. */\n is_maintenance_mode: boolean;\n /** If this store is in development or if it has an active FoxyCart subscription and can therefore use a live payment gateway to process live transactions. */\n is_active: boolean;\n /** The date of the first payment for this FoxyCart store subscription. This can be considered the go live date for this store. */\n first_payment_date: string | null;\n /** The date this resource was created. */\n date_created: string | null;\n /** The date this resource was last modified. */\n date_modified: string | null;\n}\n\nexport interface FxUser {\n _links: {\n 'curies': Curies;\n 'self': Link;\n 'fx:default_store': Link;\n 'fx:attributes': Link;\n 'fx:stores': Link;\n };\n\n _embedded: Record<string, unknown>;\n\n /** The user's given name. */\n first_name: string;\n /** The user's surname. */\n last_name: string;\n /** The user's email address. This is used as the login to the FoxyCart admin for this user. */\n email: string;\n /** The user's phone number. */\n phone: string;\n /** This can only be set during user creation. Contact us if you need this value changed later. */\n affiliate_id: number;\n /** If this user is a programmer who writes server side code in languages like PHP, .NET, Python, Java, Ruby, etc */\n is_programmer: boolean;\n /** If this user is a front end developer who writes code in things like HTML, CSS, and maybe some JavaScript. */\n is_front_end_developer: boolean;\n /** If this user is a front end designer who works in wireframes, graphic designs, and user interfaces. */\n is_designer: boolean;\n /** If this user is a a merchant or store admin involved in the item and money side of the e-commerce business. */\n is_merchant: boolean;\n /** The date this resource was created. */\n date_created: string;\n /** The date this resource was last modified. */\n date_modified: string;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxy.io/elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.58.0",
|
|
5
5
|
"description": "E-commerce web components by Foxy.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prepack": "npm run lint && rimraf dist && node ./.build/compile-for-npm.js && rollup -c"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@foxy.io/sdk": "^1.
|
|
32
|
+
"@foxy.io/sdk": "^1.19.0",
|
|
33
33
|
"@open-wc/lit-helpers": "^0.3.12",
|
|
34
34
|
"@open-wc/scoped-elements": "^1.2.1",
|
|
35
35
|
"@polymer/iron-icons": "^3.0.1",
|