1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7681],{103:(e,t,r)=>{r.d(t,{p:()=>n});var s=r(50979),i=r(26308),l=r(94208),a=r(84614);let n=r(25963).forwardRef((e,t)=>{let{children:r,showLinkIcon:n,...o}=e,{t:d}=(0,a.Bd)("common"),{className:h,...c}=o;return(0,s.jsxs)("a",{...c,ref:t,target:"_blank",className:h||"hover:vi-underline focus:vi-underline vi-underline-offset-2",children:[r,n&&(0,s.jsx)(l.g,{className:"vi-ms-0.5",icon:i.U6Q}),(0,s.jsx)("span",{className:"visually-hidden",children:d("common:newTabMessage")})]})})},8563:(e,t,r)=>{r.d(t,{a:()=>s});class s{getValue(e){let t;if(""==this.selector)return this.object;switch(!this.object&&(this.object={}),this.fields.length){case 1:t=this.object[this.fields[0]];break;case 2:t=this.object[this.fields[0]][this.fields[1]];break;case 3:t=this.object[this.fields[0]][this.fields[1]][this.fields[2]];break;case 4:t=this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]];break;case 5:t=this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]][this.fields[4]];break;case 6:t=this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]][this.fields[4]][this.fields[5]];break;default:throw"Structure to complex"}return t}setValue(e){if(""==this.selector){this.object=e;return}switch(this.fields.length){case 1:this.object[this.fields[0]]=e;break;case 2:this.object[this.fields[0]][this.fields[1]]=e;break;case 3:this.object[this.fields[0]][this.fields[1]][this.fields[2]]=e;break;case 4:this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]]=e;break;case 5:this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]][this.fields[4]]=e;break;case 6:this.object[this.fields[0]][this.fields[1]][this.fields[2]][this.fields[3]][this.fields[4]][this.fields[5]]=e;break;default:throw"Structure to complex"}}constructor(e,t){this.object=e,this.selector=t,this.fields=t.split(".")}}},10400:(e,t,r)=>{r.d(t,{cK:()=>d,Ay:()=>c,xW:()=>h});var s=r(50979);let i=e=>{if("object"!=typeof e||null===e)return!1;for(let t in e)if(!Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},l=(e,t)=>
1{let r=e.params;if(!(null==r?void 0:r.i18n))return;let{key:s,values:l}=((e,t)=>"string"==typeof e?{key:e,values:{}}:i(e)?{key:"key"in e&&"string"==typeof e.key?e.key:t,values:"values"in e&&i(e.values)?e.values:{}}:{key:t,values:{}})(r.i18n,"zod:errors.custom");return t(s,{...l,defaultValue:void 0})};var a=r(85265),n=r(25963),o=r(14435);let d=n.createContext(null),h=()=>n.useContext(d),c=e=>{let{t}=(0,a.Bd)();return e.validator&&(e.validator.setMessages(t("joi:messages",{returnObjects:!0,defaultValue:null})),o.config({customError:(e=>t=>{var r,s,i,a,n;switch(t.code){case"invalid_type":return void 0===t.input||null===t.input?e("zod:errors.invalid_type_received_nil",{defaultValue:void 0}):e("zod:errors.invalid_type",{defaultValue:void 0});case"invalid_value":default:return e("zod:errors.invalid_type",{defaultValue:void 0});case"invalid_format":let o=t.format;if(o)return e("zod:errors.invalid_string.".concat(o),{defaultValue:void 0});return e("zod:errors.invalid_date",{defaultValue:void 0});case"too_small":{let i=l(t,e);if(i)return i;let a="date"===t.origin?new Date(t.minimum):t.minimum,n=null==(r=t.inclusive)||r;return e("zod:errors.too_small.".concat(null!=(s=t.origin)?s:"number",".").concat(n?"inclusive":"not_inclusive"),{minimum:a,count:"number"==typeof a?a:void 0,defaultValue:void 0})}case"too_big":{let r=l(t,e);if(r)return r;let s="date"===t.origin?new Date(t.maximum):t.maximum,n=null==(i=t.inclusive)||i;return e("zod:errors.too_big.".concat(null!=(a=t.origin)?a:"number",".").concat(n?"inclusive":"not_inclusive"),{maximum:s,count:"number"==typeof s?s:void 0,defaultValue:void 0})}case"custom":return null!=(n=l(t,e))?n:e("zod:errors.custom",{defaultValue:void 0});case"not_multiple_of":return e("zod:errors.not_multiple_of",{multipleOf:t.divisor,defaultValue:void 0})}})(t)})),(0,s.jsx)(d.Provider,{value:e.validator,children:e.children})}},12661:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(50979),i=r(26426),l=r(74803),a=r(27326);r(25963);class n extends l.A{get additionalErrors(){return this.props.errors?this.props.errors[this.props.link.selector]:null}componentWillMount(){if(this.id="Input_"+this.props.title,!this.props.link)throw Error("ObjectLink is required on field "+this.id);this.handleState()}handleChange(e){var t;this.props.link.setValue(e.target.checked),this.handleState(),(null==(t=this.context)?void 0:t.hasErrorsAtField(this.props.link.selector))&&this.context.check(),this.props.change&&this.props.change(),this.forceUpdate()}onFocus(){this.copy=this.props.link.getValue(),this.handleState(),this.forceUpdate()}onBlur(){this.handleState(),this.forceUpdate()}handleState(){let e=null==this.props.link.getValue()||""==this.props.link.getValue();this.parentClass=e?"ne":"",this.forceUpdate()}componentWillReceiveProps(){this.handleState()}hasError(){var e;return(null==(e=this.context)?void 0:e.hasErrorsAtField(this.props.link.selector))||!!this.additionalErrors}renderError(){var e,t;return(null==(e=this.context)?void 0:e.hasErrors())&&(null==(t=this.context)?void 0:t.hasErrorsAtField(this.props.link.selector))?super.renderError():(0,s.jsxs)(s.Fragment,{children:[this.additionalErrors&&(0,s.jsx)("div",{id:this.getErrorMessageId(),children:(0,s.jsx)("span",{className:"error-message",children:this.additionalErrors})}),(0,s.jsx)("div",{className:"visually-hidden","aria-live":"polite","aria-atomic":"true",role:"alert",children:this.additionalErrors&&(this.props.title?"".concat(this.props.title,". ").concat(this.additionalErrors):this.additionalErrors)})]})}render(){let e=this.hasError();return(0,s.jsxs)("div",{className:(0,i.A)("form-group form-checkbox",this.props.link.getValue(),this.props.className),children:[(0,s.jsxs)("div",{className:"vi-flex vi-flex-col vi-gap-1",children:[(0,s.jsxs)("div",{className:"vi-flex vi-items-center vi-gap-2",children:[(0,s.jsx)("input",{id:this.id,type:"checkbox",disabled:this.props.readOnly,checked:"boolean"==typeof this.props.link.getValue()&&this.props.link.getValue(),onChange:e=>this.handleChange(e),...this.props.required&&{"aria-required":this.props.required,required:this.props.required},...e&&{"aria-describedby":this.getErrorMessageId(),"aria-invalid":!0}}),this.props.title&&(0,s.jsx)("label",{htmlFor:this.id,className:"muted",children:this.props.title})]}),this.renderError()]}),this.props.description&&(0,s.jsx)(a.R,{text:this.props.description})]})}}},15111:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(50979),i=r(26426);r(25963);let l=e=>{let{children:t,type:r,role:l,className:a,...n}=e;return(0,s.jsx)("div",{className:(0,i.A)("alert","alert-".concat(r),a),role:l,...n,children:t})}},17734:(e,t,r)=>{r.d(t,{j:()=>l});var s=r(50979),i=r(85265);r(25963);let l=e=>{var t,r,l;let{t:a,i18n:n}=(0,i.Bd)(),{error:o}=e,d=(e,t)=>{if(n.exists(e))return a(e,t)},h=o?null!=(r=null!=(t=d(o.message,o.translationContext))?t:(e=>{var t;let r="joi:errors."+e.path.join("_")+"."+e.type,s="joi:errors."+e.type;return null!=(t=d(r,e.translationContext))?t:d(s,e.translationContext)})(o))?r:o.message:null;return(0,s.jsxs)(s.Fragment,{children:[h&&(0,s.jsx)("div",{...e.id&&{id:e.id},children:(0,s.jsx)("span",{className:null!=(l=e.className)?l:"error-message",children:h})}),(0,s.jsx)("div",{className:"visually-hidden","aria-live":"polite","aria-atomic":"true",role:"alert",children:h&&(e.title?"".concat(e.title,". ").concat(h):h)})]})}},25075:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(51027),i=r(55024),l=r(13005);class a extends l.Ay{static async listConsents(e,t,r){var a;let n=i.J.applyParametersToUrl({sellerId:e,...r},i.J.BASE_URL()+"/api/public/consents"),o=await this.fetchApi(l.U0.get,n),d=null!=(a=o.docs)?a:o;return Array.isArray(d)?d.map(e=>(0,s.Ul)(e,t)):d}static async getCustomerConsents(e){let{token:t,sellerId:r,customerId:s}=e,a=i.J.applyParametersToUrl({sellerId:r,customerId:s,token:t},i.J.BASE_URL()+"/api/public/consents/manage");return this.fetchApi(l.U0.get,a)}static async updateConsentsByToken(e,t,r,s){let a=i.J.BASE_URL()+"/api/public/consents/manage";return this.fetchApi(l.U0.post,a,{consents:s,customerId:r,sellerId:t,token:e})}}},27326:(e,t,r)=>{r.d(t,{R:()=>i});var s=r(50979);r(25963);let i=e=>{if(!e.text)return null;let t=/(https?:\/\/(?:[\w-]+\.)+[a-z]{2,}(?:\/[?:\w._~!$&'()*+,;=:@#-]+)*)(\?[\w\d%&=]*)?/gi,r=e.text.split(t).map((e,r)=>t.test(e)?(0,s.jsx)("a",{target:"_blank",rel:"nofollow",href:e,children:e},r):e);return(0,s.jsx)("div",{className:"vi-text-xs muted-3 vi-mt-1",children:r})}},31579:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(50979),i=r(25963),l=r(55024),a=r(103);class n extends i.Component{static escapeHtml(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}renderText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return!0!==e.bold||e.italic?e.bold||!0!==e.italic?!0===e.bold&&!0===e.italic?(0,s.jsx)("strong",{children:(0,s.jsx)("i",{children:e.text})},"stri"+t):e.text:(0,s.jsx)("i",{children:e.text},"i"+t):(0,s.jsx)("strong",{children:e.text},"str"+t)}render(){let e;var t=this;if(!this.props.text)return null;try{e=JSON.parse(this.props.text)}catch(e){return this.props.text}let r=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(d(e))return t.renderText(e,i);let n=e.children.map((e,t)=>r(e,t));switch(e.type){case"paragraph":var o;return(0,s.jsx)("p",{className:null==(o=t.props.classNames)?void 0:o.p,children:n},"p"+i);case"link":return(0,s.jsx)(a.p,{href:l.J.getExternUrl(e.url),rel:"nofollow",children:n},"link"+i);case"ordered-list":return(0,s.jsx)("ol",{children:n},"ol"+i);case"unordered-list":return(0,s.jsx)("ul",{children:n},"ul"+i);case"list-item":return(0,s.jsx)("li",{children:n},"li"+i);case"subheading-1":return(0,s.jsx)("div",{className:"h2",children:n},"h2"+i);case"subheading-2":return(0,s.jsx)("div",{className:"h3",children:n},"h3"+i);case"horizontal-rule":return(0,s.jsx)("hr",{},"hr"+i);default:return n}};return(0,s.jsx)("div",{className:"rich-text",children:r({children:e})})}static asPlainString(e){let t;if(!e)return"";try{t=JSON.parse(e)}catch(t){return e}let r=e=>{if(d(e))return e.text;let t=e.children.map(e=>r(e)).join("");switch(e.type){case"paragraph":case"link":return"".concat(t);default:return t}};return r({children:t})}}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return function(e){if(!1===o(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==o(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(e)&&"string"==typeof e.text}},74803:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(50979),i=r(10400),l=r(17734),a=r(25963);class n extends a.Component{componentDidMount(){var e;let t=null==(e=this.props.title)?void 0:e.replace(/\s+/g,"").replace("&","");if(this.id="Input_"+t+"_"+Math.random().toString().substring(2,7),!this.props.link)throw Error("ObjectLink is required on field "+this.id
1);this.handleState(),this.forceUpdate()}handleState(){void 0==this.props.link.getValue()||null==this.props.link.getValue()||""===this.props.link.getValue()?this.parentClass="":this.parentClass="ne"}componentDidUpdate(e,t,r){e.link.getValue()!==this.props.link.getValue()&&(this.handleState(),this.forceUpdate())}componentWillReceiveProps(e){this.handleState()}onFocus(){var e,t;this.copy=this.props.link.getValue(),this.handleState(),this.forceUpdate(),null==(e=(t=this.props).onFocus)||e.call(t)}onBlur(){var e,t,r;(null==(e=this.context)?void 0:e.hasErrorsAtField(this.props.link.selector))&&this.context.check(),this.handleState(),this.forceUpdate(),null==(t=(r=this.props).onBlur)||t.call(r)}getErrorMessageId(){return"".concat(this.id,"-error-message")}hasErrorsAtField(e){var t,r;return null!=(r=null==(t=this.context)?void 0:t.hasErrorsAtField(e))&&r}isInvalid(e,t){return!!(this.hasErrorsAtField(e)||(null==t?void 0:t[e]))}getErrorObject(e,t){var r,s,i;return null!=(i=null!=(s=null==(r=this.context)?void 0:r.getErrorObject(e))?s:null==t?void 0:t[e])?i:""}renderError(){var e,t;let r=(null==(e=this.context)?void 0:e.hasErrors())&&(null==(t=this.context)?void 0:t.hasErrorsAtField(this.props.link.selector))?this.context.getErrorObject(this.props.link.selector):null;return(0,s.jsx)(l.j,{error:r,id:this.getErrorMessageId(),title:this.props.title})}constructor(...e){super(...e),this.id=Math.random().toString().substring(2,7),this.parentClass=""}}n.contextType=i.cK}}]);
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.