PageSourceSearch

https://www.adyen.com/main_nuxt/C5p5YMrt.js

js adyen.com collected 2026-10-01 07:39:13 UTC 23,755 bytes, 57 lines download raw bytes

1import{aR as p}from"./kbcImT7M.js";import{z as _e,u as Te,B as pe,t as Le,ak as fe,aS as Ae,x as De,o as he,T as Ie,a5 as Re,C as Se,b7 as Ne,U as me,h as Oe,c as He,d as Be,r as Ce}from"./BbTuFodJ.js";import{c as Z}from"./DRjGGAzo.js";const be=t=>t?{id:t.sys?.id||"",label:t.label||"",language:t.language||"",sourceCode:t.sourceCode||""}:null;var a=(function(t){return t.DOCUMENT="document",t.PARAGRAPH="paragraph",t.HEADING_1="heading-1",t.HEADING_2="heading-2",t.HEADING_3="heading-3",t.HEADING_4="heading-4",t.HEADING_5="heading-5",t.HEADING_6="heading-6",t.OL_LIST="ordered-list",t.UL_LIST="unordered-list",t.LIST_ITEM="list-item",t.HR="hr",t.QUOTE="blockquote",t.EMBEDDED_ENTRY="embedded-entry-block",t.EMBEDDED_ASSET="embedded-asset-block",t.EMBEDDED_RESOURCE="embedded-resource-block",t.TABLE="table",t.TABLE_ROW="table-row",t.TABLE_CELL="table-cell",t.TABLE_HEADER_CELL="table-header-cell",t})({}),m=(function(t){return t.ASSET_HYPERLINK="asset-hyperlink",t.EMBEDDED_ENTRY="embedded-entry-inline",t.EMBEDDED_RESOURCE="embedded-resource-inline",t.ENTRY_HYPERLINK="entry-hyperlink",t.HYPERLINK="hyperlink",t.RESOURCE_HYPERLINK="resource-hyperlink",t})({}),Y=(function(t){return t.BOLD="bold",t.ITALIC="italic",t.UNDERLINE="underline",t.CODE="code",t.SUPERSCRIPT="superscript",t.SUBSCRIPT="subscript",t.STRIKETHROUGH="strikethrough",t})({});const Pe=[a.PARAGRAPH,a.HEADING_1,a.HEADING_2,a.HEADING_3,a.HEADING_4,a.HEADING_5,a.HEADING_6,a.OL_LIST,a.UL_LIST,a.HR,a.QUOTE,a.EMBEDDED_ENTRY,a.EMBEDDED_ASSET,a.EMBEDDED_RESOURCE,a.TABLE],ae=[a.PARAGRAPH,a.HEADING_1,a.HEADING_2,a.HEADING_3,a.HEADING_4,a.HEADING_5,a.HEADING_6,a.OL_LIST,a.UL_LIST,a.HR,a.QUOTE,a.EMBEDDED_ENTRY,a.EMBEDDED_ASSET,a.EMBEDDED_RESOURCE];a.TABLE,a.TABLE_ROW,a.TABLE_CELL,a.TABLE_HEADER_CELL;a.HR,a.EMBEDDED_ENTRY,a.EMBEDDED_ASSET,a.EMBEDDED_RESOURCE;const ge={[a.OL_LIST]:[a.LIST_ITEM],[a.UL_LIST]:[a.LIST_ITEM],[a.LIST_ITEM]:ae,[a.QUOTE]:[a.PARAGRAPH],[a.TABLE]:[a.TABLE_ROW],[a.TABLE_ROW]:[a.TABLE_CELL,a.TABLE_HEADER_CELL],[a.TABLE_CELL]:[a.PARAGRAPH,a.UL_LIST,a.OL_LIST],[a.TABLE_HEADER_CELL]:[a.PARAGRAPH]},Me=[a.HEADING_1,a.HEADING_2,a.HEADING_3,a.HEADING_4,a.HEADING_5,a.HEADING_6];[a.PARAGRAPH,...Me];a.DOCUMENT,a.PARAGRAPH,a.HEADING_1,a.HEADING_2,a.HEADING_3,a.HEADING_4,a.HEADING_5,a.HEADING_6,a.OL_LIST,a.UL_LIST,a.LIST_ITEM,a.HR,a.QUOTE,a.EMBEDDED_ENTRY,a.EMBEDDED_ASSET,m.HYPERLINK,m.ENTRY_HYPERLINK,m.ASSET_HYPERLINK,m.EMBEDDED_ENTRY;a.DOCUMENT,a.PARAGRAPH;function ye(t){return t.nodeType==="text"}const q=({path:t,property:e,typeName:n,value:s})=>({details:`The type of "${e}" is incorrect, expected type: ${n}`,name:"type",path:t.toArray(),type:n,value:s}),Ge=({min:t,value:e,path:n})=>({name:"size",min:t,path:n.toArray(),details:`Size must be at least ${t}`,value:e}),ve=({max:t,value:e,path:n})=>({name:"size",max:t,path:n.toArray(),details:`Size must be at most ${t}`,value:e}),Ke=({expected:t,value:e,path:n})=>({details:"Value must be one of expected values",name:"in",expected:[...t].sort(),path:n.toArray(),value:e}),Ue=({property:t,path:e})=>({details:`The property "${t}" is not expected`,name:"unexpected",path:e.toArray()}),Ye=({property:t,path:e})=>({details:`The property "${t}" is required here`,name:"required",path:e.toArray()});class V{obj;path;_errors=[];constructor(e,n){this.obj=e,this.path=n}catch=(...e)=>{this._errors.push(...e)};get errors(){const e=n=>JSON.stringify({details:n.details,path:n.path});return this._errors.filter((n,s)=>this._errors.findIndex(l=>e(n)===e(l))===s)}exists=e=>e in this.obj?!0:(this.catch(Ye({property:e,path:this.path.of(e)})),!1);object=e=>{const n=e?this.obj[e]:this.obj;if(e&&!this.exists(e))return!1;if(typeof n=="object"&&!Array.isArray(n)&&n!==null)return!0;const s=e?this.path.of(e):this.path,l=e??this.path.last()??"value";return this.catch(q({typeName:"Object",property:l,path:s,value:n})),!1};string=e=>{const n=this.obj[e];return e&&!this.exists(e)?!1:typeof n=="string"?!0:(this.catch(q({typeName:"String",property:e,path:this.path.of(e),value:n})),!1)};number=(e,n)=>{const s=this.obj[e];return n&&!(e in this.obj)?!0:this.exists(e)?typeof s=="number"&&!Number.isNaN(s)?!0:(this.catch(q({typeName:"Number",property:e,path:this.path.of(e),value:s})),!1):!1};array=e=>{const n=this.obj[e];return e&&!this.exists(e)?!1:Array.isArray(n)?!0:(this.catch(q({typeName:"Array",property:e,path:this.path.of(e),value:n})),!1)};enum=(e,n)=>{const s=this.obj[e];return typeof s=="string"&&n.includes(s)?!0:(this.catch(Ke({expected:n,value:s,path:this.path.of(e)})),!1)};empty=e=>{if(!this.array(e))return!1;const n=this.obj[e];return n.length===0?!0:(this.catch(ve({max:0,value:n,path:this.path.of(e)})),!1)};minLength=(e,n)=>{if(!this.array(e))return!1;const s=this.obj[e];return s.length>=n?!0:(this.catch(Ge({min:n,value:s,path:this.path.of(e)})),!1)};noAdditionalProperties=e=>{const n=Object.keys(this.obj).sort().filter(s=>!e.includes(s));
1return n.forEach(s=>this.catch(Ue({property:s,path:this.path.of(s)}))),n.length===0};each=(e,n)=>{if(!this.array(e))return;const s=this.obj[e];let l=!1;s.forEach((A,S)=>{if(l)return;const O=n(A,this.path.of(e).of(S));O.length>0&&(l=!0),this.catch(...O)})}}const W=[];class X{contentRule;validateData;constructor(e,n){this.contentRule=e,this.validateData=n}assert(e,n){const s=new V(e,n);if(!s.object())return s.errors;s.noAdditionalProperties(["nodeType","data","content"]);const{nodeTypes:l,min:A=0}=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,n);if(l.length===0&&A>0)throw new Error(`Invalid content rule. Cannot have enforce a 'min' of ${A} with no nodeTypes`);if(s.minLength("content",A),l.length===0?s.empty("content"):s.each("content",(S,O)=>{const i=new V(S,O);return i.object()&&i.enum("nodeType",l),i.errors}),s.object("data")){const S=this.validateData?.(e.data,n.of("data"))??[];s.catch(...S)}return s.errors}}class je extends X{linkType;type;constructor(e,n){super(n,(s,l)=>this.assertLink(s,l)),this.linkType=e,this.type=this.linkType.startsWith("Contentful:")?"ResourceLink":"Link"}assertLink=(e,n)=>{const s=new V(e,n);if(s.object("target")){const l=new V(e.target.sys,n.of("target").of("sys"));l.object()&&(l.enum("type",[this.type]),l.enum("linkType",[this.linkType]),this.type==="Link"?(l.string("id"),l.noAdditionalProperties(["type","linkType","id"])):this.type==="ResourceLink"&&(l.string("urn"),l.noAdditionalProperties(["type","linkType","urn"]))),s.catch(...l.errors)}return s.noAdditionalProperties(["target"]),s.errors}}class we extends X{constructor(){super(["text"],(e,n)=>this.assertLink(e,n))}assertLink=(e,n)=>{const s=new V(e,n);return s.string("uri"),s.noAdditionalProperties(["uri"]),s.errors}}const v=(t,e)=>new X(t,e),w=(t,e)=>new je(t,e),j=v([...Object.values(m),"text"].sort()),ee=v([a.LIST_ITEM]),te=w("Entry",W),ne=v(()=>({nodeTypes:[a.PARAGRAPH],min:1}),(t,e)=>{const n=new V(t,e);return n.noAdditionalProperties(["colspan","rowspan"]),n.number("colspan",!0),n.number("rowspan",!0),n.errors});a.DOCUMENT+"",v(Pe),a.PARAGRAPH+"",a.HEADING_1+"",a.HEADING_2+"",a.HEADING_3+"",a.HEADING_4+"",a.HEADING_5+"",a.HEADING_6+"",a.QUOTE+"",v(ge[a.QUOTE]),a.EMBEDDED_ENTRY+"",a.EMBEDDED_ASSET+"",w("Asset",W),a.EMBEDDED_RESOURCE+"",w("Contentful:Entry",W),a.HR+"",v(W),a.OL_LIST+"",a.UL_LIST+"",a.LIST_ITEM+"",v([...ae].sort()),a.TABLE+"",v(()=>({nodeTypes:[a.TABLE_ROW],min:1})),a.TABLE_ROW+"",v(()=>({nodeTypes:[a.TABLE_CELL,a.TABLE_HEADER_CELL],min:1})),a.TABLE_CELL+"",a.TABLE_HEADER_CELL+"",m.HYPERLINK+"",new we,m.EMBEDDED_ENTRY+"",m.EMBEDDED_RESOURCE+"",w("Contentful:Entry",W),m.ENTRY_HYPERLINK+"",w("Entry",["text"]),m.ASSET_HYPERLINK+"",w("Asset",["text"]),m.RESOURCE_HYPERLINK+"",w("Contentful:Entry",["text"]);const z=(t,e,n)=>p("span",{key:n,style:{margin:"0px 5px",padding:"0 .25rem 0 .75rem",border:"1px solid #d3dce0",fontFamily:"monospace"}},`inline: ${t}, sys.id: ${e.data.target.sys.id}`),$e={[Y.BOLD]:(t,e)=>p("strong",{key:e},t),[Y.ITALIC]:(t,e)=>p("em",{key:e},t),[Y.UNDERLINE]:(t,e)=>p("u",{key:e},t),[Y.CODE]:(t,e)=>p("code",{key:e},t),[Y.SUPERSCRIPT]:(t,e)=>p("sup",{key:e},t),[Y.SUBSCRIPT]:(t,e)=>p("sub",{key:e},t),[Y.STRIKETHROUGH]:(t,e)=>p("s",{key:e},t)},ke={[a.PARAGRAPH]:(t,e,n)=>p("p",{key:e},n(t.content,e,n)),[a.HEADING_1]:(t,e,n)=>p("h1",{key:e},n(t.content,e,n)),[a.HEADING_2]:(t,e,n)=>p("h2",{key:e},n(t.content,e,n)),[a.HEADING_3]:(t,e,n)=>p("h3",{key:e},n(t.content,e,n)),[a.HEADING_4]:(t,e,n)=>p("h4",{key:e},n(t.content,e,n)),[a.HEADING_5]:(t,e,n)=>p("h5",{key:e},n(t.content,e,n)),[a.HEADING_6]:(t,e,n)=>p("h6",{key:e},n(t.content,e,n)),[a.EMBEDDED_ENTRY]:(t,e,n)=>p("div",{key:e},n(t.content,e,n)),[a.UL_LIST]:(t,e,n)=>p("ul",{key:e},n(t.content,e,n)),[a.OL_LIST]:(t,e,n)=>p("ol",{key:e},n(t.content,e,n)),[a.LIST_ITEM]:(t,e,n)=>p("li",{key:e},n(t.content,e,n)),[a.QUOTE]:(t,e,n)=>p("blockquote",{key:e},n(t.content,e,n)),[a.TABLE]:(t,e,n)=>p("table",{key:e},n(t.content,e,n)),[a.TABLE_ROW]:(t,e,n)=>p("tr",{key:e},n(t.content,e,n)),[a.TABLE_CELL]:(t,e,n)=>p("td",{key:e},n(t.content,e,n)),[a.TABLE_HEADER_CELL]:(t,e,n)=>p("th",{key:e},n(t.content,e,n)),[a.HR]:(t,e)=>p("hr",{key:e}),[m.ASSET_HYPERLINK]:(t,e)=>z(m.ASSET_HYPERLINK,t,e),[m.ENTRY_HYPERLINK]:(t,e)=>z(m.ENTRY_HYPERLINK,t,e),[m.EMBEDDED_ENTRY]:(t,e)=>z(m.EMBEDDED_ENTRY,t,e),[m.HYPERLINK]:(t,e,n)=>p("a",{key:e,href:t.data.uri},n(t.content,e,n)),text:({marks:t,value:e},n,s)=>t.length?[...t].reverse().reduce((A,S,O)=>s[S.type]([A],`${n}-${O}`,p),e):e},oe=(t,e,n)=>t.map((s,l)=>Ve(s,`${e}-${l}`,n)),Ve=(t,e,n)=>{const s=n.node;if(ye(t)){const l=n.mark;return s.text(t,e,l)}else{const l=A=>oe(A,e,n);return s?!t.nodeType||!s[t.nodeType]?p("div",{key:e},"(Unrecognized node type) "+(t.nodeType||"empty")):s[t.nodeType](t,e,l):p("div",{key:e},`${e} ;lost nodeRenderer`)}},ie=({nodeRenderers:t,markRenderers:e,document:n})=>{if(!n)return console.warn("No document given to RichText renderer"),[];const s={node:{...ke,...t},mark:{...$e,...e}};return oe(n.content,"RichText-",s)};ie.inheritAttrs=!1;ie.props=["document","nodeRenderers","markRenderers"];const et=({preview:t})=>Se`
2  ${_e}
3  ${Te}
4  ${pe}
5  ${Le}
6  ${fe}
7  ${Ae}
8  ${De}
9  ${he}
10  ${Ie}
11  ${Re}
12  query entryQuery($id: String!, $locale: String!) {
13    entryCollection(limit: 1, where: {sys: {id: $id}}, locale: $locale, preview: ${t}) {
14      items {
15        sys {
16          id
17        }
18        contentType: __typename
19        ... on ModuleTable {
20          ...ModuleTableFragment
21        }
22        ... on ModuleMedia {
23          ...ModuleMediaFragment
24        }
25        ... on ModuleVideo {
26          ...ModuleVideoFragment
27        }
28        ... on ModuleInternalVideo {
29          ...ModuleInternalVideoFragment
30        }
31        ... on ModuleNavigationLink {
32          ...ModuleNavigationLinkFragment
33        }
34        ... on ModuleChapter {
35          title
36        }
37        ... on ModuleCodeSnippet {
38          ...ModuleCodeSnippetFragment
39        }
40        ... on PageKnowledgeHubDetail {
41          ...PageKnowledgeHubDetailFragment
42        }
43        ... on BlockFaqGroup {
44          ...BlockFaqGroupFragment
45        }
46        ... on BlockQuote {
47          ...BlockQuoteFragment
48        }
49        ... on BlockCallToActionWithMedia {
50          ...BlockCallToActionWithMediaFragment
51        }
52      }
53    }
54  }
55`;var x={},re;function Qe(){return re||(re=1,(function(t){Object.defineProperty(t,"__esMo
55dule",{value:!0});var e=function(){return e=Object.assign||function(r){for(var c,_=1,L=arguments.length;_<L;_++){c=arguments[_];for(var I in c)Object.prototype.hasOwnProperty.call(c,I)&&(r[I]=c[I])}return r},e.apply(this,arguments)};var n=/["'&<>]/,s=l;function l(o){var r=""+o,c=n.exec(r);if(!c)return r;var _,L="",I=0,T=0;for(I=c.index;I<r.length;I++){switch(r.charCodeAt(I)){case 34:_="&quot;";break;case 38:_="&amp;";break;case 39:_="&#39;";break;case 60:_="&lt;";break;case 62:_="&gt;";break;default:continue}T!==I&&(L+=r.substring(T,I)),T=I+1,L+=_}return T!==I?L+r.substring(T,I):L}var A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Z<"u"?Z:typeof self<"u"?self:{};function S(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function O(o,r){return r={exports:{}},o(r,r.exports),r.exports}var i=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BLOCKS=void 0,(function(c){c.DOCUMENT="document",c.PARAGRAPH="paragraph",c.HEADING_1="heading-1",c.HEADING_2="heading-2",c.HEADING_3="heading-3",c.HEADING_4="heading-4",c.HEADING_5="heading-5",c.HEADING_6="heading-6",c.OL_LIST="ordered-list",c.UL_LIST="unordered-list",c.LIST_ITEM="list-item",c.HR="hr",c.QUOTE="blockquote",c.EMBEDDED_ENTRY="embedded-entry-block",c.EMBEDDED_ASSET="embedded-asset-block",c.TABLE="table",c.TABLE_ROW="table-row",c.TABLE_CELL="table-cell",c.TABLE_HEADER_CELL="table-header-cell"})(r.BLOCKS||(r.BLOCKS={}))});S(i),i.BLOCKS;var G=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.INLINES=void 0,(function(c){c.HYPERLINK="hyperlink",c.ENTRY_HYPERLINK="entry-hyperlink",c.ASSET_HYPERLINK="asset-hyperlink",c.EMBEDDED_ENTRY="embedded-entry-inline"})(r.INLINES||(r.INLINES={}))});S(G),G.INLINES;var D=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var c;(function(_){_.BOLD="bold",_.ITALIC="italic",_.UNDERLINE="underline",_.CODE="code",_.SUPERSCRIPT="superscript",_.SUBSCRIPT="subscript"})(c||(c={})),r.default=c});S(D);var E=O(function(o,r){var c=A&&A.__spreadArray||function(T,g,u){if(u||arguments.length===2)for(var f=0,N=g.length,b;f<N;f++)(b||!(f in g))&&(b||(b=Array.prototype.slice.call(g,0,f)),b[f]=g[f]);return T.concat(b||Array.prototype.slice.call(g))},_=A&&A.__importDefault||function(T){return T&&T.__esModule?T:{default:T}},L;Object.defineProperty(r,"__esModule",{value:!0}),r.V1_MARKS=r.V1_NODE_TYPES=r.TEXT_CONTAINERS=r.HEADINGS=r.CONTAINERS=r.VOID_BLOCKS=r.TABLE_BLOCKS=r.LIST_ITEM_BLOCKS=r.TOP_LEVEL_BLOCKS=void 0;var I=_(D);r.TOP_LEVEL_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.TABLE],r.LIST_ITEM_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET],r.TABLE_BLOCKS=[i.BLOCKS.TABLE,i.BLOCKS.TABLE_ROW,i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],r.VOID_BLOCKS=[i.BLOCKS.HR,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET],r.CONTAINERS=(L={},L[i.BLOCKS.OL_LIST]=[i.BLOCKS.LIST_ITEM],L[i.BLOCKS.UL_LIST]=[i.BLOCKS.LIST_ITEM],L[i.BLOCKS.LIST_ITEM]=r.LIST_ITEM_BLOCKS,L[i.BLOCKS.QUOTE]=[i.BLOCKS.PARAGRAPH],L[i.BLOCKS.TABLE]=[i.BLOCKS.TABLE_ROW],L[i.BLOCKS.TABLE_ROW]=[i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],L[i.BLOCKS.TABLE_CELL]=[i.BLOCKS.PARAGRAPH],L[i.BLOCKS.TABLE_HEADER_CELL]=[i.BLOCKS.PARAGRAPH],L),r.HEADINGS=[i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6],r.TEXT_CONTAINERS=c([i.BLOCKS.PARAGRAPH],r.HEADINGS,!0),r.V1_NODE_TYPES=[i.BLOCKS.DOCUMENT,i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.LIST_ITEM,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,G.INLINES.HYPERLINK,G.INLINES.ENTRY_HYPERLINK,G.INLINES.ASSET_HYPERLINK,G.INLINES.EMBEDDED_ENTRY,"text"],r.V1_MARKS=[I.default.BOLD,I.default.CODE,I.default.ITALIC,I.default.UNDERLINE]});S(E),E.V1_MARKS,E.V1_NODE_TYPES,E.TEXT_CONTAINERS,E.HEADINGS,E.CONTAINERS,E.VOID_BLOCKS,E.TABLE_BLOCKS,E.LIST_ITEM_BLOCKS,E.TOP_LEVEL_BLOCKS;
55var R=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0})});S(R);var M=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0})});S(M);var K=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var c={nodeType:i.BLOCKS.DOCUMENT,data:{},content:[{nodeType:i.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};r.default=c});S(K);var P=O(function(o,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isText=r.isBlock=r.isInline=void 0;function c(T,g){for(var u=0,f=Object.keys(T);u<f.length;u++){var N=f[u];if(g===T[N])return!0}return!1}function _(T){return c(G.INLINES,T.nodeType)}r.isInline=_;function L(T){return c(i.BLOCKS,T.nodeType)}r.isBlock=L;function I(T){return T.nodeType==="text"}r.isText=I});S(P),P.isText,P.isBlock,P.isInline;var C=O(function(o,r){var c=A&&A.__createBinding||(Object.create?(function(u,f,N,b){b===void 0&&(b=N);var k=Object.getOwnPropertyDescriptor(f,N);(!k||("get"in k?!f.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return f[N]}}),Object.defineProperty(u,b,k)}):(function(u,f,N,b){b===void 0&&(b=N),u[b]=f[N]})),_=A&&A.__setModuleDefault||(Object.create?(function(u,f){Object.defineProperty(u,"default",{enumerable:!0,value:f})}):function(u,f){u.default=f}),L=A&&A.__exportStar||function(u,f){for(var N in u)N!=="default"&&!Object.prototype.hasOwnProperty.call(f,N)&&c(f,u,N)},I=A&&A.__importStar||function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var N in u)N!=="default"&&Object.prototype.hasOwnProperty.call(u,N)&&c(f,u,N);return _(f,u),f},T=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(r,"__esModule",{value:!0}),r.helpers=r.EMPTY_DOCUMENT=r.MARKS=r.INLINES=r.BLOCKS=void 0,Object.defineProperty(r,"BLOCKS",{enumerable:!0,get:function(){return i.BLOCKS}}),Object.defineProperty(r,"INLINES",{enumerable:!0,get:function(){return G.INLINES}}),Object.defineProperty(r,"MARKS",{enumerable:!0,get:function(){return T(D).default}}),L(E,r),L(R,r),L(M,r),Object.defineProperty(r,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return T(K).default}});var g=I(P);r.helpers=g});S(C);var Q=C.helpers;C.EMPTY_DOCUMENT;var y=C.MARKS,H=C.INLINES,h=C.BLOCKS,d,B,U=function(o){return'"'.concat(o.replace(/"/g,"&quot;"),'"')},$=(d={},d[h.PARAGRAPH]=function(o,r){return"<p>".concat(r(o.content),"</p>")},d[h.HEADING_1]=function(o,r){return"<h1>".concat(r(o.content),"</h1>")},d[h.HEADING_2]=function(o,r){return"<h2>".concat(r(o.content),"</h2>")},d[h.HEADING_3]=function(o,r){return"<h3>".concat(r(o.content),"</h3>")},d[h.HEADING_4]=function(o,r){return"<h4>".concat(r(o.content),"</h4>")},d[h.HEADING_5]=function(o,r){return"<h5>".concat(r(o.content),"</h5>")},d[h.HEADING_6]=function(o,r){return"<h6>".concat(r(o.content),"</h6>")},d[h.EMBEDDED_ENTRY]=function(o,r){return"<div>".concat(r(o.content),"</div>")},d[h.UL_LIST]=function(o,r){return"<ul>".concat(r(o.content),"</ul>")},d[h.OL_LIST]=function(o,r){return"<ol>".concat(r(o.content),"</ol>")},d[h.LIST_ITEM]=function(o,r){return"<li>".concat(r(o.content),"</li>")},d[h.QUOTE]=function(o,r){return"<blockquote>".concat(r(o.content),"</blockquote>")},d[h.HR]=function(){return"<hr/>"},d[h.TABLE]=function(o,r){return"<table>".concat(r(o.content),"</table>")},d[h.TABLE_ROW]=function(o,r){return"<tr>".concat(r(o.content),"</tr>")},d[h.TABLE_HEADER_CELL]=function(o,r){return"<th>".concat(r(o.content),"</th>")},d[h.TABLE_CELL]=function(o,r){return"<td>".concat(r(o.content),"</td>")},d[H.ASSET_HYPERLINK]=function(o){return F(H.ASSET_HYPERLINK,o)},d[H.ENTRY_HYPERLINK]=function(o){return F(H.ENTRY_HYPERLINK,o)},d[H.EMBEDDED_ENTRY]=function(o){return F(H.EMBEDDED_ENTRY,o)},d[H.HYPERLINK]=function(o,r){var c=typeof o.data.uri=="string"?o.data.uri:"";return"<a href=".concat(U(c),">").concat(r(o.content),"</a>")},d),le=(B={},B[y.BOLD]=function(o){return"<b>".concat(o,"</b>")},B[y.ITALIC]=function(o){return"<i>".concat(o,"</i>")},B[y.UNDERLINE]=function(o){return"<u>".concat(o,"</u>")},B[y.CODE]=function(o){return"<code>".concat(o,"</code>")},B[y.SUPERSCRIPT]=function(o){return"<sup>".concat(o,"</sup>")},B[y.SUBSCRIPT]=function(o){return"<sub>".concat(o,"</sub>")},B),F=function(o,r){return"<span>type: ".concat(s(o)," id: ").concat(s(r.data.target.sys.id),"</span>")};function ue(o,r){return r===void 0&&(r={}),!o||!o.content?"":J(o.content,{renderNode:e(e({},$),r.renderNode),renderMark:e(e({},le),r.renderMark)})}function J(o,r){var c=r.renderNode,_=r.renderMark;return o.map(function(L){return de(L,{renderNode:c,renderMark:_})}).join("")}function de(o,r){var c=r.renderNode,_=r.renderMark;if(Q.isText(o)){var L=s(o.value);return o.marks.length>0?o.marks.reduce(function(T,g){return _[g.type]?_[g.type](T):T},L):L}else{var I=function(T){return J(T,{renderMark:_,renderNode:c})};return!o.nodeType||!c[o.nodeType]?"":c[o.nodeType](o,I)}}t.documentToHtmlString=ue})(x)),x}var We=Qe();const qe=["embedded-entry-block","entry-hyperlink"],se=t=>(t||"").split(`
56
57`).reduce((e,n)=>`${e}<p>${n}</p>`,"").replace(/(?:\r\n|\r|\n)/g,"<br>"),Fe=t=>{const e=document.createElement("th");return e.innerHTML=se(t),e},ce=/\{(.)\}/,ze=t=>(t||"").replace(ce,'<span class="table-icon $1">$1</span>'),xe=t=>ce.test(t),Ee=(t,e=[])=>{e&&e.forEach(n=>{qe.includes(n.nodeType)&&t.add(n.data.target.sys.id),n?.content?.length&&Ee(t,n.content)})},tt=()=>({getLinkedEntriesIds:(D=[])=>{const E=new Set;return Ee(E,D),E},createTableModuleElement:D=>{const{useColumnHeader:E,useRowHeader:R,fixedLayout:M,table:K}=D,P=K?.tableData;if(!P)return document.createElement("table");const C=document.createElement("table");return M&&C.classList.add("table-layout--fixed"),P.forEach((Q,y)=>{const H=C.insertRow(),h=new Set;
57if(Q.forEach((d,B)=>{const U=ze(d);let $;E&&y===0||R&&B===0?$=H.appendChild(Fe(U)):($=H.insertCell(),$.innerHTML=se(U)),xe(d)&&($.classList.add("table-column--fixed-width"),h.add(B))}),E&&h.size){const B=C.getElementsByTagName("tr")[0].getElementsByTagName("th");B.length&&h.forEach(U=>{B[U].classList.add("table-column--fixed-width")})}}),C},mapTableNodeToDsTableData:(D,E,R=!0)=>{if(!Array.isArray(D?.content)||D.content.length<1)return{};const M=[...D.content],K=E?M.shift():M[0],P=H=>H?H.replace("{P}",'<span class="table-icon P">P</span>').replace("{R}",'<span class="table-icon R">R</span>').replace("{V}",'<span class="table-icon V"></span>').replace("{X}",'<span class="table-icon X"></span>').replaceAll("{G}",'<span class="table-icon G">.</span>').replaceAll("{B}",'<span class="table-icon B">.</span>').replaceAll("{RE}",'<span class="table-icon RE">.</span>').replaceAll("{W}",'<span class="table-icon W">.</span>').replaceAll("{GR}",'<span class="table-icon GR">.</span>').replaceAll("{HG}",'<span class="table-icon HG">.</span>'):"",C=K.content.map((H,h)=>({key:`col${h+1}`,text:E?H.content[0].content[0]?.value:""})),Q=M.map((H,h)=>{const d=H.content.map((B,U)=>[`col${U+1}`,R?P(We.documentToHtmlString(B)):Ce.documentToPlainTextString(B)]);return{key:`rowGroup${h+1}`,columns:Object.fromEntries(d)}}),y=C.length>4?"secondary":"primary";return{columns:C,rows:Q,type:y}},mapImageProps:(D,E)=>({image:Be(D,E),borderRadius:!0}),mapVideoProps:(D,E)=>({...He(D,E.imageOptions),borderRadius:!0,ariaLabelPlay:E.labels?.play||"Play",ariaLabelClose:E.labels?.close||"Close"}),mapCodeSnippetProps:(D,E)=>({...be(D),label:`${E}: `}),mapQuoteProps:(D,E)=>{const R=Oe(D,E);return R?{logo:R.logo?R.logo.original:null,text:R.quote,author:R.author,extraInfo:R.role,link:R.link}:{}},mapCardBlogProps:(D,E)=>({...me(D,E),contained:!0,theme:"grey",horizontalMinMedium:!0}),mapMediaTextCardProps:(D,E)=>({...Ne(D,E),contained:!0,fontSizeSmall:!0,left:!0}),mapHeadingProps:(D,{hTag:E})=>{const R={h1:"ds-heading-xlarge",h2:"ds-heading-large",h3:"ds-heading-medium",h4:"ds-heading",h5:"ds-heading-small",h6:"ds-heading-xsmall"},M=D.content.reduce((K,P)=>`${K} ${P.value}`,"");return{attributes:{class:R[E]},text:M}}});
57export{a as B,m as I,ie as R,et as r,tt as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.