1"use strict";(self.webpackChunkpechakucha_dot_com_v3=self.webpackChunkpechakucha_dot_com_v3||[]).push([[9786,678],{66889:function(e,t,n){n(7276);t.Z=n.p+"static/media/default_community_avatar.16f96c3ba65c3f524e07efd0e7b8514c.svg"},60640:function(e,t,n){n.d(t,{Z:function(){return m}});var a=n(7276),i=n(3498),r=n(39193),o=n(33842),l=function(e){var t=e.menuProps;return a.createElement(r.v2,null,a.createElement(r.j2,{as:o.Ly,transition:"all 0.2s"}),a.createElement(r.qy,null,t.map((function(e){return a.createElement(r.sN,{onClick:e[1]},e[0])}))))},c=n(55967),u=n(73974),s=n(40748),m=function(e){var t=e.userName,n=e.avatarUrl,r=e.entity_uuid,o=e.menuProps,m=e.handleRemove,p=e.size,d=(0,u.nn)(n,"320x320");return a.createElement(i.Kq,{direction:"row",rounded:"8px",py:"4px",px:"sm"===p?"4px":"8px",alignItems:"center",border:"sm"===p?"none":"1px",borderColor:"#eeeeee",borderRadius:"8px"},a.createElement(i.Kq,{direction:"row",alignItems:"center"},a.createElement(s.Z,{name:t,src:d,size:"sm"===p?"xs":"sm",entityType:"users"}),a.createElement(i.xv,{fontSize:"sm"===p?"sm":"md"},t)),m&&"sm"!==p&&a.createElement(c.FU5,{cursor:"pointer",onClick:function(){return m(r)}}),o&&a.createElement(l,{menuProps:o}))}},30678:function(e,t,n){n.r(t);var a=n(74165),i=n(15861),r=n(29439),o=n(8992),l=n(3498),c=n(43127),u=n(7276),s=n(33842);t.default=function(e){var t=e.onClose,n=e.action,m=e.headerText,p=e.bodyText,d=e.confirmButtonText,_=e.setCardRemoved,v=e.noConfirmIcon,f=e.confirmIcon,y=e.loadingText,h=(0,u.useState)(!1),x=(0,r.Z)(h,2),g=x[0],E=x[1],b=(0,u.useState)(!0),k=(0,r.Z)(b,2),C=k[0],w=k[1],L=(0,u.useState)(!1),H=(0,r.Z)(L,2),P=H[0],Z=H[1];return(0,u.useEffect)((function(){!C&&t&&t()}),[C,t]),(0,u.useEffect)((function(){if(P&&C){Z(!1);var e=function(){var e=(0,i.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:t=e.sent,E(!1),w(!1),!_||null!==t&&void 0!==t&&t.err||_(!0);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();E(!0),e()}}),[n,P,C,_]),u.createElement(o.u_,{isOpen:C,onClose:function(){return w(!1)},scrollBehavior:"inside",isCentered:!0},u.createElement(o.ZA,null),u.createElement(o.hz,{borderRadius:"20px"},u.createElement(l.Ug,{justifyContent:"space-between",alignItems:"center",pr:"24px"},u.createElement(o.xB,{fontSize:"lg",flex:1},m),u.createElement(o.ol,{color:"secondary.700",position:"static"})),u.createElement(o.fe,null,u.createElement(l.xv,null,p)),u.createElement(o.mz,{"data-testid":"destructive-modal-footer"},u.createElement(c.zx,{mr:"16px",bg:"error.500",_hover:{bg:"error.500"},leftIcon:f||(v?void 0:u.createElement(s.pJ,{fill:"#fff",boxSize:"16px"})),onClick:function(){return Z(!0)},isLoading:g,loadingText:y||"Removing"},d||"Remove"),u.createElement(c.zx,{variant:"ghost",onClick:function(){return w(!1)}},"Cancel"))))}},55988:function(e,t,n){var a=n(7630),i=n(444),r=n(3498),o=n(43127),l=n(7276),c=n(33842);t.Z=function(e){var t=e.url,n=(0,a.VP)(t),u=n.onCopy,s=n.hasCopied,m=(0,i.pm)();return(0,l.useEffect)((function(){s&&m({title:"Link Copied",description:t,status:"success",variant:"pkSuccessToast",duration:5e3,isClosable:!0,containerStyle:{maxWidth:"100vw"}})}),[s,m,t]),l.createElement(r.gC,{spacing:"8px","data-testid":"clipboard-share-button"},l.createElement(o.hU,{size:"lg",border:"1px solid",borderColor:"secondary.800",borderRadius:"full",variant:"iconButton","aria-label":"Copy",icon:l.createElement(c.TI,null),onClick:u}),l.createElement(r.xv,{fontSize:"sm",fontWeight:"600"},"Copy Link"))}},94561:function(e,t,n){n.d(t,{d:function(){return s}});var a=n(87362),i=n(72364),r=n(86698),o=n(7276),l=n(3498),c=n(43127),u=n(33842),s=o.memo((function(e){var t=e.url,n=e.platform,s=function(e){var l,c=e.children;switch(n){case"twitter":l=o.createElement(a.Z,{url:t},c);break;case"facebook":l=o.createElement(i.Z,{url:t},c);break;case"linkedin":l=o.createElement(r.Z,{url:t},c)}return l},m=function(){switch(n){case"twitter":return o.createElement(u.Zm,null);case"facebook":return o.createElement(u.Vq,null);case"linkedin":return o.createElement(u.nI,null)}};return o.createElement(l.gC,{spacing:"8px","data-testid":"".concat(n,"-share-button")},o.createElement(s,null,o.createElement(c.hU,{as:l.xu,size:"lg",border:"1px solid",borderColor:"secondary.800",borderRadius:"full",variant:"iconButton","aria-label":"Share on ".concat(n),icon:o.createElement(m,null)})),o.createElement(s,null,o.createElement(l.xv,{fontSize:"sm",fontWeight:"600",textTransform:"capitalize"},n)))}))},61014:function(e,t,n){n.r(t),n.d(t,{default:function(){return X}});var a=n(1413),i=n(93433),r=n(74165),o=n(15861),l=n(29439),c=n(7276),u=n(66889),s=n(14863),m=n(11385),p=n(444),d=n(3498),_=n(70221),v=n(2092),f=n(43127),y=n(56343),h=n(3497),x=n(61844),g=n(73055),E=n(8924),b=n(65984),k=n(33697),C=n(60640),w=n(58628),L=n(42352),H=n(36068),P=n(57406),Z=n(41742),z=n(73974),S=n(33842),K=n(30678),T=n(96209),I=n(59979),R=n(74190),D=n(51900),N=n(1330),O=n(80443),j=n(38257),A={color:"primary.primary"},q={fontWeight:"medium",colorScheme:"primary"},U=function(){return j.to.live},F=function(e){var t=e.setAccessSettings,n=e.initialValues,a=e.isEdit,i=(e.errors,(0,p.pm)(),(0,c.useState)(!1)),u=(0,l.Z)(i,2),s=u[0],m=u[1],_=(0,c.useState)(),v=(0,l.Z)(_,2),f=v[0],y=v[1],h=(0,c.useState)(-1),g=(0,l.Z)(h,2),E=g[0],b=g[1],C=(0,c.useState)(!1),w=(0,l.Z)(C,2),L=w[0],Z=w[1],S=(0,c.useState)(),K=(0,l.Z)(S,2),j=K[0],F=K[1],V=(0,c.useContext)(P.ZP).user_info,M=(0,c.useState)(),W=(0,l.Z)(M,2),X=W[0],B=W[1],Y=(0,c.useState)("all"===(null===n||void 0===n?void 0:n.nft_required)||!1),G=(0,l.Z)(Y,2),$=G[0],J=G[1],Q=(0,c.useState)("super_private"===(null===n||void 0===n?void 0:n.public_status)||!1),ee=(0,l.Z)(Q,2),te=ee[0],ne=ee[1],ae=(0,c.useState)((null===n||void 0===n?void 0:n.stripe_plan_id)||void 0),ie=(0,l.Z)(ae,2),re=ie[0],oe=ie[1],le=(0,c.useState)((null===n||void 0===n?void 0:n.subscription_required)||!1),ce=(0,l.Z)(le,2),ue=ce[0],se=ce[1],me=(0,c.useState)("all"===(null===n||void 0===n?void 0:n.nft_required)||!1),pe=(0,l.Z)(me,2),de=pe[0],_e=pe[1],ve=(0,c.useState)(),fe=(0,l.Z)(ve,2),ye=fe[0],he=fe[1],xe=(0,c.useState)(),ge=(0,l.Z)(xe,2),Ee=(ge[0],ge[1]),be=a&&!!re&&ue,ke=a&&(null===n||void 0===n?void 0:n.nft_required),Ce=a&&!re&&!ue;(0,c.useEffect)((function(){var e={};if(e.public_status=te?"super_private":"public",!a&&ue&&re&&(e.subscription_required=!0,e.stripe_plan_id=re),$){if(e.nft_required="all",X)if(void 0===ye){if(null!==n&&void 0!==n&&n.nft_projects&&n.nft_projects[0]&&n.nft_projects[0].xref_data&&n.nft_projects[0].xref_data.gated_time){var i=X.findIndex((function(e){return e.entity_uuid===n.nft_projects[0].entity_uuid}));i>=0?(F(i),he(i),Ee(X[i]),e.nft_collection_data=X[i]):(B([n.nft_projects[0]]),F(0),he(0),Ee(n.nft_projects[0]),e.nft_collection_data=n.nft_projects[0])}}else e.nft_collection_data=X[ye]}else e.nft_required="";console.log("setAccessSettings",e),t(e)}),[a,te,$,ye,t,re,ue,de,X]);(0,c.useEffect)((function(){de&&!a&&E>=0?He():B([])}),[de,E]);var we=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"public"===t?(J(!1),ne(!1),se(!1),oe(void 0),_e(!1)):"private"===t?(J(!1),ne(!0),se(!1),oe(void 0),_e(!1)):"subscribe"===t?(J(!1),ne(!1),se(!0),oe(U()[0].stripe_plan_id),_e(!1)):"nft_required"===t&&(J(!0),ne(!1),se(!1),oe(void 0),_e(!0),Le());case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Le=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),t={method:"get",url:"rest/users/".concat(V.entity_uuid,"/blockchain_wallets"),params:{sort_obj:{connected_time:"desc"}}},e.prev=2,e.next=5,(0,k.Nv)(t,{use_auth:!0,use_cache:!1});case 5:n=e.sent,y(n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),console.error("ERROR getting blockchain_wallets",e.t0);case 12:m(!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])}
1)));return function(){return e.apply(this,arguments)}}(),He=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(E<0)&&V.blockchain_wallets&&V.blockchain_wallets[E]){e.next=2;break}return e.abrupt("return");case 2:return Z(!0),t={method:"POST",url:"/rest/users/".concat(V.entity_uuid,"/getNftCollections"),data:{network_name:"eth",blockchain_wallet_uuid:V.blockchain_wallets[E].entity_uuid}},e.prev=4,e.next=7,(0,k.Nv)(t,{use_error:!1});case 7:n=e.sent,B(n),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.error("PROBLEM with getNftCollections",e.t0);case 14:Z(!1);case 15:case"end":return e.stop()}}),e,null,[[4,11]])})));return function(){return e.apply(this,arguments)}}();return c.createElement(d.xu,{mb:"32px"},c.createElement(d.xv,{textAlign:"start",w:"100%",fontWeight:"medium",mb:4},"Who can join this community?"),c.createElement(x.NI,{isRequired:!0},c.createElement(T.Ee,{defaultValue:te?"private":ue?"subscribe":de?"nft_required":"public",name:"isPrivate",onChange:we,pl:4},c.createElement(d.Kq,null,c.createElement(T.Y8,Object.assign({defaultChecked:!a,value:"public"},q,{isDisabled:be||ke}),c.createElement(d.xv,q,"Everyone (Public)")),c.createElement(D.Z,{pl:1},c.createElement(T.Y8,Object.assign({value:"private",isDisabled:be||ke||!(0,D.m)(V)},q),c.createElement(d.xv,q,"Invite-only (Private)"))),c.createElement(D.Z,{pl:1,stripe_account_tip_ready_required:!0},c.createElement(T.Y8,Object.assign({value:"subscribe",isDisabled:Ce||ke||!(0,D.m)(V)||!V.stripe_account_tip_ready},q),c.createElement(d.xv,q,(0,D.m)(V)&&!V.stripe_account_tip_ready?"Paid Subscribers":"Paid Subscribers (anyone can subscribe)"))),c.createElement(d.xu,{display:"flex",alignItems:"center"},c.createElement(T.Y8,Object.assign({value:"nft_required",isDisabled:Ce||ke||!V.blockchain_wallets||0===V.blockchain_wallets.length},q),c.createElement(d.xv,q,"Certain NFT Holders")),!a&&(!V.blockchain_wallets||0===V.blockchain_wallets.length)&&c.createElement(d.xv,{display:"inline-block",pl:1},"(",c.createElement(N.h$,{to:O.Cd.managewallet,color:"primary.primary",fontWeight:"bold"},"connect wallet"),")")),s&&c.createElement(H.g,null),!s&&!a&&$&&f&&f.length>0&&c.createElement(d.xu,{pt:"15px",pb:"15px"},c.createElement(d.xv,{pb:"10px",pl:6,fontWeight:"medium"},"Wallets and NFTs ",c.createElement(d.xv,{as:"span",fontWeight:"bold",fontSize:"14px",textColor:"primary.primary"},"*")),c.createElement(I.Ph,{pl:6,value:E,placeholder:"Select a connected wallet",name:"selectedBlockchainWallet",onChange:function(e){e.target.value?b(parseInt(e.target.value)):b(-1)}},f.map((function(e,t){return c.createElement("option",{value:t,key:t},e.wallet_address.substring(0,8)+"..."," ","0x1"===e.chain_id?"(Ethereum Mainnet)":"0x89"===e.chain_id?"(Polygon Mainnet)":"")})))),L&&c.createElement(c.Fragment,null,c.createElement(H.g,null),c.createElement(d.M5,null,c.createElement(d.xv,null,"Finding Compatible NFTs..."))),void 0!==X&&!L&&c.createElement(R.UO,{in:de&&void 0!==X},c.createElement(d.Kq,{mt:1,mb:1,spacing:2,pl:6},X.length>0?c.createElement(c.Fragment,null,c.createElement(d.xv,{fontWeight:"medium"},"Allow only holders of"),c.createElement(x.NI,{isRequired:de},c.createElement(T.Ee,{onChange:function(e){var t;t=parseInt(e),console.log("handleNftProjectRadioChange",t),he(t),X&&(console.log(" handleNftProjectRadioChange set_selectedNftCollectionData",X[t]),Ee(X[t]))},value:ye},c.createElement(d.Kq,null,null===X||void 0===X?void 0:X.map((function(e,t){return c.createElement(T.Y8,Object.assign({key:t,value:t},q,{isDisabled:ke||j!==t&&e.channels&&e.channels[0]&&e.channels[0].xref_data&&e.channels[0].xref_data.gated_time}),c.createElement(d.xv,q,"".concat(e.name||e.entity_name),j!==t&&e.channels&&e.channels[0]&&e.channels[0].xref_data&&e.channels[0].xref_data.gated_time&&" (claimed)"))})))))):c.createElement(c.Fragment,null,E>=0&&c.createElement(d.xv,null,"Sorry, no compatible NFTs were found in this wallet. NFTs must be ERC-721 standard on a supported blockchain.")))),c.createElement(R.UO,{in:ue},c.createElement(d.Kq,{mt:1,spacing:4,pl:6},c.createElement(d.xu,null,c.createElement(N.h$,Object.assign({to:O.Cd.payments_payout_faq,target:"_blank"},A,{mt:0,mb:"6px",display:"inline"}),"Learn more"),c.createElement(d.xv,{ml:"6px",mt:0,mb:"6px",display:"inline"},"about monthly community subscriptions."),c.createElement(N.h$,Object.assign({to:O.Cd.pricing,target:"_blank",mt:0,mb:"6px",display:"inline",ml:"6px"},A),"Terms")),c.createElement(d.xv,{fontWeight:"medium"},"How much would you like to charge for monthly community subscriptions?"),c.createElement(x.NI,{isRequired:ue},c.createElement(T.Ee,{onChange:function(e){oe(e)},defaultValue:re||U()[1].stripe_plan_id},c.createElement(d.Kq,null,U().map((function(e,t){return c.createElement(T.Y8,Object.assign({key:e.stripe_plan_id,value:e.stripe_plan_id},q,{isDisabled:a}),c.createElement(d.xv,q,"".concat((0,z.xG)(e.amount)," / ").concat(e.interval)))})))))))))))},V=n(38769),M=n(97187),W=n(30761),X=function(){var e,t,n,T=(0,c.useState)(!1),I=(0,l.Z)(T,2),R=I[0],D=I[1],N=(0,c.useContext)(P.ZP),O=N.user_info,j=O.entity_uuid,A=O.access_level,q=(0,s.UO)(),U=(0,c.useRef)(),X=(0,c.useRef)(),B=(0,c.useRef)(),Y=(0,s.s0)(),G=(0,s.TH)(),$=(0,c.useState)([]),J=(0,l.Z)($,2),Q=J[0],ee=J[1],te=(0,
1c.useState)(),ne=(0,l.Z)(te,2),ae=ne[0],ie=ne[1],re=(0,c.useState)(!1),oe=(0,l.Z)(re,2),le=oe[0],ce=oe[1],ue=(0,c.useState)(""),se=(0,l.Z)(ue,2),me=se[0],pe=se[1],de=(0,c.useState)(""),_e=(0,l.Z)(de,2),ve=_e[0],fe=_e[1],ye=(0,c.useState)(""),he=(0,l.Z)(ye,2),xe=he[0],ge=he[1],Ee=(0,c.useState)({imagePreviewUrl:"",picFile:null,fileID:""}),be=(0,l.Z)(Ee,2),ke=be[0],Ce=be[1],we=(0,c.useState)({imagePreviewUrl:"",picFile:null,fileID:""}),Le=(0,l.Z)(we,2),He=Le[0],Pe=Le[1],Ze=(0,c.useState)({imagePreviewUrl:"",picFile:null,fileID:""}),ze=(0,l.Z)(Ze,2),Se=ze[0],Ke=ze[1],Te=(0,c.useState)(!1),Ie=(0,l.Z)(Te,2),Re=Ie[0],De=Ie[1],Ne=(0,c.useState)(!1),Oe=(0,l.Z)(Ne,2),je=Oe[0],Ae=Oe[1],qe=(0,c.useState)([]),Ue=(0,l.Z)(qe,2),Fe=Ue[0],Ve=Ue[1],Me=(0,c.useState)(),We=(0,l.Z)(Me,2),Xe=We[0],Be=We[1],Ye=(0,c.useState)(),Ge=(0,l.Z)(Ye,2),$e=Ge[0],Je=Ge[1],Qe=(0,c.useState)([]),et=(0,l.Z)(Qe,2),tt=et[0],nt=et[1],at=(0,c.useState)(),it=(0,l.Z)(at,2),rt=it[0],ot=it[1],lt=(0,c.useState)(!1),ct=(0,l.Z)(lt,2),ut=ct[0],st=ct[1],mt=(0,p.pm)(),pt=(G.state||{isEdit:!1}).isEdit,dt=(0,c.useCallback)((0,o.Z)((0,r.Z)().mark((function e(){var t,n,a,i,o,c,u,s,m,p;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={method:"get",url:"/rest/channels/".concat(q.entity_uuid)},n={method:"get",url:"/rest/channels/".concat(q.entity_uuid,"/users"),params:{filter_obj:{entity_owner_integer:{gte:1}}}},a={method:"get",url:"/rest/channels/".concat(q.entity_uuid,"/nft_projects"),params:{filter_obj:{gated_time:{gte:1}}}},i=[(0,k.Nv)(t,{use_cache:!1,use_auth:!0}),(0,k.Nv)(n,{use_cache:!1,use_auth:!0}),(0,k.Nv)(a,{use_cache:!1,use_auth:!0})],e.next=6,Promise.all(i);case 6:o=e.sent,c=(0,l.Z)(o,3),u=c[0],s=c[1],(m=c[2])&&m.length>0&&(u.nft_projects=m,u.nft_projects=u.nft_projects.filter((function(e){return e.xref_data&&e.xref_data.gated_time}))),p=!1,s.every((function(e,t){return e.entity_uuid!==N.user_info.entity_uuid||!e.xref_data||!e.xref_data.entity_owner_integer||1!==e.xref_data.entity_owner_integer||(p=!0,!1)})),D(p),ie(u),ee(s);case 17:case"end":return e.stop()}}),e)}))),[q.entity_uuid]),_t=(0,m.cI)({mode:"onChange"}),vt=_t.register,ft=_t.setValue,yt=_t.handleSubmit,ht=_t.setError,xt=_t.setFocus,gt=_t.getValues,Et=_t.watch,bt=_t.formState,kt=bt.isSubmitting,Ct=bt.errors;(0,c.useEffect)((function(){if(ae){var e=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(){var t,n,a,i,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"GET",url:"rest/channels/".concat(ae.entity_uuid,"/categories"),params:{sort_obj:{added_time:"desc"},limit:2}},e.next=3,(0,k.Nv)(n,{use_cache:!1,use_auth:!0});case 3:a=e.sent,2===a.length?(i=a.filter((function(e){return!e.parent_categories_uuids}))[0].entity_uuid,o=a.filter((function(e){return!!e.parent_categories_uuids}))[0].entity_uuid,ft("subcategory",o),ft("category",i)):null!==(t=a[0])&&void 0!==t&&t.entity_uuid&&ft("category",a[0].entity_uuid);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[ae,gt,ft]),(0,c.useEffect)((function(){N.user_info.entity_uuid?pt&&dt():Y(-1)}),[pt,Y,N.user_info.entity_uuid,dt]),(0,c.useEffect)((function(){if(ae){var e=ae.entity_name,t=ae.description,n=ae.avatar_image_url,a=ae.image_url,i=ae.thumb_image_url,r=ae.searchterms,o=ae.community_rules,l=ae.allow_comments,c=ae.allow_member_content;console.log("Check access",A,ae.shared_access_write_uuids),"admin"!==A&&(ae.shared_access_write_uuids&&ae.shared_access_write_uuids.includes(j)||Y("/communities/".concat(ae.friendly_url),{replace:!0})),e&&ft("entity_name",e),t&&ft("description",t),n&&pe(n),a&&fe(a),i&&ge(i),r&&Ve(r),o&&nt(o),"all"===l&&De(!0),"all"===c&&Ae(!0)}}),[ae,A,j,Y,ft]);var wt=function(e){console.log("uploadFile",e.target.id,e.target.files[0]),e.preventDefault();var t="avatar_image"===e.target.id?Ce:"thumb_image"===e.target.id?Ke:Pe,n=new FileReader,a=e.target.files[0],i=e.target.id;n.onloadend=function(){t({picFile:a,imagePreviewUrl:n.result,fileID:i})},n.readAsDataURL(a)},Lt=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("AVATAR COMMUNITY UUID: ",t),ce(!0),n={asset_data:ke.picFile,entity_type:"channels",entity_uuid:t,asset_type:ke.fileID,display_name:"Community Avatar",onProgressDisplayUp
1date:function(e){return console.log("UPLOAD PROGRESS",e)}},e.prev=3,e.next=6,(0,w.l)(n);case 6:a=e.sent,console.log("IMAGE RES: ",a),ce(!1),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),console.log("ERROR MSG: ",e.t0),ce(!1);case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}(),Ht=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ce(!0),n={asset_data:He.picFile,entity_type:"channels",entity_uuid:t,asset_type:He.fileID,display_name:"Community Cover Image"},e.prev=2,e.next=5,(0,w.l)(n);case 5:a=e.sent,console.log("IMAGE RES: ",a),ce(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),console.log("ERROR MSG: ",e.t0),ce(!1);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),Pt=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ce(!0),n={asset_data:Se.picFile,entity_type:"channels",entity_uuid:t,asset_type:Se.fileID,display_name:"Community Thumbnail Image"},e.prev=2,e.next=5,(0,w.l)(n);case 5:a=e.sent,console.log("IMAGE RES: ",a),ce(!1),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),console.log("ERROR MSG: ",e.t0),ce(!1);case 14:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}(),Zt=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,a;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===ae){e.next=16;break}return console.log("uploadFile",t.target.id,t.target.files[0]),ce(!0),n={asset_data:t.target.files[0],entity_type:"channels",entity_uuid:ae.entity_uuid,asset_type:t.target.id,display_name:"avatar_image"===t.target.id?"Community Avatar":"thumb_image"===t.target.id?"Community Thumbnail Image":"Community Cover Image"},e.prev=4,e.next=7,(0,w.l)(n);case 7:a=e.sent,"avatar_image"===t.target.id?pe(a):"thumb_image"===t.target.id?ge(a):fe(a),ce(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log("ERROR MSG: ",e.t0),ce(!1);case 16:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(t){return e.apply(this,arguments)}}(),zt=yt(function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n,i,o,c,u,s,m,p,d,_,v,f,y,h,x,g,E,b,C,w,L,H,P,Z,S;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Object.keys(Ct)).length){e.next=4;break}return xt(n[0]),e.abrupt("return");case 4:if(i="","admin"===N.user_info.access_level||!(null!==ae&&void 0!==ae&&ae.coordinates_lat||null!==ae&&void 0!==ae&&ae.coordinates_lon)){e.next=8;break}e.next=18;break;case 8:if(i=t.entity_name.trim(),"admin"===N.user_info.access_level){e.next=18;break}if((o=/^(pechakucha|pk)[\s]*night/i.test(i))||(o=/^PechaKucha/i.test(i)),!o){e.next=18;break}return console.log("NAME IS INVALID"),ht("entity_name",{type:"manual",message:"This Community name is reserved - please contact [email protected] for more information"},{shouldFocus:!0}),e.abrupt("return");case 18:if(!rt.nft_required||rt.nft_collection_data){e.next=21;break}return mt({title:"NFT Collection Required",description:"Please select an NFT Collection, or select a different access setting",status:"warning",variant:"pkWarningToast",duration:5e3,isClosable:!0}),e.abrupt("return");case 21:if(c=(0,a.Z)({},rt),u="",!c.nft_collection_data){e.next=37;break}if(!c.nft_collection_data.entity_uuid){e.next=28;break}u=c.nft_collection_data.entity_uuid,e.next=36;break;case 28:return console.log("CREATE NEW NFT PROJECT!",c.nft_collection_data),m=(null===(s=N.user_info.selected_eth_wallet)||void 0===s?void 0:s.split(".")[0])||"0x1",p={method:"POST",url:"rest/nft_projects",data:{entity_name:c.nft_collection_data.name,contract_type:c.nft_collection_data.contract_type,contract_address:c.nft_collection_data.token_address.toLowerCase(),network_name:"eth",chain_id:m,friendly_url:(0,z.lV)(c.nft_collection_data.name),symbol:c.nft_collection_data.symbol||""}},console.log("POST REQ",p),e.next=34,(0,k.Nv)(p);case 34:(d=e.sent).entity_uuid&&(u=d.entity_uuid);case 36:delete c.nft_collection_data;case 37:if(_=(0,a.Z)({allow_comments:Re?"all":"none",allow_member_content:je?"all":"none",description:t.description?t.description:""},c),i&&(_.entity_name=i),pt||(_.friendly_url=(0,z.lV)(t.entity_name)),pt&&ae&&(_.friendly_url=ae.friendly_url,_.avatar_image_url=me,_.image_url=ve),_.community_rules=tt,v=[],Fe.length>0&&(v=Fe),Xe&&v.push(Xe),$e&&v.push($e),v.length&&(_.searchterms=v),gt().category&&(f=gt().category,_.categories=[],_.categories.push({entity_uuid:f,xref_data:{added_time:(0,z.xM)()}}),gt().subcategory&&(y=gt().subcategory,_.categories.push({entity_uuid:y,xref_data:{added_time:(0,z.xM)()}}))),console.log("FINAL PATCH DATA:",_),!pt||!ae){e.next=70;break}
1return x=[],g={method:"PATCH",url:"rest/channels/".concat(ae.entity_uuid),data:_},x.push((0,k.Nv)(g)),u&&(ae.nft_projects&&ae.nft_projects[0].xref_data&&ae.nft_projects[0].xref_data.gated_time?u===ae.nft_projects[0].entity_uuid||(E={method:"PATCH",url:"rest/channels/".concat(ae.entity_uuid,"/nft_projects/").concat(u),data:{gated_time:Math.floor((new Date).getTime()/1e3)}},x.push((0,k.Nv)(E)),ae.nft_projects&&ae.nft_projects[0]&&ae.nft_projects[0].xref_data&&ae.nft_projects[0].xref_data.gated_time&&u!==ae.nft_projects[0].entity_uuid&&(b={method:"PATCH",url:"rest/channels/".concat(ae.entity_uuid,"/nft_projects/").concat(ae.nft_projects[0].entity_uuid),data:{gated_time:-1}},x.push((0,k.Nv)(b)))):(C={method:"PATCH",url:"rest/channels/".concat(ae.entity_uuid,"/nft_projects/").concat(u),data:{gated_time:Math.floor((new Date).getTime()/1e3)}},x.push((0,k.Nv)(C)))),e.prev=54,e.next=57,Promise.all(x);case 57:w=e.sent,L=(0,l.Z)(w,4),H=L[0],L[1],L[2],L[3],console.log("PATCH RESPONSE:",H),h=H.friendly_url,e.next=70;break;case 67:e.prev=67,e.t0=e.catch(54),console.log("ERROR MSG: ",e.t0);case 70:if(pt){e.next=98;break}return u&&(_.nft_projects=[{entity_uuid:u,xref_data:{gated_time:Math.floor((new Date).getTime()/1e3)}}]),P={method:"post",url:"/rest/channels",data:_},e.next=75,(0,k.Nv)(P,{use_auth:!0});case 75:if(Z=e.sent,console.log("CHANNEL RESPONSE: ",Z),null===ke.picFile){e.next=80;break}return e.next=80,Lt(Z.entity_uuid);case 80:if(null===He.picFile){e.next=83;break}return e.next=83,Ht(Z.entity_uuid);case 83:if(null===Se.picFile){e.next=86;break}return e.next=86,Pt(Z.entity_uuid);case 86:if(!Z||!Z.entity_uuid){e.next=98;break}return h=Z.friendly_url,S={method:"PATCH",url:"/rest/users/".concat(N.user_info.entity_uuid,"/channels.audience/").concat(Z.entity_uuid),data:{joined_time:(0,z.xM)()}},e.prev=89,e.next=92,(0,k.Nv)(S);case 92:Z=e.sent,e.next=98;break;case 95:e.prev=95,e.t1=e.catch(89),console.log("ERROR MSG: ",e.t1);case 98:h&&(Y("/communities/".concat(h)),mt({title:pt?"Update Successful":"Creation Successful",description:pt?"Your community information has been updated":"Your community has been created",status:"success",variant:"pkSuccessToast",duration:5e3,isClosable:!0}));case 99:case"end":return e.stop()}}),e,null,[[54,67],[89,95]])})));return function(t){return e.apply(this,arguments)}}()),St=function(){var e=gt().rule;console.log("RULE:",e),e&&(nt([].concat((0,i.Z)(tt),[e])),ft("rule",""))},Kt=function(){var e=(0,o.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"patch",url:"/rest/channels/".concat(null===ae||void 0===ae?void 0:ae.entity_uuid,"/users/").concat(t),data:{invited_organizer_info:{},entity_owner_integer:-1}},e.prev=1,e.next=4,(0,k.Nv)(n,{use_auth:!0});case 4:mt({title:"Update Successful",description:pt?"Your community information has been updated":"Your community information has been created",status:"success",variant:"pkSuccessToast",duration:5e3,isClosable:!0}),ee(Q),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.log("ERROR MSG: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}();if(pt&&!ae)return c.createElement(H.g,null);var Tt=(0,z.nn)(me,"320x320"),It=(0,z.nn)(ve,"1032x86"),Rt=(0,z.nn)(xe,"640x480");return c.createElement(d.xu,{maxW:{base:"432px",md:"524px",lg:"936px"},mx:"auto"},c.createElement(d.X6,{my:"19.5px"},pt?"Edit Community":"Create a Community"),c.createElement(d.xv,null,"Communities are spaces for you and other Pechakucha members to gather."),c.createElement(d.kC,{direction:"column",alignItems:"center",mt:"32px"},pt?c.createElement(c.Fragment,null,Tt?c.createElement(_.qE,{size:"xl",mb:"16px",src:Tt,bg:"#646464"}):c.createElement(v.Ee,{src:u.Z,boxSize:"96px",minW:"96px",bg:"#646464",borderRadius:"full",mb:"16px"})):c.createElement(c.Fragment,null,ke.imagePreviewUrl?c.createElement(_.qE,{size:"xl",mb:"16px",src:ke.imagePreviewUrl,bg:"#646464"}):c.createElement(v.Ee,{src:u.Z,boxSize:"96px",minW:"96px",bg:"#646464",borderRadius:"full",mb:"16px"})),c.createElement(d.kC,{flexDirection:"column",alignItems:"center",h:"32px",mb:"32px"},c.createElement(f.zx,{size:"sm",variant:"unstyled",color:"primary.primary",isLoading:kt||le,lineHeight:"21px",onClick:function(){return B.current.click()}},ke.imagePreviewUrl||Tt?"Change Community Avatar":"Add Community Avatar"),c.createElement(d.xv,{lineHeight:"18px",fontSize:"xs"},"We recommend a 400x400 (square) image")),c.createElement(y.TX,null,c.createElement(h.II,{id:"avatar_image",name:"avatar_image_url",type:"file",ref:B,onChange:function(e){pt?Zt(e):wt(e)}}))),c.createElement(d.Kq,{maxW:"936px",mx:"auto",mb:"32px",spacing:"32px"},c.createElement(x.NI,{isRequired:!0},c.createElement(x.lX,{htmlFor:"entity_name",fontWeight:"500"},"Community Name"),c.createElement(h.II,Object.assign({id:"entity_name",isDisabled:!("admin"===N.user_info.access_level||!(null!==ae&&void 0!==ae&&ae.coordinates_lat||null!==ae&&void 0!==ae&&ae.coordinates_lon))},vt("entity_name",{required:"A name is required for your community!",maxLength:{value:V.Kg.entity_name,message:(0,V.lc
1)(V.Kg.entity_name)}}))),"admin"!==N.user_info.access_level&&((null===ae||void 0===ae?void 0:ae.coordinates_lat)||(null===ae||void 0===ae?void 0:ae.coordinates_lon))&&c.createElement(d.xv,{mt:"4px",fontSize:"xs",color:"error.500"},"Please contact [email protected] to change your community name"),c.createElement(M.Z,{errorMsg:null===(e=Ct.entity_name)||void 0===e?void 0:e.message})),c.createElement(x.NI,null,c.createElement(x.lX,{fontWeight:"500",htmlFor:"description"},"Community Description"),c.createElement(g.g,Object.assign({id:"description",defaultValue:"We are a new community on PechaKucha.com! On our Feed tab, you can see shared presentations, events, and other shared content. Our Discussion tab is home to ongoing dialogue and comments. Please come back often to connect with us and our members."},vt("description",{minLength:{value:3,message:"Minimum 3 characters required"},maxLength:{value:V.Kg.entity_description,message:(0,V.lc)(V.Kg.entity_description)}}))),c.createElement(M.Z,{errorMsg:null===(t=Ct.description)||void 0===t?void 0:t.message,defaultMsg:"Maximum ".concat(V.Kg.entity_description," characters")})),c.createElement(F,{setAccessSettings:ot,initialValues:ae,isEdit:pt,errors:Ct}),c.createElement(W.Z,{register:vt,setValue:ft,getValues:gt,errors:Ct,watch:Et,setCategoryTag:Be,setSubCategoryTag:Je}),c.createElement(E.UQ,{allowToggle:!0},c.createElement(E.Qd,null,c.createElement(E.KF,{px:"8px"},c.createElement(d.xu,{flex:"1",fontWeight:"600",textAlign:"left"},"Additional Options"),c.createElement(E.XE,null)),c.createElement(E.Hk,{pt:"24px"},c.createElement(d.Kq,{spacing:"32px"},c.createElement(L.Z,{tagsAllowed:20,tags:[].concat((0,i.Z)(Fe),[Xe,$e]).filter((function(e,t,n){return n.indexOf(e)===t})),deletable:!0,handleAdd:function(e){if(![].concat((0,i.Z)(Fe),[Xe,$e]).includes(e.toLowerCase())){var t=(0,i.Z)(Fe);t.push(e),Ve(t)}},handleDelete:function(e){if(e!==Fe.length)if(e!==Fe.length+1){var t=(0,i.Z)(Fe);t.splice(e,1),Ve(t)}else Je("");else Xe?Be(""):Je("")}}),c.createElement(x.NI,null,c.createElement(x.lX,{fontWeight:"500",htmlFor:"community_rules"},"Community Rules"),tt&&c.createElement(d.QI,{mb:3},tt.map((function(e,t){return c.createElement(d.HC,{ml:3,key:t,mb:"12px"},c.createElement(d.Kq,{direction:"row",justify:"space-between"},c.createElement(d.xv,null,e),c.createElement(d.DE,{as:S.XS,boxSize:"21px",color:"primary.primary",cursor:"pointer",onClick:function(){return nt(tt.filter((function(t){return t!==e})))},"data-testid":"rules-remove"})))}))),c.createElement(g.g,Object.assign({onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),St(),ft("rule",""))}},vt("rule",{maxLength:{value:V.Kg.community_rules,message:(0,V.lc)(V.Kg.community_rules)}}),{placeholder:tt.length?"Add Another Rule":"Add a Rule","data-testid":"rules-textarea"})),c.createElement(M.Z,{errorMsg:null===(n=Ct.rule)||void 0===n?void 0:n.message}),c.createElement(d.kC,{w:"100%",justify:"end"},c.createElement(f.zx,{mt:"16px",size:"sm",onClick:function(){St()},leftIcon:c.createElement(S.t,{boxSize:"20px"}),"data-testid":"rules-button"},"Add Rule"))))))),c.createElement(d.xu,{w:"full"},c.createElement(x.NI,null,c.createElement(d.Kq,{direction:"row",justifyContent:"space-between"},c.createElement(x.lX,{htmlFor:"allow_comments",maxW:"390px"},"Allow members to post comments"),c.createElement(b.r,{isChecked:Re,onChange:function(){return De(!Re)},id:"allow_comments","data-testid":"allow-comments"}))),c.createElement(x.NI,{mt:"32px"},c.createElement(d.kC,{alignItems:"flex-start",justifyContent:"space-between"},c.createElement(x.lX,{htmlFor:"allow_member_content",maxW:"calc(100% - 64px)"}
1,"Allow members to save events and presentations to my community"),c.createElement(b.r,{id:"allow_member_content","data-testid":"allow-member-content",isChecked:je,onChange:function(){Ae(!je)}})))),ae&&c.createElement(d.xu,null,c.createElement(d.xv,{mb:"8px",fontWeight:"500"},"Organizers"),c.createElement(d.xv,{mb:"12px"},"All organizers will have the same permissions as you, except only a creator (you) will be able to delete the community. You can always change this at any time."),Q&&c.createElement(d.Eq,{mb:"12px"},Q.map((function(e){return c.createElement(d.Uc,{key:e.entity_uuid},c.createElement(C.Z,{size:"sm",userName:(0,z.oZ)(e),avatarUrl:e.avatar_image_url,entity_uuid:e.entity_uuid,handleRemove:Kt}))}))),c.createElement(Z.Z,{isPrivate:"super_private"===ae.public_status,entity_uuid:ae.entity_uuid,entity_name:ae.entity_name,userType:"organizer",entity_type:"channels",friendly_url:ae.friendly_url,subscriptionRequired:ae.subscription_required}),c.createElement(d.xu,{mt:"32px"},c.createElement(d.xu,null,c.createElement(d.xv,{fontWeight:"500",mb:"8px"},"Members"),c.createElement(d.xv,null,"Invite people to your community.")),c.createElement(Z.Z,{isPrivate:"super_private"===ae.public_status,entity_uuid:ae.entity_uuid,entity_name:ae.entity_name,userType:"member",entity_type:"channels",friendly_url:ae.friendly_url,subscriptionRequired:ae.subscription_required})))),c.createElement(d.xu,{mb:"32px"},c.createElement(d.xv,{mb:"8px",fontWeight:"500"},"Add Thumbnail Image"),c.createElement(d.xv,{mb:"16px",fontSize:"sm"},"We recommend a thumbnail image of 1920x1080 pixels. Thumbnail images work best at a 16:9 aspect ratio."),c.createElement(d.xu,{h:"226px",w:"431px",maxW:"100%",borderRadius:"20px",bg:"gray",overflow:"hidden",position:"relative"},c.createElement(v.Ee,{src:pt?Rt:Se.imagePreviewUrl,fit:"cover",h:"100%",w:"100%",alt:"Thumbnail image preview"}),c.createElement(f.zx,{position:"absolute",left:"50%",transform:"translateX(-50%) ",bottom:"24px",variant:"outlineWhite",isLoading:kt||le,onClick:function(){return U.current.click()}},Rt||Se.imagePreviewUrl?"Change Thumbnail Image":"Upload Thumbnail Image"),c.createElement(y.TX,null,c.createElement(h.II,{id:"thumb_image",name:"thumb_image",type:"file",ref:U,onChange:function(e){pt?Zt(e):wt(e)}})))),c.createElement(d.xu,null,c.createElement(d.xv,{mb:"8px",fontWeight:"500"},"Add Cover Image"),c.createElement(d.xv,{mb:"16px",fontSize:"sm"},"We recommend a cover image of 1620x135 pixels. Cover images work best at a 12:1 aspect ratio."),c.createElement(d.xu,{h:"86px",w:"100%",borderRadius:"20px",bg:"gray",overflow:"hidden",position:"relative"},c.createElement(v.Ee,{src:pt?It:He.imagePreviewUrl,fit:"cover",h:"100%",w:"100%",alt:"Cover image preview"}),c.createElement(f.zx,{position:"absolute",left:"50%",transform:"translateX(-50%) ",bottom:"24px",variant:"outlineWhite",isLoading:kt||le,onClick:function(){return X.current.click()}},It||He.imagePreviewUrl?"Change Cover Image":"Upload Cover Image"),c.createElement(y.TX,null,c.createElement(h.II,{id:"image",name:"image",type:"file",ref:X,onChange:function(e){pt?Zt(e):wt(e)}})))),c.createElement(d.xu,null,c.createElement(d.Kq,{direction:"row",alignItems:"flex-start",w:"full",maxW:"432px",mt:"40px",mb:{base:"32px",lg:"12px"}},c.createElement(d.xv,{fontSize:"14px",textColor:"primary.primary"},"*"," "),c.createElement(d.xv,{fontSize:"14px"},"Indicates required field")),c.createElement(d.Kq,{spacing:"12px",direction:{base:"column",lg:"row"},alignItems:{base:"unset",md:"center",lg:"flex-start"}},pt&&(R||"admin"===N.user_info.access_level)&&c.createElement(f.zx,{variant:"outline",type:"submit",onClick:function(){return st(!0)},leftIcon:c.createElement(S.pJ,{fill:"secondary.800"}),minW:{base:"100%",md:"200px"}},"Delete this Community"),c.createElement(f.zx,{type:"submit",onClick:zt,minW:{base:"100%",md:"200px"},"data-testid":"edit-community-button"},pt?"Save Changes and Update":"Create Community"),c.createElement(f.zx,{variant:"ghost",onClick:function(){return Y(-1)},my:{base:"24px",xl:0},minW:{base:"100%",md:"fit-content"}},"Cancel"))),ut&&c.createElement(K.default,{headerText:"Delete Community?",bodyText:"This will permanently remove the community. This cannot be undone.",action:function(){var e={method:"patch",url:"/rest/channels/".concat(null===ae||void 0===ae?void 0:ae.entity_uuid),data:{status_code:2}};try{(0,k.Nv)(e),console.log("DELETING COMMUNITY"),mt({title:"Community Removed",description:"Your community has been successfully removed.",status:"success",variant:"pkSuccessToast",duration:5e3,isClosable:!0}),Y("/")}catch(t){console.log("ERROR MSG: ",t)}},onClose:function(){return st(!1)}}))}},41742:function(e,t,n){var a=n(29439),i=n(96826),r=n(7276),o=n(43127),l=n(33842),c=n(80443);t.Z=function(e){var t=e.entity_uuid,n=e.entity_name,u=e.userType,s=e.friendly_url,m=e.isPrivate,p=e.buttonSize,d=(0,r.useState)(!1),_=(0,a.Z)(d,2),v=_[0],f=_[1];return r.createElement(r.Fragment,null,"organizer"!==u&&r.createElement(o.zx,{leftIcon:r.createElement(l.bV,{fill:"neutral.white"}),mt:"12px",alignSelf:"center",onClick:function(){return f(!0)},size:p||"md"},"Invite and Manage Members"),"organizer"===u&&r.createElement(o.zx,{variant:"ghost",textColor:"primary.primary",fontWeight:"bold",size:p||"sm",justifyContent:"left",alignItems:"center",onClick:function(){return f(!0)},leftIcon:r.createElement(l.Lb,{boxSize:"20px"})},"Add and Manage Organizers"),v&&r.createElement(i.Z,{isOpen:v,onClose:function(){return f(!1)},entityUUID:t,entity_name:n,entityType:"channels",invitingAs:u,urlToShare:"".concat(c.Cd.channels,"/").concat(s),isPrivate:m}))}},38257:function(e,t,n){n.d(t,{J$:function(){return a},Xe:function(){return r},_D:function(){return c},hg:function(){return o},j2:function(){return i},to:function(){return l}});var a={dev:[{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2aMXqayHX",nickname:"PK Chat Cheer",interval:"none",amount:200,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH25mUxhFp3",nickname:"PK Chat Cheer",interval:"none",amount:500,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2CTXNfW5L",nickname:"PK Chat Cheer",interval:"none",amount:1e3,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2gYliA7Kh",nickname:"PK Chat Cheer",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2QixSLqwM",nickname:"PK Chat Cheer",interval:"none",amount:5e3,type:"normal"}],staging:[{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2aMXqayHX",nickname:"PK Chat Cheer",interval:"none",amount:200,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH25mUxhFp3",nickname:"PK Chat Cheer",interval:"none",amount:500,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2CTXNfW5L",nickname:"PK Chat Cheer",interval:"none",amount:1e3,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2gYliA7Kh",nickname:"PK Chat Cheer",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1Kw8ucE7ozuiLxH2QixSLqwM",nickname:"PK Chat Cheer",interval:"none",amount:5e3,type:"normal"}],live:[{stripe_plan_id:"price_1Kw9BOE7ozuiLxH2rdFtRiPD",nickname:"PK Chat Cheer",interval:"none",amount:200,type:"normal"},{stripe_plan_id:"price_1Kw9BOE7ozuiLxH2ubsuXfWY",nickname:"PK Chat Cheer",interval:"none",amount:500,type:"normal"},{stripe_plan_id:"price_1Kw9BOE7ozuiLxH2XSFl8HYZ",nickname:"PK Chat Cheer",interval:"none",amount:1e3,type:"normal"},{stripe_plan_id:"price_1Kw9BOE7ozuiLxH2UmYcHcC7",nickname:"PK Chat Cheer",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1Kw9BOE7ozuiLxH2CXGBHaS0",nickname:"PK Chat Cheer",interval:"none",amount:5e3,type:"normal"}]},i={dev:[{stripe_plan_id:"price_1LmNoIE7ozuiLxH22NVBgz7s",nickname:"$5000",interval:"none",amount:5e4,type:"normal"}],staging:[{stripe_plan_id:"price_1LmNoIE7ozuiLxH22NVBgz7s",nickname:"$5000",interval:"none",amount:5e4,type:"normal"}],live:[{stripe_plan_id:"price_1LmND5E7ozuiLxH2kMBZ0XRy",nickname:"$5000",interval:"none",amount:5e4,type:"normal"}]},r={dev:[{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$10",interval:"none",amount:1e3,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$20",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$50",interval:"none",amount:5e3,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$100",interval:"none",amount:1e4,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$500",interval:"none",amount:5e4,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$1000",interval:"none",amount:1e5,type:"normal"},{stripe_plan_id:"price_1LhHZ7E7ozuiLxH2FzhxgLXw",nickname:"$2500",interval:"none",amount:25e4,type:"normal"}],staging:[{stripe_plan_id:"price_1Lhi1DE7ozuiLxH2yZMDXOAV",nickname:"$20",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1Lhi1NE7ozuiLxH2heghVZZn",nickname:"$50",interval:"none",amount:5e3,type:"normal"},{stripe_plan_id:"price_1Lhi1VE7ozuiLxH2ru7QTmIm",nickname:"$100",interval:"none",amount:1e4,type:"normal"},{stripe_plan_id:"price_1LhxV1E7ozuiLxH27GwUK1g1",nickname:"$200",interval:"none",amount:2e4,type:"normal"},{stripe_plan_id:"price_1Lhi1cE7ozuiLxH2lg4Z0wb0",nickname:"$500",interval:"none",amount:5e4,type:"normal"},{stripe_plan_id:"price_1Lhi1iE7ozuiLxH2Dj3j7gRV",nickname:"$1000",interval:"none",amount:1e5,type:"normal"}],live:[{stripe_plan_id:"price_1LhyLdE7ozuiLxH2lUGnMbH7",nickname:"$20",interval:"none",amount:2e3,type:"normal"},{stripe_plan_id:"price_1LhyLdE7ozuiLxH22JYaUtoe",nickname:"$50",interval:"none",amount:5e3,type:"normal"},{stripe_plan_id:"price_1LhyLdE7ozuiLxH2ul51JjDr",nickname:"$100",interval:"none",amount:1e4,type:"normal"},{stripe_plan_id:"price_1LhyLdE7ozuiLxH2hYPERE05",nickname:"$200",interval:"none",amount:2e4,type:"normal"},{stripe_plan_id:"price_1LhyLdE7ozuiLxH2BZ0EckjB",nickname:"$500",interval:"none",amount:5e4,type:"normal"},{stripe_plan_id:"price_1LhyLdE7ozuiLxH2kDLZ1u3b",nickname:"$1000",interval:"none",amount:1e5,type:"normal"}]},o={dev:[{stripe_plan_id:"price_1LemHzE7ozuiLxH2UhqJgdfU",nickname:"PK Pro",interval:"month",amount:999,type:"pro"}],staging:[{stripe_plan_id:"price_1LemHzE7ozuiLxH2UhqJgdfU",nickname:"PK Pro",interval:"month",amount:999,type:"pro"}],live:[{stripe_plan_id:"price_1LemIVE7ozuiLxH2G24tKjDY",nickname:"PK Pro",interval:"month",amount:999,type:"pro"}]},l={dev:[{stripe_plan_id:"price_1MTZ3TE7ozuiLxH2Ztvo5Zbs",nickname:"PK Community Subscription",interval:"year",amount:9999,type:"community_subscription"},{stripe_plan_id:"price_1KwDEOE7ozuiLxH2Pc8tz09C",nickname:"PK Community Subscription",interval:"month",amount:200,type:"community_subscription"},{stripe_plan_id:"price_1KwDEfE7ozuiLxH2YFCEUYMm",nickname:"PK Community Subscription",interval:"month",amount:500,type:"community_subscription"},{stripe_plan_id:"price_1KwDEmE7ozuiLxH29K0rCgeD",nickname:"PK Community Subscription",interval:"month",amount:1e3,type:"community_subscription"},{stripe_plan_id:"price_1KwDEvE7ozuiLxH2EwoVg2Z5",nickname:"PK Community Subscription",interval:"month",amount:2e3,type:"community_subscription"},{stripe_plan_id:"price_1KwDF4E7ozuiLxH2OXaKoZG2",nickname:"PK Community Subscription",interval:"month",amount:5e3,type:"community_subscription"},{stripe_plan_id:"price_1MTZ3TE7ozuiLxH2Ztvo5Zbs",nickname:"PK Community Subscription",interval:"year",amount:9900,type:"community_subscription"}],staging:[{stripe_plan_id:"price_1KwDEOE7ozuiLxH2Pc8tz09C",nickname:"PK Community Subscription",interval:"month",amount:200,type:"community_subscription"},{stripe_plan_id:"price_1KwDEfE7ozuiLxH2YFCEUYMm",nickname:"PK Community Subscription",interval:"month",amount:500,type:"community_subscription"},{stripe_plan_id:"price_1KwDEmE7ozuiLxH29K0rCgeD",nickname:"PK Community Subscription",interval:"month",amount:1e3,type:"community_subscription"},{stripe_plan_id:"price_1KwDEvE7ozuiLxH2EwoVg2Z5",nickname:"PK Community Subscription",interval:"month",amount:2e3,type:"community_subscription"},{stripe_plan_id:"price_1KwDF4E7ozuiLxH2OXaKoZG2",nickname:"PK Community Subscription",interval:"month",amount:5e3,type:"community_subscription"},{stripe_plan_id:"price_1MTZ3TE7ozuiLxH2Ztvo5Zbs",nickname:"PK Community Subscription",interval:"year",amount:9900,type:"community_subscription"}],live:[{stripe_plan_id:"price_1KvpULE7ozuiLxH2V0t7XHI6",nickname:"PK Community Subscription",interval:"month",amount:200,type:"community_subscription"},{stripe_plan_id:"price_1KvpULE7ozuiLxH2DrN4xwpb",nickname:"PK Community Subscription",interval:"month",amount:500,type:"community_subscription"},{stripe_plan_id:"price_1KvpULE7ozuiLxH2TFCSmb9k",nickname:"PK Community Subscription",interval:"month",amount:1e3,type:"community_subscription"},{stripe_plan_id:"price_1KvpULE7ozuiLxH23ozGbvqr",nickname:"PK Community Subscription",interval:"month",amount:2e3,type:"community_subscription"},{stripe_plan_id:"price_1KvpULE7ozuiLxH2EO9uAL7H",nickname:"PK Community Subscription",interval:"month",amount:5e3,type:"community_subscription"},{stripe_plan_id:"price_1MTZcvE7ozuiLxH2x2E4OeBz",nickname:"PK Community Subscription",interval:"year",amount:9999,type:"community_subscription"}]},c={dev:{price_1KtYjfE7ozuiLxH28BVoiAL5:{nickname:"PK Pro 3.0",interval:"month",amount:4999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},price_1LemHzE7ozuiLxH2UhqJgdfU:{nickname:"PK Pro 3.0",interval:"month",amount:999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVa4ySCEdbvF1:{nickname:"Business Team",interval:"month",amount:1e4,type:"team"},plan_HCVcemcVayW02V:{nickname:"Business Team",interval:"year",amount:96e3,type:"team"},plan_HCVgvstHLfXtCq:{nickname:"NPO Team",interval:"month",amount:7e3,type:"team"},plan_HCVfkypO4Rqm33:{nickname:"NPO Team",interval:"year",amount:6e4,type:"team"},plan_HCVXMHaaTIcs4q:{nickname:"Business Pro",interval:"month",amount:1e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVUxgJALYkRQT:{nickname:"Business Pro",interval:"year",amount:9600,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVeOGjHnBuDdH:{nickname:"NPO Pro",interval:"month",amount:700,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVe3mAlwpv5S1:{nickname:"NPO Pro",interval:"year",amount:6e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}}},staging:{price_1KtYjfE7ozuiLxH28BVoiAL5:{nickname:"PK Pro 3.0",interval:"month",amount:4999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},price_1LemHzE7ozuiLxH2UhqJgdfU:{nickname:"PK Pro 3.0",interval:"month",amount:999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVa4ySCEdbvF1:{nickname:"Business Team",interval:"month",amount:1e4,type:"team"},plan_HCVcemcVayW02V:{nickname:"Business Team",compare_plan:"plan_HCVa4ySCEdbvF1",interval:"year",amount:96e3,type:"team"},plan_HCVgvstHLfXtCq:{nickname:"NPO Team",interval:"month",amount:7e3,type:"team"},plan_HCVfkypO4Rqm33:{nickname:"NPO Team",compare_plan:"plan_HCVgvstHLfXtCq",interval:"year",amount:6e4,type:"team"},plan_HCVXMHaaTIcs4q:{nickname:"Business Pro",interval:"month",amount:1e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVUxgJALYkRQT:{nickname:"Business Pro",compare_plan:"plan_HCVXMHaaTIcs4q",interval:"year",amount:9600,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVeOGjHnBuDdH:{nickname:"NPO Pro",interval:"month",amount:700,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HCVe3mAlwpv5S1:{nickname:"NPO Pro",compare_plan:"plan_HCVeOGjHnBuDdH",interval:"year",amount:6e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}}},live:{price_1KvoKAE7ozuiLxH2AdfItKoj:{nickname:"PK Pro 3.0",interval:"month",amount:4999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},price_1LemIVE7ozuiLxH2G24tKjDY:{nickname:"PK Pro 3.0",inte
1rval:"month",amount:999,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HDaAjDHNQ1GhNw:{nickname:"Business Team",interval:"month",amount:1e4,type:"team"},plan_HDaA1agPtgaRvK:{nickname:"Business Team",compare_plan:"plan_HDaAjDHNQ1GhNw",interval:"year",amount:96e3,type:"team"},plan_HDa8cI5n9KWjep:{nickname:"NPO Team",interval:"month",amount:7e3,type:"team"},plan_HDa7gJ0Xioboqb:{nickname:"NPO Team",compare_plan:"plan_HDa8cI5n9KWjep",interval:"year",amount:6e4,type:"team"},plan_HDaBhDZBkIx7Yo:{nickname:"Business Pro",interval:"month",amount:1e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HDaAE5QQzGdRiD:{nickname:"Business Pro",compare_plan:"plan_HDaBhDZBkIx7Yo",interval:"year",amount:9600,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HDa9370xc2kEDy:{nickname:"NPO Pro",interval:"month",amount:700,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}},plan_HDa80VGsEahUYN:{nickname:"NPO Pro",compare_plan:"plan_HDa9370xc2kEDy",interval:"year",amount:6e3,type:"pro",updates:{activate:{users:{account_level:"private"}},deactivate:{users:{account_level:"normal"}}}}}}}}]);
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.