@beabee/beabee-common 0.21.0-alpha.2 → 0.21.0-alpha.3
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/browser/beabee-common.js +26 -0
- package/dist/browser/beabee-common.js.map +4 -4
- package/dist/browser/beabee-common.min.js +1 -1
- package/dist/browser/index.js +26 -0
- package/dist/cjs/data/callout-access.cjs +34 -0
- package/dist/cjs/data/callout-captcha.cjs +33 -0
- package/dist/cjs/data/callout-channel.cjs +31 -0
- package/dist/cjs/data/index.cjs +6 -0
- package/dist/cjs/types/callout-variant-data.cjs +16 -0
- package/dist/cjs/types/callout-variant-navigation-data.cjs +16 -0
- package/dist/cjs/types/index.cjs +4 -0
- package/dist/esm/data/callout-access.js +10 -0
- package/dist/esm/data/callout-captcha.js +9 -0
- package/dist/esm/data/callout-channel.js +7 -0
- package/dist/esm/data/index.js +3 -0
- package/dist/esm/types/callout-variant-data.js +0 -0
- package/dist/esm/types/callout-variant-navigation-data.js +0 -0
- package/dist/esm/types/index.js +2 -0
- package/dist/types/data/callout-access.d.ts +6 -0
- package/dist/types/data/callout-captcha.d.ts +5 -0
- package/dist/types/data/callout-channel.d.ts +3 -0
- package/dist/types/data/content-ids.d.ts +1 -1
- package/dist/types/data/index.d.ts +3 -0
- package/dist/types/types/callout-data.d.ts +6 -4
- package/dist/types/types/callout-variant-data.d.ts +13 -0
- package/dist/types/types/callout-variant-navigation-data.d.ts +5 -0
- package/dist/types/types/create-callout-data.d.ts +5 -4
- package/dist/types/types/get-callout-data.d.ts +3 -0
- package/dist/types/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var ne=Object.defineProperty;var re=(t,e)=>{for(var o in e)ne(t,o,{get:e[o],enumerable:!0})};var gt={};re(gt,{CalloutComponentBaseType:()=>O,CalloutComponentType:()=>f,ContributionPeriod:()=>S,ContributionType:()=>v,InvalidRule:()=>c,ItemStatus:()=>P,MembershipStatus:()=>It,NewsletterStatus:()=>Y,PaymentMethod:()=>j,PaymentStatus:()=>G,RoleTypes:()=>Tt,apiKeyFilters:()=>le,calcPaymentFee:()=>no,calloutComponentContentValidator:()=>lt,calloutComponentInputAddressValidator:()=>it,calloutComponentInputCheckboxValidator:()=>pt,calloutComponentInputCurrencyValidator:()=>ut,calloutComponentInputDateTimeValidator:()=>mt,calloutComponentInputEmailValidator:()=>ct,calloutComponentInputFileValidator:()=>ft,calloutComponentInputNumberValidator:()=>dt,calloutComponentInputPhoneNumberValidator:()=>Ct,calloutComponentInputSelectValidator:()=>yt,calloutComponentInputSelectableTypes:()=>b,calloutComponentInputSelectableValidator:()=>L,calloutComponentInputSignatureValidator:()=>xt,calloutComponentInputTextTypes:()=>g,calloutComponentInputTextValidator:()=>k,calloutComponentInputTimeValidator:()=>ht,calloutComponentInputTypes:()=>I,calloutComponentInputUrlValidator:()=>bt,calloutComponentInputValidator:()=>ee,calloutComponentNestableTypes:()=>T,calloutComponentNestableValidator:()=>te,calloutComponentTypes:()=>ae,calloutComponentValidator:()=>oe,calloutFilters:()=>ie,calloutResponseCommentFilters:()=>ue,calloutResponseFilters:()=>pe,calloutTagFilters:()=>me,contactCalloutFilters:()=>fe,contactFilters:()=>ce,contentIds:()=>se,dateUnitMap:()=>Xt,dateUnits:()=>Kt,filterComponents:()=>Et,flattenComponents:()=>K,getCalloutComponents:()=>Dt,getCalloutFilters:()=>Ie,getMinDateUnit:()=>Zt,isAddressAnswer:()=>Ut,isAmountOfMoney:()=>J,isAngle:()=>Z,isCalloutComponentOfBaseType:()=>C,isCalloutComponentOfType:()=>y,isDateBetween:()=>st,isEmail:()=>q,isFileUploadAnswer:()=>F,isLngLat:()=>Pt,isMapBounds:()=>Ne,isNumber:()=>E,isNumberInRange:()=>Q,isPassword:()=>Ee,isPeriod:()=>Ft,isPhoneNumber:()=>D,isRuleGroup:()=>qt,isSlug:()=>De,isTextInRange:()=>tt,isTextInWordRange:()=>et,isType:()=>Ue,isURL:()=>N,isValidDate:()=>V,isValidPayFee:()=>_e,noticeFilters:()=>de,nullableOperators:()=>z,operatorsByType:()=>At,operatorsByTypeMap:()=>$,parseDate:()=>to,paymentFilters:()=>xe,ruleOperators:()=>ye,segmentFilters:()=>he,slug:()=>W,stringifyAnswer:()=>_t,toBytes:()=>Re,toPhoneNumber:()=>we,validateRule:()=>Jt,validateRuleGroup:()=>Qt});var O=(a=>(a[a.CONTENT=0]="CONTENT",a[a.INPUT=1]="INPUT",a[a.INPUT_TEXT=2]="INPUT_TEXT",a[a.INPUT_SELECTABLE=3]="INPUT_SELECTABLE",a[a.NESTABLE=4]="NESTABLE",a))(O||{});var f=(u=>(u.CONTENT="content",u.INPUT_ADDRESS="address",u.INPUT_CHECKBOX="checkbox",u.INPUT_CURRENCY="currency",u.INPUT_DATE_TIME="datetime",u.INPUT_EMAIL="email",u.INPUT_FILE="file",u.INPUT_NUMBER="number",u.INPUT_PHONE_NUMBER="phoneNumber",u.INPUT_SELECT="select",u.INPUT_SELECTABLE_RADIO="radio",u.INPUT_SELECTABLE_SELECTBOXES="selectboxes",u.INPUT_SIGNATURE="signature",u.INPUT_TEXT_AREA="textarea",u.INPUT_TEXT_FIELD="textfield",u.INPUT_TIME="time",u.INPUT_URL="url",u.NESTABLE_PANEL="panel",u.NESTABLE_TABS="tabs",u.NESTABLE_WELL="well",u))(f||{});var b=["radio","selectboxes"];var g=["textarea","textfield"];var I=[...b,...g,"address","checkbox","currency","datetime","email","file","number","phoneNumber","select","signature","time","url"];var T=["panel","well","tabs"];var ae=[...T,...I,"content"];var se=["contacts","email","general","join","join/setup","profile","share","payment","telegram"];var S=(o=>(o.Monthly="monthly",o.Annually="annually",o))(S||{});var v=(r=>(r.Automatic="Automatic",r.Manual="Manual",r.Gift="Gift",r.None="None",r))(v||{});var P=(r=>(r.Draft="draft",r.Scheduled="scheduled",r.Open="open",r.Ended="ended",r))(P||{});var It=(r=>(r.Active="active",r.Expiring="expiring",r.Expired="expired",r.None="none",r))(It||{});var Y=(a=>(a.Subscribed="subscribed",a.Unsubscribed="unsubscribed",a.Cleaned="cleaned",a.Pending="pending",a.None="none",a))(Y||{});var j=(a=>(a.StripeCard="s_card",a.StripeSEPA="s_sepa",a.StripeBACS="s_bacs",a.StripePayPal="s_paypal",a.GoCardlessDirectDebit="gc_direct-debit",a))(j||{});var G=(r=>(r.Pending="pending",r.Successful="successful",r.Failed="failed",r.Cancelled="cancelled",r))(G||{});var c=class t extends Error{constructor(o,n){super();this.rule=o;this.message=n;Object.setPrototypeOf(this,t.prototype)}};var le={id:{type:"text"},createdAt:{type:"date"}};var ie={id:{type:"text"},slug:{type:"text"},title:{type:"text"},status:{type:"enum",options:["draft","scheduled","open","ended"]},answeredBy:{type:"contact"},starts:{type:"date",nullable:!0},expires:{type:"date",nullable:!0},hidden:{type:"boolean"}},pe={id:{type:"text"},contact:{type:"contact",nullable:!0},calloutId:{type:"text"},createdAt:{type:"date"},updatedAt:{type:"date"},bucket:{type:"text",nullable:!0},tags:{type:"array"},assignee:{type:"contact",nullable:!0},answers:{type:"blob"}},ue={id:{type:"text"},responseId:{type:"text"},contact:{type:"contact"},createdAt:{type:"date"},updatedAt:{type:"date"},text:{type:"text"}},me={id:{type:"text"},name:{type:"text"},description:{type:"text"},calloutId:{type:"text"}};var Tt=["member","admin","superadmin"],ce={id:{type:"contact"},firstname:{type:"text"},lastname:{type:"text"},email:{type:"text"},joined:{type:"date"},lastSeen:{type:"date"},contributionCancelled:{type:"date",nullable:!0},contributionType:{type:"enum",options:["Automatic","Gift","Manual","None"]},contributionMonthlyAmount:{type:"number"},contributionPeriod:{type:"enum",options:["monthly","annually"]},deliveryOptIn:{type:"boolean"},newsletterStatus:{type:"enum",options:["subscribed","unsubscribed","cleaned","pending","none"]},activePermission:{type:"enum",options:Tt},activeMembership:{type:"boolean"},membershipStarts:{type:"date"},membershipExpires:{type:"date"},manualPaymentSource:{type:"text",nullable:!0},tags:{type:"array",nullable:!0}},fe={hasAnswered:{type:"boolean"}};var de={id:{type:"text"},createdAt:{type:"date"},updatedAt:{type:"date"},name:{type:"text"},expires:{type:"date",nullable:!0},enabled:{type:"boolean"},text:{type:"text"},status:{type:"enum",options:["draft","scheduled","open","ended"]}};var A={equal:{args:1},not_equal:{args:1}},Ce={begins_with:{args:1},ends_with:{args:1},not_begins_with:{args:1},not_ends_with:{args:1}},St={...A,between:{args:2},not_between:{args:2},less:{args:1},greater:{args:1},less_or_equal:{args:1},greater_or_equal:{args:1}},H={contains:{args:1},not_contains:{args:1}},z={is_empty:{args:0},is_not_empty:{args:0}},At={text:{...A,...H,...Ce},blob:H,date:St,number:St,boolean:{equal:A.equal},array:H,enum:A,contact:A},$=At,ye=["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty"];var xe={id:{type:"text"},contact:{type:"contact"},chargeDate:{type:"date"},amount:{type:"number"},status:{type:"enum",options:["successful","pending","failed","cancelled"]}};var he={id:{type:"text"},name:{type:"text"},description:{type:"text"}};function be(t){return t.map(({value:e})=>e)}function ge(t){let e={label:t.label||t.fullKey,nullable:!0};return y(t,"checkbox")?{...e,type:"boolean",nullable:!1}:y(t,"number")?{...e,type:"number"}:y(t,"select")?{...e,type:"enum",options:be(t.data.values)}:y(t,"textarea")?{...e,type:"blob"}:{...e,type:"text"}}function Nt(t,e){return C(t,3)?t.values.find(o=>o.value===e)?.label||e:y(t,"select")&&t.data.values.find(o=>o.value===e)?.label||e}function y(t,e){return"type"in t&&t.type===e}function C(t,e){return"type"in t?e===0?y(t,"content"):e===1?I.includes(t.type):e===2?g.includes(t.type):e===3?b.includes(t.type):e===4?T.includes(t.type):!1:!1}function K(t){return t.flatMap(e=>C(e,4)?[e,...K(e.components)]:[e])}function Et(t,e){return t.filter(e).map(o=>({...o,...C(o,4)&&{components:Et(o.components,e)}}))}function Dt(t){return t.slides.flatMap(e=>K(e.components).map(o=>({...o,slideId:e.id,fullKey:`${e.id}.${o.key}`})))}function Ie(t){let e=Dt(t).filter(o=>o.input).map(o=>[`answers.${o.fullKey}`,ge(o)]);return Object.fromEntries(e)}function Ut(t){return!!t&&typeof t=="object"&&"geometry"in t}function F(t){return!!t&&typeof t=="object"&&"url"in t}function _t(t,e){return Array.isArray(e)?e.map(o=>_t(t,o)).join(", "):e?Ut(e)?e.geometry.location.lat+", "+e.geometry.location.lng:F(e)?e.url:typeof e=="object"?Object.entries(e).filter(([,o])=>o).map(([o])=>Nt(t,o)).join(", "):typeof e=="string"?Nt(t,e):e.toString():""}function Te(t,e){let o=t.charCodeAt(e);if(isNaN(o))throw new RangeError("Index "+e+' out of range for string "'+t+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(o<55296||o>57343)return[t.charAt(e),e];if(o>=55296&&o<=56319){if(t.length<=e+1)return[" ",e];let r=t.charCodeAt(e+1);return r<56320||r>57343?[" ",e]:[t.charAt(e)+t.charAt(e+1),e+1]}if(e===0)return[" ",e];let n=t.charCodeAt(e-1);if(n<55296||n>56319)return[" ",e];throw new Error('String "'+t+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}function Se(t){return btoa(unescape(encodeURIComponent(t)))}function W(t,e){let o=wt(t,e);if((e&&e.fallback!==void 0?e.fallback:X.fallback)===!0&&o===""){let r="";for(let a=0;a<t.length;a++){let p=Te(t,a);a=p[1],r+=p[0]}o=wt(Se(r),e)}return o}var Ae={bg:{\u0419:"Y",\u0439:"y",X:"H",x:"h",\u0426:"Ts",\u0446:"ts",\u0429:"Sht",\u0449:"sht",\u042A:"A",\u044A:"a",\u042C:"Y",\u044C:"y"},de:{\u00C4:"AE",\u00E4:"ae",\u00D6:"OE",\u00F6:"oe",\u00DC:"UE",\u00FC:"ue"},sr:{\u0111:"dj",\u0110:"DJ"},uk:{\u0418:"Y",\u0438:"y",\u0419:"Y",\u0439:"y",\u0426:"Ts",\u0446:"ts",\u0425:"Kh",\u0445:"kh",\u0429:"Shch",\u0449:"shch",\u0413:"H",\u0433:"h"}};function wt(t,e){let o=e?.mode||X.mode,n={...X.modes[o],...e},r=!!n.locale&&Ae[n.locale]||{},a=[];for(let s in n.multicharmap){if(!Object.prototype.hasOwnProperty.call(n.multicharmap,s))continue;let i=s.length;a.indexOf(i)===-1&&a.push(i)}a=a.sort(function(s,i){return i-s});let p=n.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/,l="";for(let s,i=0,x=t.length;i<x;i++){s=t[i];let w=!1;for(let h=0;h<a.length;h++){let B=a[h],R=t.substr(i,B);if(n.multicharmap[R]){i+=B-1,s=n.multicharmap[R],w=!0;break}}w||(r[s]?s=r[s]:n.charmap[s]?s=n.charmap[s].replace(n.replacement," "):s.includes(n.replacement)?s=s.replace(n.replacement," "):s=s.replace(p,"")),l+=s}return n.remove&&(l=l.replace(n.remove,"")),n.trim&&(l=l.trim()),l=l.replace(/\s+/g,n.replacement),n.lower&&(l=l.toLowerCase()),l}var Rt={\u092B\u093C:"Fi",\u0917\u093C:"Ghi",\u0916\u093C:"Khi",\u0915\u093C:"Qi",\u0921\u093C:"ugDha",\u0922\u093C:"ugDhha",\u092F\u093C:"Yi",\u091C\u093C:"Za",\u05D1\u05B4\u05D9:"i",\u05D1\u05B5:"e",\u05D1\u05B5\u05D9:"e",\u05D1\u05B6:"e",\u05D1\u05B7:"a",\u05D1\u05B8:"a",\u05D1\u05B9:"o",\u05D5\u05B9:"o",\u05D1\u05BB:"u",\u05D5\u05BC:"u",\u05D1\u05BC:"b",\u05DB\u05BC:"k",\u05DA\u05BC:"k",\u05E4\u05BC:"p",\u05E9\u05C1:"sh",\u05E9\u05C2:"s",\u05D1\u05B0:"e",\u05D7\u05B1:"e",\u05D7\u05B2:"a",\u05D7\u05B3:"o",\u05D1\u05B4:"i"},Ot={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00C6:"AE",\u00C7:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u0150:"O",\u00D8:"O",\u014C:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u0170:"U",\u00DD:"Y",\u00DE:"TH",\u00DF:"ss",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00E6:"ae",\u00E7:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u0151:"o",\u00F8:"o",\u014D:"o",\u0152:"OE",\u0153:"oe",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u0171:"u",\u00FD:"y",\u00FE:"th",\u00FF:"y","\u1E9E":"SS",\u03B1:"a",\u03B2:"b",\u03B3:"g",\u03B4:"d",\u03B5:"e",\u03B6:"z",\u03B7:"h",\u03B8:"th",\u03B9:"i",\u03BA:"k",\u03BB:"l",\u03BC:"m",\u03BD:"n",\u03BE:"3",\u03BF:"o",\u03C0:"p",\u03C1:"r",\u03C3:"s",\u03C4:"t",\u03C5:"y",\u03C6:"f",\u03C7:"x",\u03C8:"ps",\u03C9:"w",\u03AC:"a",\u03AD:"e",\u03AF:"i",\u03CC:"o",\u03CD:"y",\u03AE:"h",\u03CE:"w",\u03C2:"s",\u03CA:"i",\u03B0:"y",\u03CB:"y",\u0390:"i",\u0391:"A",\u0392:"B",\u0393:"G",\u0394:"D",\u0395:"E",\u0396:"Z",\u0397:"H",\u0398:"Th",\u0399:"I",\u039A:"K",\u039B:"L",\u039C:"M",\u039D:"N",\u039E:"3",\u039F:"O",\u03A0:"P",\u03A1:"R",\u03A3:"S",\u03A4:"T",\u03A5:"Y",\u03A6:"F",\u03A7:"X",\u03A8:"PS",\u03A9:"W",\u0386:"A",\u0388:"E",\u038A:"I",\u038C:"O",\u038E:"Y",\u0389:"H",\u038F:"W",\u03AA:"I",\u03AB:"Y",\u015F:"s",\u015E:"S",\u0131:"i",\u0130:"I",\u011F:"g",\u011E:"G",\u0430:"a",\u0431:"b",\u0432:"v",\u0433:"g",\u0434:"d",\u0435:"e",\u0451:"yo",\u0436:"zh",\u0437:"z",\u0438:"i",\u0439:"j",\u043A:"k",\u043B:"l",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"p",\u0440:"r",\u0441:"s",\u0442:"t",\u0443:"u",\u0444:"f",\u0445:"h",\u0446:"c",\u0447:"ch",\u0448:"sh",\u0449:"sh",\u044A:"u",\u044B:"y",\u044C:"",\u044D:"e",\u044E:"yu",\u044F:"ya",\u0410:"A",\u0411:"B",\u0412:"V",\u0413:"G",\u0414:"D",\u0415:"E",\u0401:"Yo",\u0416:"Zh",\u0417:"Z",\u0418:"I",\u0419:"J",\u041A:"K",\u041B:"L",\u041C:"M",\u041D:"N",\u041E:"O",\u041F:"P",\u0420:"R",\u0421:"S",\u0422:"T",\u0423:"U",\u0424:"F",\u0425:"H",\u0426:"C",\u0427:"Ch",\u0428:"Sh",\u0429:"Sh",\u042A:"U",\u042B:"Y",\u042C:"",\u042D:"E",\u042E:"Yu",\u042F:"Ya",\u0404:"Ye",\u0406:"I",\u0407:"Yi",\u0490:"G",\u0454:"ye",\u0456:"i",\u0457:"yi",\u0491:"g",\u010D:"c",\u010F:"d",\u011B:"e",\u0148:"n",\u0159:"r",\u0161:"s",\u0165:"t",\u016F:"u",\u017E:"z",\u010C:"C",\u010E:"D",\u011A:"E",\u0147:"N",\u0158:"R",\u0160:"S",\u0164:"T",\u016E:"U",\u017D:"Z",\u013E:"l",\u013A:"l",\u0155:"r",\u013D:"L",\u0139:"L",\u0154:"R",\u0105:"a",\u0107:"c",\u0119:"e",\u0142:"l",\u0144:"n",\u015B:"s",\u017A:"z",\u017C:"z",\u0104:"A",\u0106:"C",\u0118:"E",\u0141:"L",\u0143:"N",\u015A:"S",\u0179:"Z",\u017B:"Z",\u0101:"a",\u0113:"e",\u0123:"g",\u012B:"i",\u0137:"k",\u013C:"l",\u0146:"n",\u016B:"u",\u0100:"A",\u0112:"E",\u0122:"G",\u012A:"I",\u0136:"K",\u013B:"L",\u0145:"N",\u016A:"U",\u0623:"a",\u0625:"i",\u0628:"b",\u062A:"t",\u062B:"th",\u062C:"g",\u062D:"h",\u062E:"kh",\u062F:"d",\u0630:"th",\u0631:"r",\u0632:"z",\u0633:"s",\u0634:"sh",\u0635:"s",\u0636:"d",\u0637:"t",\u0638:"th",\u0639:"aa",\u063A:"gh",\u0641:"f",\u0642:"k",\u0643:"k",\u0644:"l",\u0645:"m",\u0646:"n",\u0647:"h",\u0648:"o",\u064A:"y",\u0621:"aa",\u0629:"a",\u0622:"a",\u0627:"a",\u067E:"p",\u0698:"zh",\u06AF:"g",\u0686:"ch",\u06A9:"k",\u06CC:"i",\u0117:"e",\u012F:"i",\u0173:"u",\u0116:"E",\u012E:"I",\u0172:"U",\u021B:"t",\u021A:"T",\u0163:"t",\u0162:"T",\u0219:"s",\u0218:"S",\u0103:"a",\u0102:"A",\u1EA0:"A",\u1EA2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAC:"A",\u1EA8:"A",\u1EAA:"A",\u1EB0:"A",\u1EAE:"A",\u1EB6:"A",\u1EB2:"A",\u1EB4:"A",\u1EB8:"E",\u1EBA:"E",\u1EBC:"E",\u1EC0:"E",\u1EBE:"E",\u1EC6:"E",\u1EC2:"E",\u1EC4:"E",\u1ECA:"I",\u1EC8:"I",\u0128:"I",\u1ECC:"O",\u1ECE:"O",\u1ED2:"O",\u1ED0:"O",\u1ED8:"O",\u1ED4:"O",\u1ED6:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE2:"O",\u1EDE:"O",\u1EE0:"O",\u1EE4:"U",\u1EE6:"U",\u0168:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EF0:"U",\u1EEC:"U",\u1EEE:"U",\u1EF2:"Y",\u1EF4:"Y",\u1EF6:"Y",\u1EF8:"Y",\u0110:"D",\u1EA1:"a",\u1EA3:"a",\u1EA7:"a",\u1EA5:"a",\u1EAD:"a",\u1EA9:"a",\u1EAB:"a",\u1EB1:"a",\u1EAF:"a",\u1EB7:"a",\u1EB3:"a",\u1EB5:"a",\u1EB9:"e",\u1EBB:"e",\u1EBD:"e",\u1EC1:"e",\u1EBF:"e",\u1EC7:"e",\u1EC3:"e",\u1EC5:"e",\u1ECB:"i",\u1EC9:"i",\u0129:"i",\u1ECD:"o",\u1ECF:"o",\u1ED3:"o",\u1ED1:"o",\u1ED9:"o",\u1ED5:"o",\u1ED7:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE3:"o",\u1EDF:"o",\u1EE1:"o",\u1EE5:"u",\u1EE7:"u",\u0169:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EF1:"u",\u1EED:"u",\u1EEF:"u",\u1EF3:"y",\u1EF5:"y",\u1EF7:"y",\u1EF9:"y",\u0111:"d",\u04D8:"AE",\u04D9:"ae",\u0492:"GH",\u0493:"gh",\u049A:"KH",\u049B:"kh",\u04A2:"NG",\u04A3:"ng",\u04AE:"UE",\u04AF:"ue",\u04B0:"U",\u04B1:"u",\u04BA:"H",\u04BB:"h",\u04E8:"OE",\u04E9:"oe",\u0452:"dj",\u0458:"j",\u0459:"lj",\u045A:"nj",\u045B:"c",\u045F:"dz",\u0402:"Dj",\u0408:"j",\u0409:"Lj",\u040A:"Nj",\u040B:"C",\u040F:"Dz",\u01CC:"nj",\u01C9:"lj",\u01CB:"NJ",\u01C8:"LJ",\u0905:"a",\u0906:"aa",\u090F:"e",\u0908:"ii",\u090D:"ei",\u090E:"ae",\u0910:"ai",\u0907:"i",\u0913:"o",\u0911:"oi",\u0912:"oii",\u090A:"uu",\u0914:"ou",\u0909:"u",\u092C:"B",\u092D:"Bha",\u091A:"Ca",\u091B:"Chha",\u0921:"Da",\u0922:"Dha",\u092B:"Fa",\u0917:"Ga",\u0918:"Gha",\u0917\u093C:"Ghi",\u0939:"Ha",\u091C:"Ja",\u091D:"Jha",\u0915:"Ka",\u0916:"Kha",\u0916\u093C:"Khi",\u0932:"L",\u0933:"Li",\u090C:"Li",\u0934:"Lii",\u0961:"Lii",\u092E:"Ma",\u0928:"Na",\u0919:"Na",\u091E:"Nia",\u0923:"Nae",\u0929:"Ni",\u0950:"oms",\u092A:"Pa",\u0915\u093C:"Qi",\u0930:"Ra",\u090B:"Ri",\u0960:"Ri",\u0931:"Ri",\u0938:"Sa",\u0936:"Sha",\u0937:"Shha",\u091F:"Ta",\u0924:"Ta",\u0920:"Tha",\u0926:"Tha",\u0925:"Tha",\u0927:"Thha",\u0921\u093C:"ugDha",\u0922\u093C:"ugDhha",\u0935:"Va",\u092F:"Ya",\u092F\u093C:"Yi",\u091C\u093C:"Za",\u0259:"e",\u018F:"E",\u10D0:"a",\u10D1:"b",\u10D2:"g",\u10D3:"d",\u10D4:"e",\u10D5:"v",\u10D6:"z",\u10D7:"t",\u10D8:"i",\u10D9:"k",\u10DA:"l",\u10DB:"m",\u10DC:"n",\u10DD:"o",\u10DE:"p",\u10DF:"zh",\u10E0:"r",\u10E1:"s",\u10E2:"t",\u10E3:"u",\u10E4:"p",\u10E5:"k",\u10E6:"gh",\u10E7:"q",\u10E8:"sh",\u10E9:"ch",\u10EA:"ts",\u10EB:"dz",\u10EC:"ts",\u10ED:"ch",\u10EE:"kh",\u10EF:"j",\u10F0:"h",\u05D1:"v",\u05D2\u05BC:"g",\u05D2:"g",\u05D3:"d",\u05D3\u05BC:"d",\u05D4:"h",\u05D5:"v",\u05D6:"z",\u05D7:"h",\u05D8:"t",\u05D9:"y",\u05DB:"kh",\u05DA:"kh",\u05DC:"l",\u05DE:"m",\u05DD:"m",\u05E0:"n",\u05DF:"n",\u05E1:"s",\u05E4:"f",\u05E3:"f",\u05E5:"ts",\u05E6:"ts",\u05E7:"k",\u05E8:"r",\u05EA\u05BC:"t",\u05EA:"t"},X={locale:"",mode:"pretty",fallback:!0,modes:{rfc3986:{replacement:"-",lower:!0,charmap:Ot,multicharmap:Rt,remove:null,trim:!0},pretty:{replacement:"-",lower:!0,charmap:Ot,multicharmap:Rt,remove:null,trim:!0}}};var Z=(t,e=180)=>typeof t=="number"&&t>=e*-1&&t<=e,q=t=>typeof t!="string"||t.length===0?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),Pt=t=>{if(!Array.isArray(t)||t.length!==2)return!1;let[e,o]=t;return!(!Z(e,180)||!Z(o,90))},Ne=t=>Array.isArray(t)&&t.length===2&&t.every(Pt),Ee=t=>typeof t=="string"&&t.length>=8&&/[a-z]/.test(t)&&/[A-Z]/.test(t)&&/[0-9]/.test(t),Ft=t=>t==="monthly"||t==="annually",De=t=>typeof t=="string"&&t===W(t);function Ue(t,e){return t.includes(typeof e)}var N=t=>typeof t!="string"||!t.length?!1:/^(https?:\/\/)([\da-z\-]+\.)+[a-z]{2,6}(:[0-9]{1,5})?([\/\w \.-]*)*\/?(\?[a-zA-Z0-9=&]*)?$/.test(t),E=t=>typeof t=="number"&&!isNaN(t),J=t=>{if(!E(t)||t<0)return!1;let e=t.toString().split(".")[1];return!(e&&e.length>2)},D=t=>typeof t!="string"||!t.length||t.length>15||t.length<5?!1:/^(\+?[0-9])\d*$/.test(t),_e=(t,e,o)=>!(typeof t!="boolean"||typeof e!="number"||!Ft(o)||t&&o==="annually"||!t&&o==="monthly"&&e===1),Q=(t,e,o)=>!(!E(t)||typeof e=="number"&&t<e||typeof o=="number"&&t>o),tt=(t,e=0,o)=>!(typeof t!="string"||typeof e=="number"&&t.length<e||typeof o=="number"&&t.length>o),et=(t,e=0,o)=>{if(typeof t!="string")return!1;let n=t.length>0?t.split(" "):[];return!(typeof e=="number"&&n.length<e||typeof o=="number"&&n.length>o)};var we=t=>{if(typeof t!="string"||!t.length)return!1;let e=t.replace(/(?!^\+)\D/g,"");return D(e)?e:!1},Re=t=>{if(typeof t!="string"||!t.length)return null;let e=t.toLowerCase(),o=["b","kb","mb","gb","tb","pb","eb","zb","yb"],[,n,r]=e.match(/(\d+)(\w+)/),a=o.indexOf(r.toLowerCase());return a===-1?null:Number(n)*Math.pow(1024,a)};function m(t){let e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function d(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function Mt(t,e){let o=m(t);return isNaN(e)?d(t,NaN):(e&&o.setDate(o.getDate()+e),o)}function Vt(t,e){let o=m(t);if(isNaN(e))return d(t,NaN);if(!e)return o;let n=o.getDate(),r=d(t,o.getTime());r.setMonth(o.getMonth()+e+1,0);let a=r.getDate();return n>=a?r:(o.setFullYear(r.getFullYear(),r.getMonth(),n),o)}function Lt(t,e){let{years:o=0,months:n=0,weeks:r=0,days:a=0,hours:p=0,minutes:l=0,seconds:s=0}=e,i=m(t),x=n||o?Vt(i,n+o*12):i,w=a||r?Mt(x,a+r*7):x,h=l+p*60,R=(s+h*60)*1e3;return d(t,w.getTime()+R)}var Oe=Math.pow(10,8)*24*60*60*1e3,Bn=-Oe;var ot=6e4,nt=36e5;var Pe=3600;var kt=Pe*24,vn=kt*7,Fe=kt*365.2425,Me=Fe/12,Yn=Me*3;function Bt(t){let e=m(t);return e.setHours(0,0,0,0),e}function vt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function rt(t){if(!vt(t)&&typeof t!="number")return!1;let e=m(t);return!isNaN(Number(e))}function Yt(t){let e=m(t);return e.setSeconds(0,0),e}function jt(t){let e=m(t);return e.setDate(1),e.setHours(0,0,0,0),e}function Gt(t){let e=m(t),o=d(t,0);return o.setFullYear(e.getFullYear(),0,1),o.setHours(0,0,0,0),o}function Ht(t){let e=m(t);return e.setMinutes(0,0,0),e}function zt(t){let e=m(t);return e.setMilliseconds(0),e}function _(t,e){let o=e?.additionalDigits??2,n=Be(t),r;if(n.date){let s=ve(n.date,o);r=Ye(s.restDateString,s.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);let a=r.getTime(),p=0,l;if(n.time&&(p=je(n.time),isNaN(p)))return new Date(NaN);if(n.timezone){if(l=Ge(n.timezone),isNaN(l))return new Date(NaN)}else{let s=new Date(a+p),i=new Date(0);return i.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),i.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),i}return new Date(a+p+l)}var M={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ve=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Le=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ke=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Be(t){let e={},o=t.split(M.dateTimeDelimiter),n;if(o.length>2)return e;if(/:/.test(o[0])?n=o[0]:(e.date=o[0],n=o[1],M.timeZoneDelimiter.test(e.date)&&(e.date=t.split(M.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let r=M.timezone.exec(n);r?(e.time=n.replace(r[1],""),e.timezone=r[1]):e.time=n}return e}function ve(t,e){let o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(o);if(!n)return{year:NaN,restDateString:""};let r=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?r:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function Ye(t,e){if(e===null)return new Date(NaN);let o=t.match(Ve);if(!o)return new Date(NaN);let n=!!o[4],r=U(o[1]),a=U(o[2])-1,p=U(o[3]),l=U(o[4]),s=U(o[5])-1;if(n)return Xe(e,l,s)?He(e,l,s):new Date(NaN);{let i=new Date(0);return!$e(e,a,p)||!Ke(e,r)?new Date(NaN):(i.setUTCFullYear(e,a,Math.max(r,p)),i)}}function U(t){return t?parseInt(t):1}function je(t){let e=t.match(Le);if(!e)return NaN;let o=at(e[1]),n=at(e[2]),r=at(e[3]);return We(o,n,r)?o*nt+n*ot+r*1e3:NaN}function at(t){return t&&parseFloat(t.replace(",","."))||0}function Ge(t){if(t==="Z")return 0;let e=t.match(ke);if(!e)return 0;let o=e[1]==="+"?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Ze(n,r)?o*(n*nt+r*ot):NaN}function He(t,e,o){let n=new Date(0);n.setUTCFullYear(t,0,4);let r=n.getUTCDay()||7,a=(e-1)*7+o+1-r;return n.setUTCDate(n.getUTCDate()+a),n}var ze=[31,null,31,30,31,30,31,31,30,31,30,31];function $t(t){return t%400===0||t%4===0&&t%100!==0}function $e(t,e,o){return e>=0&&e<=11&&o>=1&&o<=(ze[e]||($t(t)?29:28))}function Ke(t,e){return e>=1&&e<=($t(t)?366:365)}function Xe(t,e,o){return e>=1&&e<=53&&o>=0&&o<=6}function We(t,e,o){return t===24?e===0&&o===0:o>=0&&o<60&&e>=0&&e<60&&t>=0&&t<25}function Ze(t,e){return e>=0&&e<=59}var Kt=["s","m","h","d","M","y"],Xt={y:"years",M:"months",d:"days",h:"hours",m:"minutes",s:"seconds"},qe={y:Gt,M:jt,d:Bt,h:Ht,m:Yt,s:zt},Wt=/^\$now(?<units>\(((y|M|d|h|m|s):(-?\d+),?)+\))?$/,Je=/(y|M|d|h|m|s):(-?\d+)/g,Qe=/^(?<y>\d{4,})(-(?<M>\d\d)(-(?<d>\d\d)([T ](?<h>\d\d)(:(?<m>\d\d)(:(?<s>\d\d))?)?)?)?)?/;function to(t,e=new Date){let o,n,r=Wt.exec(t);if(r){o=e;let p=r.groups?.units;if(p){let l=p.matchAll(Je);n=[];for(let[s,i,x]of l)o=Lt(o,{[Xt[i]]:Number(x)}),n.push(i)}else n=["d"]}else o=_(t),n=Object.entries(Qe.exec(t)?.groups||{}).filter(([p,l])=>!!l).map(([p])=>p);let a=Zt(n)||"s";return[qe[a](o),a]}function Zt(t){return Kt.find(e=>t.includes(e))}function V(t){return typeof t=="string"?Wt.test(t)||rt(_(t)):rt(t)}function st(t,e,o){let n=V(t);return e&&(e=typeof e=="string"?_(e):e,n=n&&t>=e),o&&(o=typeof o=="string"?_(o):o,n=n&&t<=o),n}var eo={gb:{s_card:t=>.2+.015*t,s_sepa:()=>.3,s_bacs:t=>Math.min(2,Math.max(.2,.01*t)),s_paypal:t=>.1+.02*t},eu:{s_card:t=>.25+.015*t,s_sepa:()=>.35,s_bacs:()=>0,s_paypal:t=>.1+.02*t},ca:{s_card:t=>.3+.029*t,s_sepa:()=>0,s_bacs:()=>0,s_paypal:()=>0}},oo=t=>.2+t*.01;function no(t,e){let o=t.paymentMethod==="gc_direct-debit"?oo:eo[e][t.paymentMethod];return t.period==="annually"?0:o(t.amount)}function qt(t){return"condition"in t}function Jt(t,e){let o=t[e.field];if(!o)throw new c(e,`Invalid field: ${e.field}`);let n=0;if(e.operator in z){if(!o.nullable&&o.type!=="text")throw new c(e,"Invalid nullable operator: field is not nullable")}else{let a=$[o.type][e.operator];if(!a)throw new c(e,`Invalid operator for type: ${o.type} type doesn't define ${e.operator}`);n=a.args}if(n!==e.value.length)throw new c(e,`Invalid operator argument count: ${e.operator} needs ${n}, ${e.value.length} given`);let r=o.type==="boolean"||o.type==="number"?o.type:"string";if(e.value.some(a=>typeof a!==r))throw new c(e,`Invalid operator argument type: ${e.operator} needs ${r}, ${e.value.map(a=>typeof a)} given`);if(o.type==="date"&&e.value.some(a=>!V(a)))throw new c(e,`Invalid operator argument: date type needs valid absolute or relative date, ${e.value} given`);if((o.type==="enum"||o.type==="array")&&e.value.some(a=>o.options?.indexOf(a)===-1))throw new c(e,`Invalid operator argument: ${o.type} type expected ${o.options}, ${e.value} given`);return{field:e.field,type:o.type,nullable:!!o.nullable,operator:e.operator,value:e.value}}function Qt(t,e){let o={condition:e.condition,rules:[]};for(let n of e.rules){let r=qt(n)?Qt(t,n):Jt(t,n);o.rules.push(r)}return o}var lt=(t,e)=>!e;var it=(t,e)=>{throw new Error("[calloutComponentInputAddressValidator] Not implemented yet")};var pt=(t,e)=>typeof e=="boolean";var ut=(t,e)=>J(e);var mt=(t,e)=>typeof e!="string"?!1:st(e,t.widget.minDate,t.widget.maxDate);var ct=(t,e)=>q(e);var ft=(t,e)=>F(e)?N(e.url):!1;var dt=(t,e)=>t.validate&&!Q(e,t.validate.min,t.validate.max)?!1:E(e);var Ct=(t,e)=>D(e);var yt=(t,e)=>!!t.data.values.find(n=>n.value===e);var L=(t,e)=>!!t.values.find(n=>n.value===e);var xt=(t,e)=>{throw new Error("[calloutComponentInputSignatureValidator] Not implemented yet")};var ro=(t,e)=>t?!(!e&&t.required||typeof t.pattern=="string"&&t.pattern.length&&!new RegExp(t.pattern).test(e||"")||!et(e,t.minWords,t.maxWords)||!tt(e,t.minLength,t.maxLength)):!0,k=(t,e)=>typeof e!="string"?!1:ro(t?.validate,e);var ht=(t,e)=>{throw new Error("[calloutComponentInputTimeValidator] Not implemented yet")};var bt=(t,e)=>N(e);var te=(t,e)=>{for(let o of t.components)if(!oe(o,e[o.key]))return!1;return!0},ao={email:ct,address:it,checkbox:pt,currency:ut,datetime:mt,number:dt,phoneNumber:Ct,signature:xt,time:ht,url:bt,file:ft,select:yt,textfield:k,textarea:k,radio:L,selectboxes:L};function ee(t,e){let o=ao[t.type];if(!o)return console.error(`No validator found for ${t.type}`),!1;if(e===void 0)return!t.validate?.required;let n=Array.isArray(e)?e:[e];for(let r of n)if(!o(t,r))return!1;return!0}function oe(t,e){if(C(t,4))return te(t,e);if(C(t,1))return ee(t,e);if(C(t,0))return lt(t,e);throw new Error("Invalid schema type")}globalThis.Beabee||={};globalThis.Beabee.Common=gt;})();
|
|
1
|
+
(()=>{var se=Object.defineProperty;var le=(t,e)=>{for(var o in e)se(t,o,{get:e[o],enumerable:!0})};var gt={};le(gt,{CalloutAccess:()=>It,CalloutCaptcha:()=>Tt,CalloutChannel:()=>St,CalloutComponentBaseType:()=>O,CalloutComponentType:()=>f,ContributionPeriod:()=>S,ContributionType:()=>v,InvalidRule:()=>c,ItemStatus:()=>P,MembershipStatus:()=>At,NewsletterStatus:()=>Y,PaymentMethod:()=>j,PaymentStatus:()=>G,RoleTypes:()=>Nt,apiKeyFilters:()=>ue,calcPaymentFee:()=>so,calloutComponentContentValidator:()=>lt,calloutComponentInputAddressValidator:()=>it,calloutComponentInputCheckboxValidator:()=>pt,calloutComponentInputCurrencyValidator:()=>ut,calloutComponentInputDateTimeValidator:()=>mt,calloutComponentInputEmailValidator:()=>ct,calloutComponentInputFileValidator:()=>ft,calloutComponentInputNumberValidator:()=>dt,calloutComponentInputPhoneNumberValidator:()=>Ct,calloutComponentInputSelectValidator:()=>yt,calloutComponentInputSelectableTypes:()=>b,calloutComponentInputSelectableValidator:()=>L,calloutComponentInputSignatureValidator:()=>xt,calloutComponentInputTextTypes:()=>g,calloutComponentInputTextValidator:()=>k,calloutComponentInputTimeValidator:()=>ht,calloutComponentInputTypes:()=>I,calloutComponentInputUrlValidator:()=>bt,calloutComponentInputValidator:()=>re,calloutComponentNestableTypes:()=>T,calloutComponentNestableValidator:()=>ne,calloutComponentTypes:()=>ie,calloutComponentValidator:()=>ae,calloutFilters:()=>me,calloutResponseCommentFilters:()=>fe,calloutResponseFilters:()=>ce,calloutTagFilters:()=>de,contactCalloutFilters:()=>ye,contactFilters:()=>Ce,contentIds:()=>pe,dateUnitMap:()=>qt,dateUnits:()=>Zt,filterComponents:()=>_t,flattenComponents:()=>K,getCalloutComponents:()=>Rt,getCalloutFilters:()=>Ae,getMinDateUnit:()=>Qt,isAddressAnswer:()=>wt,isAmountOfMoney:()=>J,isAngle:()=>Z,isCalloutComponentOfBaseType:()=>C,isCalloutComponentOfType:()=>y,isDateBetween:()=>st,isEmail:()=>q,isFileUploadAnswer:()=>F,isLngLat:()=>Vt,isMapBounds:()=>Ue,isNumber:()=>E,isNumberInRange:()=>Q,isPassword:()=>_e,isPeriod:()=>Lt,isPhoneNumber:()=>D,isRuleGroup:()=>te,isSlug:()=>Re,isTextInRange:()=>tt,isTextInWordRange:()=>et,isType:()=>we,isURL:()=>N,isValidDate:()=>V,isValidPayFee:()=>Oe,noticeFilters:()=>xe,nullableOperators:()=>z,operatorsByType:()=>Dt,operatorsByTypeMap:()=>$,parseDate:()=>no,paymentFilters:()=>ge,ruleOperators:()=>be,segmentFilters:()=>Ie,slug:()=>W,stringifyAnswer:()=>Ot,toBytes:()=>Fe,toPhoneNumber:()=>Pe,validateRule:()=>ee,validateRuleGroup:()=>oe});var It=(r=>(r.Member="member",r.Guest="guest",r.Anonymous="anonymous",r.OnlyAnonymous="only-anonymous",r))(It||{});var Tt=(n=>(n.None="none",n.Guest="guest",n.All="all",n))(Tt||{});var St=(e=>(e.TELEGRAM="telegram",e))(St||{});var O=(a=>(a[a.CONTENT=0]="CONTENT",a[a.INPUT=1]="INPUT",a[a.INPUT_TEXT=2]="INPUT_TEXT",a[a.INPUT_SELECTABLE=3]="INPUT_SELECTABLE",a[a.NESTABLE=4]="NESTABLE",a))(O||{});var f=(u=>(u.CONTENT="content",u.INPUT_ADDRESS="address",u.INPUT_CHECKBOX="checkbox",u.INPUT_CURRENCY="currency",u.INPUT_DATE_TIME="datetime",u.INPUT_EMAIL="email",u.INPUT_FILE="file",u.INPUT_NUMBER="number",u.INPUT_PHONE_NUMBER="phoneNumber",u.INPUT_SELECT="select",u.INPUT_SELECTABLE_RADIO="radio",u.INPUT_SELECTABLE_SELECTBOXES="selectboxes",u.INPUT_SIGNATURE="signature",u.INPUT_TEXT_AREA="textarea",u.INPUT_TEXT_FIELD="textfield",u.INPUT_TIME="time",u.INPUT_URL="url",u.NESTABLE_PANEL="panel",u.NESTABLE_TABS="tabs",u.NESTABLE_WELL="well",u))(f||{});var b=["radio","selectboxes"];var g=["textarea","textfield"];var I=[...b,...g,"address","checkbox","currency","datetime","email","file","number","phoneNumber","select","signature","time","url"];var T=["panel","well","tabs"];var ie=[...T,...I,"content"];var pe=["contacts","email","general","join","join/setup","profile","share","payment","telegram"];var S=(o=>(o.Monthly="monthly",o.Annually="annually",o))(S||{});var v=(r=>(r.Automatic="Automatic",r.Manual="Manual",r.Gift="Gift",r.None="None",r))(v||{});var P=(r=>(r.Draft="draft",r.Scheduled="scheduled",r.Open="open",r.Ended="ended",r))(P||{});var At=(r=>(r.Active="active",r.Expiring="expiring",r.Expired="expired",r.None="none",r))(At||{});var Y=(a=>(a.Subscribed="subscribed",a.Unsubscribed="unsubscribed",a.Cleaned="cleaned",a.Pending="pending",a.None="none",a))(Y||{});var j=(a=>(a.StripeCard="s_card",a.StripeSEPA="s_sepa",a.StripeBACS="s_bacs",a.StripePayPal="s_paypal",a.GoCardlessDirectDebit="gc_direct-debit",a))(j||{});var G=(r=>(r.Pending="pending",r.Successful="successful",r.Failed="failed",r.Cancelled="cancelled",r))(G||{});var c=class t extends Error{constructor(o,n){super();this.rule=o;this.message=n;Object.setPrototypeOf(this,t.prototype)}};var ue={id:{type:"text"},createdAt:{type:"date"}};var me={id:{type:"text"},slug:{type:"text"},title:{type:"text"},status:{type:"enum",options:["draft","scheduled","open","ended"]},answeredBy:{type:"contact"},starts:{type:"date",nullable:!0},expires:{type:"date",nullable:!0},hidden:{type:"boolean"}},ce={id:{type:"text"},contact:{type:"contact",nullable:!0},calloutId:{type:"text"},createdAt:{type:"date"},updatedAt:{type:"date"},bucket:{type:"text",nullable:!0},tags:{type:"array"},assignee:{type:"contact",nullable:!0},answers:{type:"blob"}},fe={id:{type:"text"},responseId:{type:"text"},contact:{type:"contact"},createdAt:{type:"date"},updatedAt:{type:"date"},text:{type:"text"}},de={id:{type:"text"},name:{type:"text"},description:{type:"text"},calloutId:{type:"text"}};var Nt=["member","admin","superadmin"],Ce={id:{type:"contact"},firstname:{type:"text"},lastname:{type:"text"},email:{type:"text"},joined:{type:"date"},lastSeen:{type:"date"},contributionCancelled:{type:"date",nullable:!0},contributionType:{type:"enum",options:["Automatic","Gift","Manual","None"]},contributionMonthlyAmount:{type:"number"},contributionPeriod:{type:"enum",options:["monthly","annually"]},deliveryOptIn:{type:"boolean"},newsletterStatus:{type:"enum",options:["subscribed","unsubscribed","cleaned","pending","none"]},activePermission:{type:"enum",options:Nt},activeMembership:{type:"boolean"},membershipStarts:{type:"date"},membershipExpires:{type:"date"},manualPaymentSource:{type:"text",nullable:!0},tags:{type:"array",nullable:!0}},ye={hasAnswered:{type:"boolean"}};var xe={id:{type:"text"},createdAt:{type:"date"},updatedAt:{type:"date"},name:{type:"text"},expires:{type:"date",nullable:!0},enabled:{type:"boolean"},text:{type:"text"},status:{type:"enum",options:["draft","scheduled","open","ended"]}};var A={equal:{args:1},not_equal:{args:1}},he={begins_with:{args:1},ends_with:{args:1},not_begins_with:{args:1},not_ends_with:{args:1}},Et={...A,between:{args:2},not_between:{args:2},less:{args:1},greater:{args:1},less_or_equal:{args:1},greater_or_equal:{args:1}},H={contains:{args:1},not_contains:{args:1}},z={is_empty:{args:0},is_not_empty:{args:0}},Dt={text:{...A,...H,...he},blob:H,date:Et,number:Et,boolean:{equal:A.equal},array:H,enum:A,contact:A},$=Dt,be=["equal","not_equal","less","less_or_equal","greater","greater_or_equal","between","not_between","begins_with","not_begins_with","contains","not_contains","ends_with","not_ends_with","is_empty","is_not_empty"];var ge={id:{type:"text"},contact:{type:"contact"},chargeDate:{type:"date"},amount:{type:"number"},status:{type:"enum",options:["successful","pending","failed","cancelled"]}};var Ie={id:{type:"text"},name:{type:"text"},description:{type:"text"}};function Te(t){return t.map(({value:e})=>e)}function Se(t){let e={label:t.label||t.fullKey,nullable:!0};return y(t,"checkbox")?{...e,type:"boolean",nullable:!1}:y(t,"number")?{...e,type:"number"}:y(t,"select")?{...e,type:"enum",options:Te(t.data.values)}:y(t,"textarea")?{...e,type:"blob"}:{...e,type:"text"}}function Ut(t,e){return C(t,3)?t.values.find(o=>o.value===e)?.label||e:y(t,"select")&&t.data.values.find(o=>o.value===e)?.label||e}function y(t,e){return"type"in t&&t.type===e}function C(t,e){return"type"in t?e===0?y(t,"content"):e===1?I.includes(t.type):e===2?g.includes(t.type):e===3?b.includes(t.type):e===4?T.includes(t.type):!1:!1}function K(t){return t.flatMap(e=>C(e,4)?[e,...K(e.components)]:[e])}function _t(t,e){return t.filter(e).map(o=>({...o,...C(o,4)&&{components:_t(o.components,e)}}))}function Rt(t){return t.slides.flatMap(e=>K(e.components).map(o=>({...o,slideId:e.id,fullKey:`${e.id}.${o.key}`})))}function Ae(t){let e=Rt(t).filter(o=>o.input).map(o=>[`answers.${o.fullKey}`,Se(o)]);return Object.fromEntries(e)}function wt(t){return!!t&&typeof t=="object"&&"geometry"in t}function F(t){return!!t&&typeof t=="object"&&"url"in t}function Ot(t,e){return Array.isArray(e)?e.map(o=>Ot(t,o)).join(", "):e?wt(e)?e.geometry.location.lat+", "+e.geometry.location.lng:F(e)?e.url:typeof e=="object"?Object.entries(e).filter(([,o])=>o).map(([o])=>Ut(t,o)).join(", "):typeof e=="string"?Ut(t,e):e.toString():""}function Ne(t,e){let o=t.charCodeAt(e);if(isNaN(o))throw new RangeError("Index "+e+' out of range for string "'+t+'"; please open an issue at https://github.com/Trott/slug/issues/new');if(o<55296||o>57343)return[t.charAt(e),e];if(o>=55296&&o<=56319){if(t.length<=e+1)return[" ",e];let r=t.charCodeAt(e+1);return r<56320||r>57343?[" ",e]:[t.charAt(e)+t.charAt(e+1),e+1]}if(e===0)return[" ",e];let n=t.charCodeAt(e-1);if(n<55296||n>56319)return[" ",e];throw new Error('String "'+t+'" reaches code believed to be unreachable; please open an issue at https://github.com/Trott/slug/issues/new')}function Ee(t){return btoa(unescape(encodeURIComponent(t)))}function W(t,e){let o=Pt(t,e);if((e&&e.fallback!==void 0?e.fallback:X.fallback)===!0&&o===""){let r="";for(let a=0;a<t.length;a++){let p=Ne(t,a);a=p[1],r+=p[0]}o=Pt(Ee(r),e)}return o}var De={bg:{\u0419:"Y",\u0439:"y",X:"H",x:"h",\u0426:"Ts",\u0446:"ts",\u0429:"Sht",\u0449:"sht",\u042A:"A",\u044A:"a",\u042C:"Y",\u044C:"y"},de:{\u00C4:"AE",\u00E4:"ae",\u00D6:"OE",\u00F6:"oe",\u00DC:"UE",\u00FC:"ue"},sr:{\u0111:"dj",\u0110:"DJ"},uk:{\u0418:"Y",\u0438:"y",\u0419:"Y",\u0439:"y",\u0426:"Ts",\u0446:"ts",\u0425:"Kh",\u0445:"kh",\u0429:"Shch",\u0449:"shch",\u0413:"H",\u0433:"h"}};function Pt(t,e){let o=e?.mode||X.mode,n={...X.modes[o],...e},r=!!n.locale&&De[n.locale]||{},a=[];for(let s in n.multicharmap){if(!Object.prototype.hasOwnProperty.call(n.multicharmap,s))continue;let i=s.length;a.indexOf(i)===-1&&a.push(i)}a=a.sort(function(s,i){return i-s});let p=n.mode==="rfc3986"?/[^\w\s\-.~]/:/[^A-Za-z0-9\s]/,l="";for(let s,i=0,x=t.length;i<x;i++){s=t[i];let R=!1;for(let h=0;h<a.length;h++){let B=a[h],w=t.substr(i,B);if(n.multicharmap[w]){i+=B-1,s=n.multicharmap[w],R=!0;break}}R||(r[s]?s=r[s]:n.charmap[s]?s=n.charmap[s].replace(n.replacement," "):s.includes(n.replacement)?s=s.replace(n.replacement," "):s=s.replace(p,"")),l+=s}return n.remove&&(l=l.replace(n.remove,"")),n.trim&&(l=l.trim()),l=l.replace(/\s+/g,n.replacement),n.lower&&(l=l.toLowerCase()),l}var Ft={\u092B\u093C:"Fi",\u0917\u093C:"Ghi",\u0916\u093C:"Khi",\u0915\u093C:"Qi",\u0921\u093C:"ugDha",\u0922\u093C:"ugDhha",\u092F\u093C:"Yi",\u091C\u093C:"Za",\u05D1\u05B4\u05D9:"i",\u05D1\u05B5:"e",\u05D1\u05B5\u05D9:"e",\u05D1\u05B6:"e",\u05D1\u05B7:"a",\u05D1\u05B8:"a",\u05D1\u05B9:"o",\u05D5\u05B9:"o",\u05D1\u05BB:"u",\u05D5\u05BC:"u",\u05D1\u05BC:"b",\u05DB\u05BC:"k",\u05DA\u05BC:"k",\u05E4\u05BC:"p",\u05E9\u05C1:"sh",\u05E9\u05C2:"s",\u05D1\u05B0:"e",\u05D7\u05B1:"e",\u05D7\u05B2:"a",\u05D7\u05B3:"o",\u05D1\u05B4:"i"},Mt={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00C6:"AE",\u00C7:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u0150:"O",\u00D8:"O",\u014C:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u0170:"U",\u00DD:"Y",\u00DE:"TH",\u00DF:"ss",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00E6:"ae",\u00E7:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u0151:"o",\u00F8:"o",\u014D:"o",\u0152:"OE",\u0153:"oe",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u0171:"u",\u00FD:"y",\u00FE:"th",\u00FF:"y","\u1E9E":"SS",\u03B1:"a",\u03B2:"b",\u03B3:"g",\u03B4:"d",\u03B5:"e",\u03B6:"z",\u03B7:"h",\u03B8:"th",\u03B9:"i",\u03BA:"k",\u03BB:"l",\u03BC:"m",\u03BD:"n",\u03BE:"3",\u03BF:"o",\u03C0:"p",\u03C1:"r",\u03C3:"s",\u03C4:"t",\u03C5:"y",\u03C6:"f",\u03C7:"x",\u03C8:"ps",\u03C9:"w",\u03AC:"a",\u03AD:"e",\u03AF:"i",\u03CC:"o",\u03CD:"y",\u03AE:"h",\u03CE:"w",\u03C2:"s",\u03CA:"i",\u03B0:"y",\u03CB:"y",\u0390:"i",\u0391:"A",\u0392:"B",\u0393:"G",\u0394:"D",\u0395:"E",\u0396:"Z",\u0397:"H",\u0398:"Th",\u0399:"I",\u039A:"K",\u039B:"L",\u039C:"M",\u039D:"N",\u039E:"3",\u039F:"O",\u03A0:"P",\u03A1:"R",\u03A3:"S",\u03A4:"T",\u03A5:"Y",\u03A6:"F",\u03A7:"X",\u03A8:"PS",\u03A9:"W",\u0386:"A",\u0388:"E",\u038A:"I",\u038C:"O",\u038E:"Y",\u0389:"H",\u038F:"W",\u03AA:"I",\u03AB:"Y",\u015F:"s",\u015E:"S",\u0131:"i",\u0130:"I",\u011F:"g",\u011E:"G",\u0430:"a",\u0431:"b",\u0432:"v",\u0433:"g",\u0434:"d",\u0435:"e",\u0451:"yo",\u0436:"zh",\u0437:"z",\u0438:"i",\u0439:"j",\u043A:"k",\u043B:"l",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"p",\u0440:"r",\u0441:"s",\u0442:"t",\u0443:"u",\u0444:"f",\u0445:"h",\u0446:"c",\u0447:"ch",\u0448:"sh",\u0449:"sh",\u044A:"u",\u044B:"y",\u044C:"",\u044D:"e",\u044E:"yu",\u044F:"ya",\u0410:"A",\u0411:"B",\u0412:"V",\u0413:"G",\u0414:"D",\u0415:"E",\u0401:"Yo",\u0416:"Zh",\u0417:"Z",\u0418:"I",\u0419:"J",\u041A:"K",\u041B:"L",\u041C:"M",\u041D:"N",\u041E:"O",\u041F:"P",\u0420:"R",\u0421:"S",\u0422:"T",\u0423:"U",\u0424:"F",\u0425:"H",\u0426:"C",\u0427:"Ch",\u0428:"Sh",\u0429:"Sh",\u042A:"U",\u042B:"Y",\u042C:"",\u042D:"E",\u042E:"Yu",\u042F:"Ya",\u0404:"Ye",\u0406:"I",\u0407:"Yi",\u0490:"G",\u0454:"ye",\u0456:"i",\u0457:"yi",\u0491:"g",\u010D:"c",\u010F:"d",\u011B:"e",\u0148:"n",\u0159:"r",\u0161:"s",\u0165:"t",\u016F:"u",\u017E:"z",\u010C:"C",\u010E:"D",\u011A:"E",\u0147:"N",\u0158:"R",\u0160:"S",\u0164:"T",\u016E:"U",\u017D:"Z",\u013E:"l",\u013A:"l",\u0155:"r",\u013D:"L",\u0139:"L",\u0154:"R",\u0105:"a",\u0107:"c",\u0119:"e",\u0142:"l",\u0144:"n",\u015B:"s",\u017A:"z",\u017C:"z",\u0104:"A",\u0106:"C",\u0118:"E",\u0141:"L",\u0143:"N",\u015A:"S",\u0179:"Z",\u017B:"Z",\u0101:"a",\u0113:"e",\u0123:"g",\u012B:"i",\u0137:"k",\u013C:"l",\u0146:"n",\u016B:"u",\u0100:"A",\u0112:"E",\u0122:"G",\u012A:"I",\u0136:"K",\u013B:"L",\u0145:"N",\u016A:"U",\u0623:"a",\u0625:"i",\u0628:"b",\u062A:"t",\u062B:"th",\u062C:"g",\u062D:"h",\u062E:"kh",\u062F:"d",\u0630:"th",\u0631:"r",\u0632:"z",\u0633:"s",\u0634:"sh",\u0635:"s",\u0636:"d",\u0637:"t",\u0638:"th",\u0639:"aa",\u063A:"gh",\u0641:"f",\u0642:"k",\u0643:"k",\u0644:"l",\u0645:"m",\u0646:"n",\u0647:"h",\u0648:"o",\u064A:"y",\u0621:"aa",\u0629:"a",\u0622:"a",\u0627:"a",\u067E:"p",\u0698:"zh",\u06AF:"g",\u0686:"ch",\u06A9:"k",\u06CC:"i",\u0117:"e",\u012F:"i",\u0173:"u",\u0116:"E",\u012E:"I",\u0172:"U",\u021B:"t",\u021A:"T",\u0163:"t",\u0162:"T",\u0219:"s",\u0218:"S",\u0103:"a",\u0102:"A",\u1EA0:"A",\u1EA2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAC:"A",\u1EA8:"A",\u1EAA:"A",\u1EB0:"A",\u1EAE:"A",\u1EB6:"A",\u1EB2:"A",\u1EB4:"A",\u1EB8:"E",\u1EBA:"E",\u1EBC:"E",\u1EC0:"E",\u1EBE:"E",\u1EC6:"E",\u1EC2:"E",\u1EC4:"E",\u1ECA:"I",\u1EC8:"I",\u0128:"I",\u1ECC:"O",\u1ECE:"O",\u1ED2:"O",\u1ED0:"O",\u1ED8:"O",\u1ED4:"O",\u1ED6:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE2:"O",\u1EDE:"O",\u1EE0:"O",\u1EE4:"U",\u1EE6:"U",\u0168:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EF0:"U",\u1EEC:"U",\u1EEE:"U",\u1EF2:"Y",\u1EF4:"Y",\u1EF6:"Y",\u1EF8:"Y",\u0110:"D",\u1EA1:"a",\u1EA3:"a",\u1EA7:"a",\u1EA5:"a",\u1EAD:"a",\u1EA9:"a",\u1EAB:"a",\u1EB1:"a",\u1EAF:"a",\u1EB7:"a",\u1EB3:"a",\u1EB5:"a",\u1EB9:"e",\u1EBB:"e",\u1EBD:"e",\u1EC1:"e",\u1EBF:"e",\u1EC7:"e",\u1EC3:"e",\u1EC5:"e",\u1ECB:"i",\u1EC9:"i",\u0129:"i",\u1ECD:"o",\u1ECF:"o",\u1ED3:"o",\u1ED1:"o",\u1ED9:"o",\u1ED5:"o",\u1ED7:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE3:"o",\u1EDF:"o",\u1EE1:"o",\u1EE5:"u",\u1EE7:"u",\u0169:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EF1:"u",\u1EED:"u",\u1EEF:"u",\u1EF3:"y",\u1EF5:"y",\u1EF7:"y",\u1EF9:"y",\u0111:"d",\u04D8:"AE",\u04D9:"ae",\u0492:"GH",\u0493:"gh",\u049A:"KH",\u049B:"kh",\u04A2:"NG",\u04A3:"ng",\u04AE:"UE",\u04AF:"ue",\u04B0:"U",\u04B1:"u",\u04BA:"H",\u04BB:"h",\u04E8:"OE",\u04E9:"oe",\u0452:"dj",\u0458:"j",\u0459:"lj",\u045A:"nj",\u045B:"c",\u045F:"dz",\u0402:"Dj",\u0408:"j",\u0409:"Lj",\u040A:"Nj",\u040B:"C",\u040F:"Dz",\u01CC:"nj",\u01C9:"lj",\u01CB:"NJ",\u01C8:"LJ",\u0905:"a",\u0906:"aa",\u090F:"e",\u0908:"ii",\u090D:"ei",\u090E:"ae",\u0910:"ai",\u0907:"i",\u0913:"o",\u0911:"oi",\u0912:"oii",\u090A:"uu",\u0914:"ou",\u0909:"u",\u092C:"B",\u092D:"Bha",\u091A:"Ca",\u091B:"Chha",\u0921:"Da",\u0922:"Dha",\u092B:"Fa",\u0917:"Ga",\u0918:"Gha",\u0917\u093C:"Ghi",\u0939:"Ha",\u091C:"Ja",\u091D:"Jha",\u0915:"Ka",\u0916:"Kha",\u0916\u093C:"Khi",\u0932:"L",\u0933:"Li",\u090C:"Li",\u0934:"Lii",\u0961:"Lii",\u092E:"Ma",\u0928:"Na",\u0919:"Na",\u091E:"Nia",\u0923:"Nae",\u0929:"Ni",\u0950:"oms",\u092A:"Pa",\u0915\u093C:"Qi",\u0930:"Ra",\u090B:"Ri",\u0960:"Ri",\u0931:"Ri",\u0938:"Sa",\u0936:"Sha",\u0937:"Shha",\u091F:"Ta",\u0924:"Ta",\u0920:"Tha",\u0926:"Tha",\u0925:"Tha",\u0927:"Thha",\u0921\u093C:"ugDha",\u0922\u093C:"ugDhha",\u0935:"Va",\u092F:"Ya",\u092F\u093C:"Yi",\u091C\u093C:"Za",\u0259:"e",\u018F:"E",\u10D0:"a",\u10D1:"b",\u10D2:"g",\u10D3:"d",\u10D4:"e",\u10D5:"v",\u10D6:"z",\u10D7:"t",\u10D8:"i",\u10D9:"k",\u10DA:"l",\u10DB:"m",\u10DC:"n",\u10DD:"o",\u10DE:"p",\u10DF:"zh",\u10E0:"r",\u10E1:"s",\u10E2:"t",\u10E3:"u",\u10E4:"p",\u10E5:"k",\u10E6:"gh",\u10E7:"q",\u10E8:"sh",\u10E9:"ch",\u10EA:"ts",\u10EB:"dz",\u10EC:"ts",\u10ED:"ch",\u10EE:"kh",\u10EF:"j",\u10F0:"h",\u05D1:"v",\u05D2\u05BC:"g",\u05D2:"g",\u05D3:"d",\u05D3\u05BC:"d",\u05D4:"h",\u05D5:"v",\u05D6:"z",\u05D7:"h",\u05D8:"t",\u05D9:"y",\u05DB:"kh",\u05DA:"kh",\u05DC:"l",\u05DE:"m",\u05DD:"m",\u05E0:"n",\u05DF:"n",\u05E1:"s",\u05E4:"f",\u05E3:"f",\u05E5:"ts",\u05E6:"ts",\u05E7:"k",\u05E8:"r",\u05EA\u05BC:"t",\u05EA:"t"},X={locale:"",mode:"pretty",fallback:!0,modes:{rfc3986:{replacement:"-",lower:!0,charmap:Mt,multicharmap:Ft,remove:null,trim:!0},pretty:{replacement:"-",lower:!0,charmap:Mt,multicharmap:Ft,remove:null,trim:!0}}};var Z=(t,e=180)=>typeof t=="number"&&t>=e*-1&&t<=e,q=t=>typeof t!="string"||t.length===0?!1:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),Vt=t=>{if(!Array.isArray(t)||t.length!==2)return!1;let[e,o]=t;return!(!Z(e,180)||!Z(o,90))},Ue=t=>Array.isArray(t)&&t.length===2&&t.every(Vt),_e=t=>typeof t=="string"&&t.length>=8&&/[a-z]/.test(t)&&/[A-Z]/.test(t)&&/[0-9]/.test(t),Lt=t=>t==="monthly"||t==="annually",Re=t=>typeof t=="string"&&t===W(t);function we(t,e){return t.includes(typeof e)}var N=t=>typeof t!="string"||!t.length?!1:/^(https?:\/\/)([\da-z\-]+\.)+[a-z]{2,6}(:[0-9]{1,5})?([\/\w \.-]*)*\/?(\?[a-zA-Z0-9=&]*)?$/.test(t),E=t=>typeof t=="number"&&!isNaN(t),J=t=>{if(!E(t)||t<0)return!1;let e=t.toString().split(".")[1];return!(e&&e.length>2)},D=t=>typeof t!="string"||!t.length||t.length>15||t.length<5?!1:/^(\+?[0-9])\d*$/.test(t),Oe=(t,e,o)=>!(typeof t!="boolean"||typeof e!="number"||!Lt(o)||t&&o==="annually"||!t&&o==="monthly"&&e===1),Q=(t,e,o)=>!(!E(t)||typeof e=="number"&&t<e||typeof o=="number"&&t>o),tt=(t,e=0,o)=>!(typeof t!="string"||typeof e=="number"&&t.length<e||typeof o=="number"&&t.length>o),et=(t,e=0,o)=>{if(typeof t!="string")return!1;let n=t.length>0?t.split(" "):[];return!(typeof e=="number"&&n.length<e||typeof o=="number"&&n.length>o)};var Pe=t=>{if(typeof t!="string"||!t.length)return!1;let e=t.replace(/(?!^\+)\D/g,"");return D(e)?e:!1},Fe=t=>{if(typeof t!="string"||!t.length)return null;let e=t.toLowerCase(),o=["b","kb","mb","gb","tb","pb","eb","zb","yb"],[,n,r]=e.match(/(\d+)(\w+)/),a=o.indexOf(r.toLowerCase());return a===-1?null:Number(n)*Math.pow(1024,a)};function m(t){let e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new t.constructor(+t):typeof t=="number"||e==="[object Number]"||typeof t=="string"||e==="[object String]"?new Date(t):new Date(NaN)}function d(t,e){return t instanceof Date?new t.constructor(e):new Date(e)}function kt(t,e){let o=m(t);return isNaN(e)?d(t,NaN):(e&&o.setDate(o.getDate()+e),o)}function Bt(t,e){let o=m(t);if(isNaN(e))return d(t,NaN);if(!e)return o;let n=o.getDate(),r=d(t,o.getTime());r.setMonth(o.getMonth()+e+1,0);let a=r.getDate();return n>=a?r:(o.setFullYear(r.getFullYear(),r.getMonth(),n),o)}function vt(t,e){let{years:o=0,months:n=0,weeks:r=0,days:a=0,hours:p=0,minutes:l=0,seconds:s=0}=e,i=m(t),x=n||o?Bt(i,n+o*12):i,R=a||r?kt(x,a+r*7):x,h=l+p*60,w=(s+h*60)*1e3;return d(t,R.getTime()+w)}var Me=Math.pow(10,8)*24*60*60*1e3,Xn=-Me;var ot=6e4,nt=36e5;var Ve=3600;var Yt=Ve*24,Wn=Yt*7,Le=Yt*365.2425,ke=Le/12,Zn=ke*3;function jt(t){let e=m(t);return e.setHours(0,0,0,0),e}function Gt(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function rt(t){if(!Gt(t)&&typeof t!="number")return!1;let e=m(t);return!isNaN(Number(e))}function Ht(t){let e=m(t);return e.setSeconds(0,0),e}function zt(t){let e=m(t);return e.setDate(1),e.setHours(0,0,0,0),e}function $t(t){let e=m(t),o=d(t,0);return o.setFullYear(e.getFullYear(),0,1),o.setHours(0,0,0,0),o}function Kt(t){let e=m(t);return e.setMinutes(0,0,0),e}function Xt(t){let e=m(t);return e.setMilliseconds(0),e}function _(t,e){let o=e?.additionalDigits??2,n=je(t),r;if(n.date){let s=Ge(n.date,o);r=He(s.restDateString,s.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);let a=r.getTime(),p=0,l;if(n.time&&(p=ze(n.time),isNaN(p)))return new Date(NaN);if(n.timezone){if(l=$e(n.timezone),isNaN(l))return new Date(NaN)}else{let s=new Date(a+p),i=new Date(0);return i.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),i.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),i}return new Date(a+p+l)}var M={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Be=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ve=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ye=/^([+-])(\d{2})(?::?(\d{2}))?$/;function je(t){let e={},o=t.split(M.dateTimeDelimiter),n;if(o.length>2)return e;if(/:/.test(o[0])?n=o[0]:(e.date=o[0],n=o[1],M.timeZoneDelimiter.test(e.date)&&(e.date=t.split(M.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let r=M.timezone.exec(n);r?(e.time=n.replace(r[1],""),e.timezone=r[1]):e.time=n}return e}function Ge(t,e){let o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(o);if(!n)return{year:NaN,restDateString:""};let r=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?r:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function He(t,e){if(e===null)return new Date(NaN);let o=t.match(Be);if(!o)return new Date(NaN);let n=!!o[4],r=U(o[1]),a=U(o[2])-1,p=U(o[3]),l=U(o[4]),s=U(o[5])-1;if(n)return qe(e,l,s)?Ke(e,l,s):new Date(NaN);{let i=new Date(0);return!We(e,a,p)||!Ze(e,r)?new Date(NaN):(i.setUTCFullYear(e,a,Math.max(r,p)),i)}}function U(t){return t?parseInt(t):1}function ze(t){let e=t.match(ve);if(!e)return NaN;let o=at(e[1]),n=at(e[2]),r=at(e[3]);return Je(o,n,r)?o*nt+n*ot+r*1e3:NaN}function at(t){return t&&parseFloat(t.replace(",","."))||0}function $e(t){if(t==="Z")return 0;let e=t.match(Ye);if(!e)return 0;let o=e[1]==="+"?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return Qe(n,r)?o*(n*nt+r*ot):NaN}function Ke(t,e,o){let n=new Date(0);n.setUTCFullYear(t,0,4);let r=n.getUTCDay()||7,a=(e-1)*7+o+1-r;return n.setUTCDate(n.getUTCDate()+a),n}var Xe=[31,null,31,30,31,30,31,31,30,31,30,31];function Wt(t){return t%400===0||t%4===0&&t%100!==0}function We(t,e,o){return e>=0&&e<=11&&o>=1&&o<=(Xe[e]||(Wt(t)?29:28))}function Ze(t,e){return e>=1&&e<=(Wt(t)?366:365)}function qe(t,e,o){return e>=1&&e<=53&&o>=0&&o<=6}function Je(t,e,o){return t===24?e===0&&o===0:o>=0&&o<60&&e>=0&&e<60&&t>=0&&t<25}function Qe(t,e){return e>=0&&e<=59}var Zt=["s","m","h","d","M","y"],qt={y:"years",M:"months",d:"days",h:"hours",m:"minutes",s:"seconds"},to={y:$t,M:zt,d:jt,h:Kt,m:Ht,s:Xt},Jt=/^\$now(?<units>\(((y|M|d|h|m|s):(-?\d+),?)+\))?$/,eo=/(y|M|d|h|m|s):(-?\d+)/g,oo=/^(?<y>\d{4,})(-(?<M>\d\d)(-(?<d>\d\d)([T ](?<h>\d\d)(:(?<m>\d\d)(:(?<s>\d\d))?)?)?)?)?/;function no(t,e=new Date){let o,n,r=Jt.exec(t);if(r){o=e;let p=r.groups?.units;if(p){let l=p.matchAll(eo);n=[];for(let[s,i,x]of l)o=vt(o,{[qt[i]]:Number(x)}),n.push(i)}else n=["d"]}else o=_(t),n=Object.entries(oo.exec(t)?.groups||{}).filter(([p,l])=>!!l).map(([p])=>p);let a=Qt(n)||"s";return[to[a](o),a]}function Qt(t){return Zt.find(e=>t.includes(e))}function V(t){return typeof t=="string"?Jt.test(t)||rt(_(t)):rt(t)}function st(t,e,o){let n=V(t);return e&&(e=typeof e=="string"?_(e):e,n=n&&t>=e),o&&(o=typeof o=="string"?_(o):o,n=n&&t<=o),n}var ro={gb:{s_card:t=>.2+.015*t,s_sepa:()=>.3,s_bacs:t=>Math.min(2,Math.max(.2,.01*t)),s_paypal:t=>.1+.02*t},eu:{s_card:t=>.25+.015*t,s_sepa:()=>.35,s_bacs:()=>0,s_paypal:t=>.1+.02*t},ca:{s_card:t=>.3+.029*t,s_sepa:()=>0,s_bacs:()=>0,s_paypal:()=>0}},ao=t=>.2+t*.01;function so(t,e){let o=t.paymentMethod==="gc_direct-debit"?ao:ro[e][t.paymentMethod];return t.period==="annually"?0:o(t.amount)}function te(t){return"condition"in t}function ee(t,e){let o=t[e.field];if(!o)throw new c(e,`Invalid field: ${e.field}`);let n=0;if(e.operator in z){if(!o.nullable&&o.type!=="text")throw new c(e,"Invalid nullable operator: field is not nullable")}else{let a=$[o.type][e.operator];if(!a)throw new c(e,`Invalid operator for type: ${o.type} type doesn't define ${e.operator}`);n=a.args}if(n!==e.value.length)throw new c(e,`Invalid operator argument count: ${e.operator} needs ${n}, ${e.value.length} given`);let r=o.type==="boolean"||o.type==="number"?o.type:"string";if(e.value.some(a=>typeof a!==r))throw new c(e,`Invalid operator argument type: ${e.operator} needs ${r}, ${e.value.map(a=>typeof a)} given`);if(o.type==="date"&&e.value.some(a=>!V(a)))throw new c(e,`Invalid operator argument: date type needs valid absolute or relative date, ${e.value} given`);if((o.type==="enum"||o.type==="array")&&e.value.some(a=>o.options?.indexOf(a)===-1))throw new c(e,`Invalid operator argument: ${o.type} type expected ${o.options}, ${e.value} given`);return{field:e.field,type:o.type,nullable:!!o.nullable,operator:e.operator,value:e.value}}function oe(t,e){let o={condition:e.condition,rules:[]};for(let n of e.rules){let r=te(n)?oe(t,n):ee(t,n);o.rules.push(r)}return o}var lt=(t,e)=>!e;var it=(t,e)=>{throw new Error("[calloutComponentInputAddressValidator] Not implemented yet")};var pt=(t,e)=>typeof e=="boolean";var ut=(t,e)=>J(e);var mt=(t,e)=>typeof e!="string"?!1:st(e,t.widget.minDate,t.widget.maxDate);var ct=(t,e)=>q(e);var ft=(t,e)=>F(e)?N(e.url):!1;var dt=(t,e)=>t.validate&&!Q(e,t.validate.min,t.validate.max)?!1:E(e);var Ct=(t,e)=>D(e);var yt=(t,e)=>!!t.data.values.find(n=>n.value===e);var L=(t,e)=>!!t.values.find(n=>n.value===e);var xt=(t,e)=>{throw new Error("[calloutComponentInputSignatureValidator] Not implemented yet")};var lo=(t,e)=>t?!(!e&&t.required||typeof t.pattern=="string"&&t.pattern.length&&!new RegExp(t.pattern).test(e||"")||!et(e,t.minWords,t.maxWords)||!tt(e,t.minLength,t.maxLength)):!0,k=(t,e)=>typeof e!="string"?!1:lo(t?.validate,e);var ht=(t,e)=>{throw new Error("[calloutComponentInputTimeValidator] Not implemented yet")};var bt=(t,e)=>N(e);var ne=(t,e)=>{for(let o of t.components)if(!ae(o,e[o.key]))return!1;return!0},io={email:ct,address:it,checkbox:pt,currency:ut,datetime:mt,number:dt,phoneNumber:Ct,signature:xt,time:ht,url:bt,file:ft,select:yt,textfield:k,textarea:k,radio:L,selectboxes:L};function re(t,e){let o=io[t.type];if(!o)return console.error(`No validator found for ${t.type}`),!1;if(e===void 0)return!t.validate?.required;let n=Array.isArray(e)?e:[e];for(let r of n)if(!o(t,r))return!1;return!0}function ae(t,e){if(C(t,4))return ne(t,e);if(C(t,1))return re(t,e);if(C(t,0))return lt(t,e);throw new Error("Invalid schema type")}globalThis.Beabee||={};globalThis.Beabee.Common=gt;})();
|
package/dist/browser/index.js
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
// src/data/callout-access.ts
|
|
2
|
+
var CalloutAccess = /* @__PURE__ */ ((CalloutAccess2) => {
|
|
3
|
+
CalloutAccess2["Member"] = "member";
|
|
4
|
+
CalloutAccess2["Guest"] = "guest";
|
|
5
|
+
CalloutAccess2["Anonymous"] = "anonymous";
|
|
6
|
+
CalloutAccess2["OnlyAnonymous"] = "only-anonymous";
|
|
7
|
+
return CalloutAccess2;
|
|
8
|
+
})(CalloutAccess || {});
|
|
9
|
+
|
|
10
|
+
// src/data/callout-captcha.ts
|
|
11
|
+
var CalloutCaptcha = /* @__PURE__ */ ((CalloutCaptcha2) => {
|
|
12
|
+
CalloutCaptcha2["None"] = "none";
|
|
13
|
+
CalloutCaptcha2["Guest"] = "guest";
|
|
14
|
+
CalloutCaptcha2["All"] = "all";
|
|
15
|
+
return CalloutCaptcha2;
|
|
16
|
+
})(CalloutCaptcha || {});
|
|
17
|
+
|
|
18
|
+
// src/data/callout-channel.ts
|
|
19
|
+
var CalloutChannel = /* @__PURE__ */ ((CalloutChannel2) => {
|
|
20
|
+
CalloutChannel2["TELEGRAM"] = "telegram";
|
|
21
|
+
return CalloutChannel2;
|
|
22
|
+
})(CalloutChannel || {});
|
|
23
|
+
|
|
1
24
|
// src/data/callout-component-base-type.ts
|
|
2
25
|
var CalloutComponentBaseType = /* @__PURE__ */ ((CalloutComponentBaseType2) => {
|
|
3
26
|
CalloutComponentBaseType2[CalloutComponentBaseType2["CONTENT"] = 0] = "CONTENT";
|
|
@@ -2268,6 +2291,9 @@ function calloutComponentValidator(schema, answer) {
|
|
|
2268
2291
|
throw new Error("Invalid schema type");
|
|
2269
2292
|
}
|
|
2270
2293
|
export {
|
|
2294
|
+
CalloutAccess,
|
|
2295
|
+
CalloutCaptcha,
|
|
2296
|
+
CalloutChannel,
|
|
2271
2297
|
CalloutComponentBaseType,
|
|
2272
2298
|
CalloutComponentType,
|
|
2273
2299
|
ContributionPeriod,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var callout_access_exports = {};
|
|
20
|
+
__export(callout_access_exports, {
|
|
21
|
+
CalloutAccess: () => CalloutAccess
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(callout_access_exports);
|
|
24
|
+
var CalloutAccess = /* @__PURE__ */ ((CalloutAccess2) => {
|
|
25
|
+
CalloutAccess2["Member"] = "member";
|
|
26
|
+
CalloutAccess2["Guest"] = "guest";
|
|
27
|
+
CalloutAccess2["Anonymous"] = "anonymous";
|
|
28
|
+
CalloutAccess2["OnlyAnonymous"] = "only-anonymous";
|
|
29
|
+
return CalloutAccess2;
|
|
30
|
+
})(CalloutAccess || {});
|
|
31
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
+
0 && (module.exports = {
|
|
33
|
+
CalloutAccess
|
|
34
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var callout_captcha_exports = {};
|
|
20
|
+
__export(callout_captcha_exports, {
|
|
21
|
+
CalloutCaptcha: () => CalloutCaptcha
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(callout_captcha_exports);
|
|
24
|
+
var CalloutCaptcha = /* @__PURE__ */ ((CalloutCaptcha2) => {
|
|
25
|
+
CalloutCaptcha2["None"] = "none";
|
|
26
|
+
CalloutCaptcha2["Guest"] = "guest";
|
|
27
|
+
CalloutCaptcha2["All"] = "all";
|
|
28
|
+
return CalloutCaptcha2;
|
|
29
|
+
})(CalloutCaptcha || {});
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
CalloutCaptcha
|
|
33
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var callout_channel_exports = {};
|
|
20
|
+
__export(callout_channel_exports, {
|
|
21
|
+
CalloutChannel: () => CalloutChannel
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(callout_channel_exports);
|
|
24
|
+
var CalloutChannel = /* @__PURE__ */ ((CalloutChannel2) => {
|
|
25
|
+
CalloutChannel2["TELEGRAM"] = "telegram";
|
|
26
|
+
return CalloutChannel2;
|
|
27
|
+
})(CalloutChannel || {});
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
CalloutChannel
|
|
31
|
+
});
|
package/dist/cjs/data/index.cjs
CHANGED
|
@@ -15,6 +15,9 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
16
|
var data_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(data_exports);
|
|
18
|
+
__reExport(data_exports, require("./callout-access.cjs"), module.exports);
|
|
19
|
+
__reExport(data_exports, require("./callout-captcha.cjs"), module.exports);
|
|
20
|
+
__reExport(data_exports, require("./callout-channel.cjs"), module.exports);
|
|
18
21
|
__reExport(data_exports, require("./callout-component-base-type.cjs"), module.exports);
|
|
19
22
|
__reExport(data_exports, require("./callout-component-input-selectable-types.cjs"), module.exports);
|
|
20
23
|
__reExport(data_exports, require("./callout-component-input-text-types.cjs"), module.exports);
|
|
@@ -32,6 +35,9 @@ __reExport(data_exports, require("./payment-method.cjs"), module.exports);
|
|
|
32
35
|
__reExport(data_exports, require("./payment-status.cjs"), module.exports);
|
|
33
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
37
|
0 && (module.exports = {
|
|
38
|
+
...require("./callout-access.cjs"),
|
|
39
|
+
...require("./callout-captcha.cjs"),
|
|
40
|
+
...require("./callout-channel.cjs"),
|
|
35
41
|
...require("./callout-component-base-type.cjs"),
|
|
36
42
|
...require("./callout-component-input-selectable-types.cjs"),
|
|
37
43
|
...require("./callout-component-input-text-types.cjs"),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var callout_variant_data_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(callout_variant_data_exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var callout_variant_navigation_data_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(callout_variant_navigation_data_exports);
|
package/dist/cjs/types/index.cjs
CHANGED
|
@@ -82,6 +82,8 @@ __reExport(types_exports, require("./callout-response-comment-filter-name.cjs"),
|
|
|
82
82
|
__reExport(types_exports, require("./callout-response-filter-name.cjs"), module.exports);
|
|
83
83
|
__reExport(types_exports, require("./callout-response-view-schema.cjs"), module.exports);
|
|
84
84
|
__reExport(types_exports, require("./callout-tag-filter-name.cjs"), module.exports);
|
|
85
|
+
__reExport(types_exports, require("./callout-variant-data.cjs"), module.exports);
|
|
86
|
+
__reExport(types_exports, require("./callout-variant-navigation-data.cjs"), module.exports);
|
|
85
87
|
__reExport(types_exports, require("./client-api-error-data.cjs"), module.exports);
|
|
86
88
|
__reExport(types_exports, require("./contact-data.cjs"), module.exports);
|
|
87
89
|
__reExport(types_exports, require("./contact-profile-data.cjs"), module.exports);
|
|
@@ -270,6 +272,8 @@ __reExport(types_exports, require("./validator.cjs"), module.exports);
|
|
|
270
272
|
...require("./callout-response-filter-name.cjs"),
|
|
271
273
|
...require("./callout-response-view-schema.cjs"),
|
|
272
274
|
...require("./callout-tag-filter-name.cjs"),
|
|
275
|
+
...require("./callout-variant-data.cjs"),
|
|
276
|
+
...require("./callout-variant-navigation-data.cjs"),
|
|
273
277
|
...require("./client-api-error-data.cjs"),
|
|
274
278
|
...require("./contact-data.cjs"),
|
|
275
279
|
...require("./contact-profile-data.cjs"),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var CalloutAccess = /* @__PURE__ */ ((CalloutAccess2) => {
|
|
2
|
+
CalloutAccess2["Member"] = "member";
|
|
3
|
+
CalloutAccess2["Guest"] = "guest";
|
|
4
|
+
CalloutAccess2["Anonymous"] = "anonymous";
|
|
5
|
+
CalloutAccess2["OnlyAnonymous"] = "only-anonymous";
|
|
6
|
+
return CalloutAccess2;
|
|
7
|
+
})(CalloutAccess || {});
|
|
8
|
+
export {
|
|
9
|
+
CalloutAccess
|
|
10
|
+
};
|
package/dist/esm/data/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./callout-access.js";
|
|
2
|
+
export * from "./callout-captcha.js";
|
|
3
|
+
export * from "./callout-channel.js";
|
|
1
4
|
export * from "./callout-component-base-type.js";
|
|
2
5
|
export * from "./callout-component-input-selectable-types.js";
|
|
3
6
|
export * from "./callout-component-input-text-types.js";
|
|
File without changes
|
|
File without changes
|
package/dist/esm/types/index.js
CHANGED
|
@@ -65,6 +65,8 @@ export * from "./callout-response-comment-filter-name.js";
|
|
|
65
65
|
export * from "./callout-response-filter-name.js";
|
|
66
66
|
export * from "./callout-response-view-schema.js";
|
|
67
67
|
export * from "./callout-tag-filter-name.js";
|
|
68
|
+
export * from "./callout-variant-data.js";
|
|
69
|
+
export * from "./callout-variant-navigation-data.js";
|
|
68
70
|
export * from "./client-api-error-data.js";
|
|
69
71
|
export * from "./contact-data.js";
|
|
70
72
|
export * from "./contact-profile-data.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** All possible strings that can be passed to the content get controller to retrieve Beabee content data */
|
|
2
|
-
export declare const contentIds: ("email" | "join" | "join/setup" | "profile" | "general" | "contacts" | "share" | "payment"
|
|
2
|
+
export declare const contentIds: ("telegram" | "email" | "join" | "join/setup" | "profile" | "general" | "contacts" | "share" | "payment")[];
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./callout-access.ts";
|
|
2
|
+
export * from "./callout-captcha.ts";
|
|
3
|
+
export * from "./callout-channel.ts";
|
|
1
4
|
export * from "./callout-component-base-type.ts";
|
|
2
5
|
export * from "./callout-component-input-selectable-types.ts";
|
|
3
6
|
export * from "./callout-component-input-text-types.ts";
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import type { CalloutResponseViewSchema } from "./index.ts";
|
|
2
|
+
import type { CalloutAccess, CalloutCaptcha } from "../data/index.ts";
|
|
1
3
|
export interface CalloutData {
|
|
2
|
-
slug
|
|
3
|
-
title: string;
|
|
4
|
-
excerpt: string;
|
|
4
|
+
slug?: string;
|
|
5
5
|
image: string;
|
|
6
6
|
starts: Date | null;
|
|
7
7
|
expires: Date | null;
|
|
8
8
|
allowUpdate: boolean;
|
|
9
9
|
allowMultiple: boolean;
|
|
10
|
-
access:
|
|
10
|
+
access: CalloutAccess;
|
|
11
|
+
captcha: CalloutCaptcha;
|
|
11
12
|
hidden: boolean;
|
|
13
|
+
responseViewSchema?: CalloutResponseViewSchema | null;
|
|
12
14
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CalloutVariantNavigationData } from "./index.ts";
|
|
2
|
+
export interface CalloutVariantData {
|
|
3
|
+
title: string;
|
|
4
|
+
excerpt: string;
|
|
5
|
+
intro: string;
|
|
6
|
+
thanksTitle: string;
|
|
7
|
+
thanksText: string;
|
|
8
|
+
thanksRedirect: string | null;
|
|
9
|
+
shareTitle: string | null;
|
|
10
|
+
shareDescription: string | null;
|
|
11
|
+
slideNavigation: Record<string, CalloutVariantNavigationData>;
|
|
12
|
+
componentText: Record<string, string>;
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { CalloutData, CalloutVariantData, SetCalloutFormSchema } from "./index.ts";
|
|
2
|
+
export interface CreateCalloutData extends CalloutData {
|
|
3
|
+
formSchema: SetCalloutFormSchema;
|
|
4
|
+
variants: Record<string, CalloutVariantData>;
|
|
5
|
+
}
|
|
@@ -65,6 +65,8 @@ export * from "./callout-response-comment-filter-name.ts";
|
|
|
65
65
|
export * from "./callout-response-filter-name.ts";
|
|
66
66
|
export * from "./callout-response-view-schema.ts";
|
|
67
67
|
export * from "./callout-tag-filter-name.ts";
|
|
68
|
+
export * from "./callout-variant-data.ts";
|
|
69
|
+
export * from "./callout-variant-navigation-data.ts";
|
|
68
70
|
export * from "./client-api-error-data.ts";
|
|
69
71
|
export * from "./contact-data.ts";
|
|
70
72
|
export * from "./contact-profile-data.ts";
|
package/package.json
CHANGED