PageSourceSearch

https://www.purfitness.at/_next/static/chunks/pages/admin/center-settings/social-media-15be09ecf1b4c30d.js

js purfitness.at collected 2026-10-05 11:30:37 UTC 35,213 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2744],{1818:function(e,t,n){"use strict";n(67294);var r=n(45046),a=n(32701),i=n(10684),o=n(97985),c=n(97975),l=n(76116),s=n(85893);t.Z=function(e){var t=e.handleModalClose,n=e.confirmAction,u=e.content,d=e.lang;return(0,s.jsx)("span",{className:"d-inline-block mb-2 mr-2",children:(0,s.jsxs)(r.Z,{isOpen:!0,toggle:t,children:[(0,s.jsx)(a.Z,{children:l.Z.CONFIRMATION_BOX[d]}),(0,s.jsx)(i.Z,{children:u}),(0,s.jsxs)(o.Z,{children:[(0,s.jsx)(c.Z,{color:"link",onClick:t,children:l.Z.NO[d]}),(0,s.jsx)(c.Z,{color:"primary",onClick:n,children:l.Z.YES[d]})]})]})})}},97380:function(e,t,n){"use strict";var r=n(82262),a=n(92777),i=n(10748),o=n(45959),c=n(63553),l=n(37247),s=n(59499),u=n(67294),d=n(97975),p=n(36561),f=n(85893);function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var a=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var S=function(e){(0,o.Z)(n,e);var t=g(n);function n(){var e;(0,a.Z)(this,n);for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return e=t.call.apply(t,[this].concat(o)),(0,s.Z)((0,i.Z)(e),"state",{pages:[],interval:10}),(0,s.Z)((0,i.Z)(e),"componentDidMount",(function(){e.updatePages()})),(0,s.Z)((0,i.Z)(e),"componentDidUpdate",(function(t){e.props.meta.last_page!==t.meta.last_page&&e.updatePages()})),(0,s.Z)((0,i.Z)(e),"updatePages",(function(){for(var t=[],n=0;n<e.props.meta.last_page;n++)t.push(n+1);e.setState({pages:t})})),(0,s.Z)((0,i.Z)(e),"render",(function(){return(0,f.jsx)("div",{className:"pt-5 text-center",children:(0,f.jsxs)("div",{className:"pt-1",children:[(0,f.jsx)(d.Z,{className:"mr-1",color:e.props.buttonStyle?"":"primary",style:e.props.buttonStyle||{display:"inline-block"},disabled:1===e.props.meta.current_page,onClick:function(){if(e.props.onChangePage(e.props.meta.current_page-1),e.props.meta.current_page===e.state.interval-10+1){var t=p.Z.cloneDeep(e.state.interval);e.setState({interval:t-10})}},children:"Prev"}),e.state.interval>10&&(0,f.jsx)(d.Z,{className:"mr-1",style:{display:"inline-block"},onClick:function(){var t=p.Z.cloneDeep(e.state.interval);e.setState({interval:t-10})},children:"..."}),e.state.pages.map((function(t){if(t>e.state.interval-10&&t<=e.state.interval)return(0,f.jsx)(d.Z,{outline:!0,className:"mr-1 border-0 btn-transition",style:{display:"inline-block"},color:"dark",onClick:function(){return e.props.onChangePage(t)},active:t===e.props.meta.current_page,children:t},"Pagination-".concat(t))})),e.state.interval<e.props.meta.last_page&&(0,f.jsx)(d.Z,{className:"mr-1",style:{display:"inline-block"},onClick:function(){var t=p.Z.cloneDeep(e.state.interval);e.setState({interval:t+10})},children:"..."}),(0,f.jsx)(d.Z,{className:"ml-1",color:e.props.buttonStyle?"":"primary",style:e.props.buttonStyle||{display:"inline-block"},disabled:e.props.meta.current_page===e.props.meta.last_page,onClick:function(){if(e.props.onChangePage(e.props.meta.current_page+1),e.props.meta.current_page===e.state.interval){var t=p.Z.cloneDeep(e.state.interval);e.setState({interval:t+10})}},children:"Next"})]})})})),e}return(0,r.Z)(n)}(u.Component);t.Z=S},56762:function(e,t,n){"use strict";n(67294);var r=n(36456),a=n(94184),i=n.n(a),o=n(85893);t.Z=(0,r.$j)((function(e){return{enablePageTitleIcon:e.ThemeOptions.enablePageTitleIcon,enablePageTitleSubheading:e.ThemeOptions.enablePageTitleSubheading}}))((function(e){var t=e.enablePageTitleIcon,n=(e.enablePageTitleSubheading,e.icon),r=e.heading,a=(e.subheading,e.actionsButtons);return(0,o.jsx)("div",{className:"app-page-title",children:(0,o.jsxs)("div",{className:"page-title-wrapper",children:[(0,o.jsxs)("div",{className:"page-title-heading",children:[(0,o.jsx)("div",{className:i()("page-title-icon",{"d-none":!t}),children:(0,o.jsx)("i",{className:n})}),(0,o.jsx)("div",{style:{fontSize:"30px"},children:r})]}),(0,o.jsx)("div",{className:"page-title-actions",children:a&&a})]})})}))},94263:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(85870),a=function(e){return{type:r.xc,payload:e}}},46335:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return Oe},default:function(){return be}});var r=n(9008),a=n.n(r),i=n(7775),o=n(79697),c=n(59359),l=n(81426),s=n(82262),u=n(92777),d=n(10748),p=n(45959),f=n(63553),g=n(37247),S=n(59499),Z=n(67294),h=n(14890),m=n(97975),C=n(98595),M=n(10267),v=n(51252),j=n(56941),y=n(91121),O=n(51935),b=n(36561),x=n(36456),E=n(76104),P=n.n(E),_=n(56762),w=n(21658),D=n(33195),L=n(88658),A=n(4196),N=n(76116),I=n(85893);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?R(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var a=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var H=function(e){var t=function(t){(0,p.Z)(r,t);var n=T(r);function r(){var t;(0,u.Z)(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),(0,S.Z)((0,d.Z)(t),"state",{socialMedias:[],selectedSocialMedia:{},loading:!1,showCreateSocialMedia:!1,centerSocialMedia:{platform_id:0,image_url:"",url:""},selectedCenterSocialMedia:{platform_id:0,image_url:"",url:""},showEditSocialMedia:!1,showDeleteConfirmation:!1}),(0,S.Z)((0,d.Z)(t),"onChangeSocialMediaHOC",(function(e,n){return t.setState((0,S.Z)({},e,n))})),(0,S.Z)((0,d.Z)(t),"load",(function(e){return t.setState({loading:e})})),(0,S.Z)((0,d.Z)(t),"requestSuccess",(function(e){return D.Am.success(e)})),(0,S.Z)((0,d.Z)(t),"requestError",(function(e){return D.Am.error(e)})),(0,S.Z)((0,d.Z)(t),"getCenterSocialMedia",(function(){return(0,A.dX)("/centers/".concat(t.props.site.center_id,"/social_media"),t.getCenterSocialMediaSuccess,t.getCenterSocialMediaError,t.load)})),(0,S.Z)((0,d.Z)(t),"getCenterSocialMediaSuccess",(function(e){var n=[];e.map((function(e){n.push(k(k({},e),{},{platform_name:e.platform.platform_name}))})),t.setState({socialMedias:n})})),(0,S.Z)((0,d.Z)(t),"getCenterSocialMediaError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"getSelectedCenterSocialMedia",(function(e){return(0,A.dX)("/centers/".concat(t.props.site.center_id,"/social_media/").concat(e),t.getSelectedCenterSocialMediaSuccess,t.getSelectedCenterSocialMediaError,t.load)})),(0,S.Z)((0,d.Z)(t),"getSelectedCenterSocialMediaSuccess",(function(e){t.setState({selectedCenterSocialMedia:e})})),(0,S.Z)((0,d.Z)(t),"getSelectedCenterSocialMediaError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"createCenterSocialMedia",(function(){var e=b.Z.cloneDeep(t.state.centerSocialMedia);t.state.centerSocialMedia.url.length>0&&(t.state.centerSocialMedia.url.includes("https://")||(e.url="https://".concat(t.state.centerSocialMedia.url))),(0,L.SO)("/centers/".concat(t.props.site.center_id,"/social_media"),e,t.createCenterSocialMediaSuccess,t.createCenterSocialMediaError,t.load)})),(0,S.Z)((0,d.Z)(t),"createCenterSocialMediaSuccess",(function(){t.requestSuccess(N.Z.CREATE_SUCCESS[t.props.selectedLanguage]),t.setState({showCreateSocialMedia:!1,centerSocialMedia:{platform_id:0,image_url:"",url:""}}),t.getCenterSocialMedia()})),(0,S.Z)((0,d.Z)(t),"createCenterSocialMediaError",(function(e){"failed to retrive social media platform, sql: no rows in result set"===e&&t.requestError(N.Z.PLATFORM_REQUIRED[t.props.selectedLanguage])})),(0,S.Z)((0,d.Z)(t),"updateCenterSocialMedia",(function(){var e=b.Z.cloneDeep(t.state.selectedCenterSocialMedia);t.state.selectedCenterSocialMedia.url.length>0&&(t.state.selectedCenterSocialMedia.url.includes("https://")||(e.url="https://".concat(t.state.selectedCenterSocialMedia.url))),(0,L.qb)("/centers/".concat(t.props.site.center_id,"/social_media/").concat(t.state.selectedCenterSocialMedia.id),e,t.updateCenterSocialMediaSuccess,t.updateCenterSocialMediaError,t.load)})),(0,S.Z)((0,d.Z)(t),"updateCenterSocialMediaSuccess",(function(){t.requestSuccess(N.Z.SOCIAL_MEDIA_UPDATE_SUCCESS[t.props.selectedLanguage]),t.setState({showEditSocialMedia:!1,selectedCenterSocialMedia:{platform_id:0,image_url:"",url:""}}),t.getCenterSocialMedia()})),(0,S.Z)((0,d.Z)(t),"updateCenterSocialMediaError",(function(e){t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"deleteCenterSocialMedia",(function(){return(0,L.HG)("/centers
1/".concat(t.props.site.center_id,"/social_media/").concat(t.state.selectedCenterSocialMedia.id),t.deleteCenterSocialMediaSuccess,t.deleteCenterSocialMediaError,t.load)})),(0,S.Z)((0,d.Z)(t),"deleteCenterSocialMediaSuccess",(function(){t.getCenterSocialMedia(),t.requestSuccess(N.Z.SOCIAL_MEDIA_DELETE_SUCCESS[t.props.selectedLanguage])})),(0,S.Z)((0,d.Z)(t),"deleteCenterSocialMediaError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"render",(function(){return(0,I.jsx)(e,k(k({},t.props),{},{getCenterSocialMedia:t.getCenterSocialMedia,socialMedias:t.state.socialMedias,onLoadSocialMedia:t.state.loading,onChangeSocialMediaHOC:t.onChangeSocialMediaHOC,showCreateSocialMedia:t.state.showCreateSocialMedia,createCenterSocialMedia:t.createCenterSocialMedia,centerSocialMedia:t.state.centerSocialMedia,showEditSocialMedia:t.state.showEditSocialMedia,updateCenterSocialMedia:t.updateCenterSocialMedia,selectedCenterSocialMedia:t.state.selectedCenterSocialMedia,getSelectedCenterSocialMedia:t.getSelectedCenterSocialMedia,showDeleteConfirmation:t.state.showDeleteConfirmation,deleteCenterSocialMedia:t.deleteCenterSocialMedia}))})),t}return(0,s.Z)(r)}(Z.Component);return t};function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var a=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var U=function(e){var t=function(t){(0,p.Z)(r,t);var n=z(r);function r(){var t;(0,u.Z)(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),(0,S.Z)((0,d.Z)(t),"state",{allSocialMediaPlatform:[]}),(0,S.Z)((0,d.Z)(t),"load",(function(e){return t.setState({loading:e})})),(0,S.Z)((0,d.Z)(t),"requestSuccess",(function(e){return D.Am.success(e)})),(0,S.Z)((0,d.Z)(t),"requestError",(function(e){return D.Am.error(e)})),(0,S.Z)((0,d.Z)(t),"getSocialMediaPlatform",(function(){return(0,L.dX)("/social_media_platforms",t.getSocialMediaPlatformSuccess,t.getSocialMediaPlatformError,t.load)})),(0,S.Z)((0,d.Z)(t),"getSocialMediaPlatformSuccess",(function(e){return t.setState({allSocialMediaPlatform:e})})),(0,S.Z)((0,d.Z)(t),"getSocialMediaPlatformError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"render",(function(){return(0,I.jsx)(e,B(B({},t.props),{},{onLoadSocialMediaPlatforms:t.state.loading,getSocialMediaPlatform:t.getSocialMediaPlatform,allSocialMediaPlatform:t.state.allSocialMediaPlatform}))})),t}return(0,s.Z)(r)}(Z.Component);return t},F=n(50029),G=n(87794),X=n.n(G);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var a=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var Q=function(e){var t=function(t){(0,p.Z)(r,t);var n=$(r);function r(){var t;(0,u.Z)(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return t=n.call.apply(n,[this].concat(i)),(0,S.Z)((0,d.Z)(t),"state",{topContactBar:{},pageID:""}),(0,S.Z)((0,d.Z)(t),"load",(function(e){return t.setState({loading:e})})),(0,S.Z)((0,d.Z)(t),"requestError",(function(e){return D.Am.error(e)})),(0,S.Z)((0,d.Z)(t),"getPages",(function(){(0,A.dX)("/sites/".concat(t.props.site.id,"/pages"),t.getPagesSuccess,t.getPagesError,t.load)})),(0,S.Z)((0,d.Z)(t),"getPagesSuccess",(function(e){t.setState({pageID:b.Z.find(e.data,{url:"/"}).id},(0,F.Z)(X().mark((function e(){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getSelectedPage();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))))})),(0,S.Z)((0,d.Z)(t),"getPagesError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"getSelectedPage",(function(){return(0,A.dX)("/sites/".concat(t.props.site.id,"/pages/").concat(t.state.pageID),t.getSelectedPageSuccess,t.getSelectedPageError,t.load)})),(0,S.Z)((0,d.Z)(t),"getSelectedPageSuccess",function(){var e=(0,F.Z)(X().mark((function e(n){return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getSelectedSection(b.Z.find(n.content.children,{type:"header"}).id);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(0,S.Z)((0,d.Z)(t),"getSelectedPageError",(function(e){return t.requestError(N.Z.PAGE_GET_FAILED[t.props.selectedLanguage])})),(0,S.Z)((0,d.Z)(t),"getSelectedSection",(function(e){return(0,A.dX)("/pages/".concat(t.state.pageID,"/sections/").concat(e),t.getSelectedSectionSuccess,t.getSelectedSectionError,t.load)})),(0,S.Z)((0,d.Z)(t),"getSelectedSectionSuccess",(function(e){return t.setState({topContactBar:e.content})})),(0,S.Z)((0,d.Z)(t),"getSelectedSectionError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"updateSelectedSection",(function(e){return(0,L.qb)("/sites/".concat(t.props.site.id,"/sections/").concat(e.id),e,t.updateSelectedSectionSuccess,t.updateSelectedSectionError,t.load)})),(0,S.Z)((0,d.Z)(t),"updateSelectedSectionSuccess",(function(e){})),(0,S.Z)((0,d.Z)(t),"updateSelectedSectionError",(function(e){return t.requestError(e)})),(0,S.Z)((0,d.Z)(t),"render",(function(){return(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(e,W(W({},t.props),{},{onLoadPages:t.state.loading,getPages:t.getPages,updateSelectedSection:t.updateSelectedSection,topContactBar:t.state.topContactBar}))})})),t}return(0,s.Z)(r)}(Z.Component);return t}
1,V=n(97380),Y=n(1818),J=n(44986),ee=n(94263),te=n(45046),ne=n(32701),re=n(10684),ae=n(15538),ie=n(82669),oe=n(67954),ce=n(609),le=n(16792),se=n(97985),ue=n(97467);function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe=function(e){return(0,I.jsxs)(te.Z,{isOpen:e.showCreateSocialMedia,toggle:function(){return e.onChangeSocialMediaHOC("showCreateSocialMedia",!1)},children:[(0,I.jsx)(ne.Z,{toggle:function(){return e.onChangeSocialMediaHOC("showCreateSocialMedia",!1)},children:N.Z.ASSIGN_SOCIAL_MEDIA[e.selectedLanguage]}),(0,I.jsxs)(re.Z,{children:[(0,I.jsx)(C.Z,{className:"mt-3 mb-5",children:(0,I.jsxs)(ae.Z,{children:[(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.PLATFORM[e.selectedLanguage]}),(0,I.jsxs)(ce.Z,{type:"select",value:e.centerSocialMedia.platform_id,onChange:function(t){var n=b.Z.cloneDeep(e.centerSocialMedia);n.platform_id=parseInt(t.target.value),e.onChangeSocialMediaHOC("centerSocialMedia",n)},children:[(0,I.jsx)("option",{children:N.Z.SELECT_ONE[e.selectedLanguage]}),e.allSocialMediaPlatform&&e.allSocialMediaPlatform.map((function(e){return(0,I.jsx)("option",{value:e.id,children:e.platform_name},e.id)}))]})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.ICON[e.selectedLanguage]}),(0,I.jsx)(le.Z,{color:"muted",children:N.Z.NO_IMAGE_SELECTED[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{disabled:!0,value:e.centerSocialMedia.image_url}),(0,I.jsx)(m.Z,{color:"primary",onClick:function(){e.toggleMediaDatabase(!0)},children:N.Z.MEDIA_DATABASE[e.selectedLanguage]})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.LINK_SOCIAL_MEDIA[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.centerSocialMedia.url,onChange:function(t){var n=b.Z.cloneDeep(e.centerSocialMedia);n.url=t.target.value,e.onChangeSocialMediaHOC("centerSocialMedia",n)}})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.TITLE[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.centerSocialMedia.src_title,onChange:function(t){return e.onChangeSocialMediaHOC("centerSocialMedia",pe(pe({},e.centerSocialMedia),{},{src_title:t.target.value}))}})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.ALT[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.centerSocialMedia.src_alt,onChange:function(t){return e.onChangeSocialMediaHOC("centerSocialMedia",pe(pe({},e.centerSocialMedia),{},{src_alt:t.target.value}))}})]})]})}),(0,I.jsx)(ue.Z,{onSelectedImage:function(t){var n=b.Z.cloneDeep(e.centerSocialMedia);n.image_url=t,e.onChangeSocialMediaHOC("centerSocialMedia",n),e.toggleMediaDatabase(!1)},site:e.site,selectedLanguage:e.selectedLanguage,allowed:["jpg","jpeg","png","webp"]})]}),(0,I.jsxs)(se.Z,{children:[(0,I.jsx)(m.Z,{className:"mr-2",color:"primary",onClick:function(){return e.createCenterSocialMedia()},children:N.Z.SUBMIT[e.selectedLanguage]}),(0,I.jsx)(m.Z,{className:"mr-2",color:"secondary",onClick:function(){return e.onChangeSocialMediaHOC("showCreateSocialMedia",!1)},children:N.Z.CANCEL[e.selectedLanguage]})]}),e.onLoadSocialMedia&&(0,I.jsx)(w.Z,{})]})};function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze=function(e){return(0,I.jsxs)(te.Z,{isOpen:e.showEditSocialMedia,toggle:function(){return e.onChangeSocialMediaHOC("showEditSocialMedia",!1)},children:[(0,I.jsx)(ne.Z,{toggle:function(){return e.onChangeSocialMediaHOC("showEditSocialMedia",!1)},children:N.Z.EDIT_SOCIAL_MEDIA[e.selectedLanguage]}),(0,I.jsxs)(re.Z,{children:[(0,I.jsx)(C.Z,{className:"mt-3 mb-5",children:(0,I.jsxs)(ae.Z,{children:[(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.PLATFORM[e.selectedLanguage]}),(0,I.jsxs)(ce.Z,{type:"select",value:e.selectedCenterSocialMedia.platform_id,onChange:function(t){var n=b.Z.cloneDeep(e.selectedCenterSocialMedia);n.platform_id=parseInt(t.target.value),e.onChangeSocialMediaHOC("selectedCenterSocialMedia",n)},children:[(0,I.jsx)("option",{children:N.Z.SELECT_ONE[e.selectedLanguage]}),e.allSocialMediaPlatform&&e.allSocialMediaPlatform.map((function(e){return(0,I.jsx)("option",{value:e.id,children:e.platform_name},e.id)}))]})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.ICON[e.selectedLanguage]}),(0,I.jsx)(le.Z,{color:"muted",children:N.Z.NO_IMAGE_SELECTED[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{disabled:!0,value:e.selectedCenterSocialMedia.image_url}),(0,I.jsx)(m.Z,{color:"primary",onClick:function(){e.toggleMediaDatabase(!0)},children:N.Z.MEDIA_DATABASE[e.selectedLanguage]})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.LINK_SOCIAL_MEDIA[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.selectedCenterSocialMedia.url,onChange:function(t){var n=b.Z.cloneDeep(e.selectedCenterSocialMedia);n.url=t.target.value,e.onChangeSocialMediaHOC("selectedCenterSocialMedia",n)}})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.TITLE[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.selectedCenterSocialMedia.src_title,onChange:function(t){return e.onChangeSocialMediaHOC("selectedCenterSocialMedia",Se(Se({},e.selectedCenterSocialMedia),{},{src_title:t.target.value}))}})]}),(0,I.jsxs)(ie.Z,{children:[(0,I.jsx)(oe.Z,{children:N.Z.ALT[e.selectedLanguage]}),(0,I.jsx)(ce.Z,{value:e.selectedCenterSocialMedia.src_alt,onChange:function(t){return e.onChangeSocialMediaHOC("selectedCenterSocialMedia",Se(Se({},e.selectedCenterSocialMedia),{},{src_alt:t.target.value}))}})]})]})}),(0,I.jsx)(ue.Z,{onSelectedImage:function(t){var n=b.Z.cloneDeep(e.selectedCenterSocialMedia);n.image_url=t,e.onChangeSocialMediaHOC("selectedCenterSocialMedia",n),e.toggleMediaDatabase(!1)},site:e.site,selectedLanguage:e.selectedLanguage,allowed:["jpg","jpeg","png","webp"]})]}),(0,I.jsxs)(se.Z,{children:[(0,I.jsx)(m.Z,{className:"mr-2",color:"primary",onClick:function(){return e.updateCenterSocialMedia()},children:N.Z.SUBMIT[e.selectedLanguage]}),(0,I.jsx)(m.Z,{className:"mr-2",color:"secondary",onClick:function(){return e.onChangeSocialMediaHOC("showEditSocialMedia",!1)},children:N.Z.CANCEL[e.selectedLanguage]})]}),e.onLoadSocialMedia&&(0,I.jsx)(w.Z,{})]})};function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?he(Object(n),!0).forEach((function(t){(0,S.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ce(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var a=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,f.Z)(this,n)}}var Me=function(e){(0,p.Z)(n,e);var t=Ce(n);function n(){var e;(0,u.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e=t.call.apply(t,[this].concat(a)),(0,S.Z)((0,d.Z)(e),"state",{}),(0,S.Z)((0,d.Z)(e),"componentDidMount",(function(){e.props.getCenterSocialMedia(),e.props.getSocialMediaPlatform(),e.props.getPages()})),(0,S.Z)((0,d.Z)(e),"componentDidUpdate",(function(t){if(e.props.socialMedias!==t.socialMedias&&!b.Z.isEmpty(e.props.topContactBar)){var n=[],r=b.Z.cloneDeep(e.props.topContactBar);if(r){var a=b.Z.find(r.children,{mapWith:"social_media_icons"});a&&(e.props.socialMedias.map((function(e){n.push({id:P()(),type:"a",newTab:!0,href:e.url,style:{margin:"5px"},children:[{id:P()(),type:"img",source:e.image_url,style:{cursor:b.Z.isEmpty(e.url)?"auto":"pointer",display:"inline-block",verticalAlign:"top",height:"35px"}}]})})),a.children=n,e.props.updateSelectedSection(r))}}})),(0,S.Z)((0,d.Z)(e),"handleSecurityModulesCreate",(function(){var t=b.Z.find(e.props.selectedRole.platforms,{name:"Ark Site"});if(t)return b.Z.find(t.modules,{name:"Center Settings"}).is_create})),(0,S.Z)((0,d.Z)(e),"handleSecurityModulesUpdate",(function(){var t=b.Z.find(e.props.selectedRole.platforms,{name:"Ark Site"});if(t)return b.Z.find(t.modules,{name:"Center Settings"}).is_update})),(0,S.Z)((0,d.Z)(e),"handleSecurityModulesDelete",(function(){var t=b.Z.find(e.props.selectedRole.platforms,{name:"Ark Site"});if(t)return b.Z.find(t.modules,{name:"Center Settings"}).is_delete})),(0,S.Z)((0,d.Z)(e),"render",(function(){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(_.Z,{heading:N.Z.SOCIAL_MEDIA[e.props.selectedLanguage],icon:"pe-7s-world icon-gradient bg-happy-itmeo",actionsButtons:e.handleSecurityModulesCreate()&&(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(m.Z,{color:"primary",onClick:function(){e.props.onChangeSocialMediaHOC("showCreateSocialMedia",!0)},children:N.Z.CREATE_SOCIAL_MEDIA[e.props.selectedLanguage]})})}),(0,I.jsx)(C.Z,{fluid:!0,children:(0,I.jsx)(M.Z,{children:(0,I.jsx)(v.Z,{md:12,children:(0,I.jsx)(j.Z,{className:"main-card mb-3",children:(0,I.jsxs)(y.Z,{children:[(0,I.jsx)(O.Z,{NoDataComponent:function(){return(0,I.jsx)("span",{})},data:e.props.socialMedias,columns:[{Header:N.Z.NAME[e.props.selectedLanguage],accessor:"platform_name"},{Header:N.Z.ICON[e.props.selectedLanguage],accessor:"image_url",width:150,Cell:function(e){var t=e.value;return(0,I.jsx)("img",{src:t,style:{width:"100px",height:"100px"}})}},{Header:N.Z.ACTIONS[e.props.selectedLanguage],accessor:"id",Cell:function(t){return(0,I.jsxs)("div",{className:"d-flex flex-row align-items-center justify-content-center w-100",children:[e.handleSecurityModulesUpdate()&&(0,I.jsx)(m.Z,{className:"mr-2 btn-icon btn-icon-only",color:"primary",onClick:function(){e.props.onChangeSocialMediaHOC("showEditSocialMedia",!0),e.props.getSelectedCenterSocialMedia(t.original.id)},children:(0,I.jsx)("i",{className:"pe-7s-note"})}),e.handleSecurityModulesDelete()&&(0,I.jsx)(m.Z,{className:"mr-2 btn-icon btn-icon-only",color:"danger",onClick:function(){e.props.onChangeSocialMediaHOC("showDeleteConfirmation",!0),e.props.getSelectedCenterSocialMedia(t.original.id)},children:(0,I.jsx)("i",{className:"pe-7s-trash"})})]})}}],showPagination:!1,defaultPageSize:10}),e.props.socialMedias.length>0&&(0,I.jsx)(V.Z,{meta:[],onChangePage:function(t){var n={email:e.props.searchParamsRG[0].param,page:t,is_paginated:!0},r=(0,J.i)(n);e.props.getRecipientGroup(r)}}),(0,I.jsx)(fe,me(me({},e.props),{},{toggleMediaDatabase:e.props.toggleMediaDatabase})),(0,I.jsx)(Ze,me(me({},e.props),{},{toggleMediaDatabase:e.props.toggleMediaDatabase}))]})})})})}),e.props.showDeleteConfirmation&&(0,I.jsx)(Y.Z,{handleModalClose:function(){return e.props.onChangeSocialMediaHOC("showDeleteConfirmation",!1)},deleteOpen:e.props.showDeleteConfirmation,confirmAction:function(){e.props.onChangeSocialMediaHOC("showDeleteConfirmation",!1),e.props.deleteCenterSocialMedia()},content:N.Z.SURE_DELETE_SOCIAL_MEDIA[e.props.selectedLanguage],lang:e.props.selectedLanguage}),(e.props.onLoadSocialMedia||e.props.onLoadSocialMediaPlatforms||e.props.onLoadPages)&&(0,I.jsx)(w.Z,{})]})})),e}return(0,s.Z)(n)}(Z.Component),ve=(0,h.qC)(H,U,Q,(0,x.$j)((function(e){return{data:e}}),{toggleMediaDatabase:ee.n}))(Me),je=n(45014),ye=n(18262),Oe=!0,be=function(e){var t,n,r,s,u=(0,ye.Z)(e.host),d=(0,i.Z)(e.platformConfigs,{key:"PLATFORM_COLOR"}),p=(0,i.Z)(e.platformConfigs,{key:"PLATFORM_ICON"});return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(je.Ko,{colors:{primary:d&&!(0,o.Z)(d.value)?d.value:"#545CD8"}}),(0,I.jsxs)(a(),{children:[(0,I.jsx)("title",{children:"Admin Panel"}),(0,I.jsx)("link",{rel:"icon",href:c.tq?null===(t=e.siteSettings)||void 0===t||null===(n=t.mobile_favicon)||void 0===n?void 0:n.url:null===(r=e.siteSettings)||void 0===r||null===(s=r.site_favicon)||void 0===s?void 0:s.url})]}),(0,I.jsx)(l.Z,{site:e.site,logoConfig:p&&!(0,o.Z)(p.value)?p:{value:""},children:(0,I.jsx)(ve,{site:e.site,selectedLanguage:u?u.admin_panel_language:""})})]})}},92150:function(e,t,n){"use strict";n.d(t,{CO:function(){return a},DW:function(){return r},NU:function(){return o},Sh:function(){return c},yh:function(){return i}});var r=function(e){return"jpeg"===e||"png"===e||"jpg"===e||"webp"===e||"gif"===e},a=function(e){if(!e)return!1;var t=e.split(".");if(t.length>0){var n=t[t.length-1];return r(n)}return!1},i=function(e){return"mp4"===e||"quicktime"===e},o=function(e){var t=e.split(".");if(t.length>0){var n=t[t.length-1];return i(n)||"mov"===n}return!1},c=function(e){return"jpeg"===e||"png"===e||"jpg"===e||"pdf"===e||"gif"===e||"mpeg"===e||i(e)}},22181:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(33195),a=n(76116),i=function(e,t){var n=!0;return e.length>0&&e.map((function(e){e.fileSize>1e7&&(n=!1)})),!n&&!r.Am.isActive("file-size-toast")&&r.Am.error(a.Z.FILE_IS_TOO_LARGE[t],{toastId:"file-size-toast"}),n}},28231:function(e,t,n){"use strict";n.d(t,{T:function(){return i},p:function(){return a}});var r=n(33195),a=function(e){return r.Am.success(e)},i=function(e){return"string"===typeof e?r.Am.error(e):Object.values(e).map((function(e){return r.Am.error(e.replace(/_/g," "))}))}},36451:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/center-sett
1ings/social-media",function(){return n(46335)}])},34331:function(){},23490:function(){},30680:function(){},88357:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var r=n(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(a),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},o.apply(this,arguments)},c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function l(e){return e&&e.map((function(e,t){return r.createElement(e.tag,o({key:t},e.attr),l(e.child))}))}function s(e){return function(t){return r.createElement(u,o({attr:o({},e.attr)},t),l(e.child))}}function u(e){var t=function(t){var n,a=e.attr,i=e.size,l=e.title,s=c(e,["attr","size","title"]),u=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,s,{className:n,style:o(o({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==i?r.createElement(i.Consumer,null,(function(e){return t(e)})):t(a)}},16792:function(e,t,n){"use strict";var r=n(87462),a=n(63366),i=n(67294),o=n(45697),c=n.n(o),l=n(94184),s=n.n(l),u=n(23663),d={children:c().node,inline:c().bool,tag:u.iC,color:c().string,className:c().string,cssModule:c().object},p=function(e){var t=e.className,n=e.cssModule,o=e.inline,c=e.color,l=e.tag,d=(0,a.Z)(e,["className","cssModule","inline","color","tag"]),p=(0,u.mx)(s()(t,!o&&"form-text",!!c&&"text-"+c),n);return i.createElement(l,(0,r.Z)({},d,{className:p}))};p.propTypes=d,p.defaultProps={tag:"small",color:"muted"},t.Z=p},609:function(e,t,n){"use strict";var r=n(87462),a=n(63366),i=n(97326),o=n(94578),c=n(67294),l=n(45697),s=n.n(l),u=n(94184),d=n.n(u),p=n(23663),f={children:s().node,type:s().string,size:s().oneOfType([s().number,s().string]),bsSize:s().string,valid:s().bool,invalid:s().bool,tag:p.iC,innerRef:s().oneOfType([s().object,s().func,s().string]),plaintext:s().bool,addon:s().bool,className:s().string,cssModule:s().object},g=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind((0,i.Z)(n)),n.focus=n.focus.bind((0,i.Z)(n)),n}(0,o.Z)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.focus=function(){this.ref&&this.ref.focus()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,i=e.type,o=e.bsSize,l=e.valid,s=e.invalid,u=e.tag,f=e.addon,g=e.plaintext,S=e.innerRef,Z=(0,a.Z)(e,["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"]),h=["radio","checkbox"].indexOf(i)>-1,m=new RegExp("\\D","g"),C=u||("select"===i||"textarea"===i?i:"input"),M="form-control";g?(M+="-plaintext",C=u||"input"):"file"===i?M+="-file":"range"===i?M+="-range":h&&(M=f?null:"form-check-input"),Z.size&&m.test(Z.size)&&((0,p.O4)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=Z.size,delete Z.size);var v=(0,p.mx)(d()(t,s&&"is-invalid",l&&"is-valid",!!o&&"form-control-"+o,M),n);return("input"===C||u&&"function"===typeof u)&&(Z.type=i),Z.children&&!g&&"select"!==i&&"string"===typeof C&&"select"!==C&&((0,p.O4)('Input with a type of "'+i+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete Z.children),c.createElement(C,(0,r.Z)({},Z,{ref:S,className:v,"aria-invalid":s}))},t}(c.Component);g.propTypes=f,g.defaultProps={type:"text"},t.Z=g},76104:function(e,t,n){var r=n(34155),a=r&&r.pid?r.pid.toString(36):"";function i(){var e=Date.now(),t=i.last||e;return i.last=e>t?e:t+1}e.exports=e.exports.default=function(e,t){return(e||"")+""+a+i().toString(36)+(t||"")},e.exports.process=function(e,t){return(e||"")+a+i().toString(36)+(t||"")},e.exports.time=function(e,t){return(e||"")+i().toString(36)+(t||"")}}},function(e){e.O(0,[5445,8523,6158,6188,8764,7820,9638,9669,9357,432,9359,3183,7914,6034,724,2515,1935,4778,5525,7311,920,6116,7104,9143,7467,9774,2888,179],(function(){return t=36451,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.