"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingPricingLanguageCode-admin"],{"8Y33":function(e,a,n){n.r(a);var t=n("oYSA"),o=n("qZpH"),l=n("16zp"),u=n("ALIA"),p={name:"1te0czy-languageCSS",styles:"width:165px;label:languageCSS;"};a.default=function(){var e,a,n=React,s=n.useContext,i=n.useState,r=wp.components.SelectControl,g=s(u.Z),c=(0,t.Z)(g,2),d=c[0],C=c[1],v=(0,l.NL)(null===(e=d.selectedCountry)||void 0===e||null===(a=e.value)||void 0===a?void 0:a.availableLanguages),h=i((function(){if(!v)return"EN";var e=v.filter((function(e){return e.value===shopwp.general.languageCode.toUpperCase()}));return e.length?e[0].value:void 0})),w=(0,t.Z)(h,2),S=w[0],f=w[1],y=p;return(0,o.tZ)(r,{css:y,label:wp.i18n.__("Language","shopwp"),value:S,options:v,onChange:function(e){f(e),C({type:"SET_SELECTED_LANGUAGE",payload:e}),C({type:"UPDATE_SETTING",payload:{key:"languageCode",value:e.toLowerCase()}})},disabled:!shopwp.misc.isPro})}}}]);