PageSourceSearch

https://my.designermindset.net/packs/js/11341-710bfa8b1cf7cc9d.chunk.js

js designermindset.net collected 2026-10-07 22:57:47 UTC 14,205 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[11341],{378894(e,t,n){var r=n(825284),o=n(417980),i="settings.validation",c=function(e){var t=null!=e?e:{},n=t.isRequired,c=t.maxLength,a=void 0===c?255:c,s=t.requiredText,l=void 0===s?(0,o.t)([i,"this_field_is_required"]):s,u=t.maxLengthText,d=void 0===u?(0,o.t)([i,"maximum_number_of_characters_allowed"],{count:a}):u,p=t.isURL,f=void 0!==p&&p;return{required:{value:void 0===n||n,message:l},maxLength:{value:a,message:d},validate:{isURL:function(e){return!f||!e||!!(0,r.G)(e)||(0,o.t)([i,"invalid_url_format"])}}}},a=function(e){return/^[a-z0-9_-]+$/.test(e)},s=function(e){return new Date(1e3*e)};n.d(t,{D3:()=>s,eX:()=>c,hw:()=>a})},15548(e,t,n){n.d(t,{M:()=>G});var r=n(391426),o=n(974618),i=n(231127),c=n(927561),a=n(451430),s=n(417980),l=n(66108),u=function(e){var t=e.onConfirm,n=void 0===t?a.noop:t,i=(0,o.hS)();return(0,r.jsx)(l.R,{isOpen:i.visible,onClose:i.remove,onConfirm:n,confirmText:(0,s.t)("confirm"),title:(0,s.t)("settings.topics.confirmation_modal.title"),modalBodyClassName:"mb-6",children:(0,s.t)("settings.topics.confirmation_modal.description")})},d=o.PT.create(function(e){return(0,r.jsx)(u,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e))}),p=function(){return(0,o.hS)(d)},f=n(339551),m=n(699241),b=n(244704),h=n(258752),y=n(717526),j=n(674251),O=n(378894),g=n(733156),v=n(973646),w=n(568316),_=n(286276),x=n(898666),P=n(930140),S=n(341409),T=function(e){return{id:e.id,name:e.name,topicsCount:e.topics_count}},C=function(e){return{id:e.id,name:e.name,spaces:[]}},D=function(){var e=(0,P.JJ)({serializeSpace:T,serializeSpaceGroup:C}),t=e.spaceRecords,n=e.spaceGroupRecords,r=e.options,o=e.spaceGroupIndex,i=t.filter(function(e){return(0,S.ge)(e)||(0,S.nK)(e)||(0,S.QM)(e)||(0,S.yd)(e)});return{spaceGroupRecords:n,spaceRecords:t,spaceGroupOptions:r.map(function(e){var t,n;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={spaces:e.spaces.filter(function(e){return i.some(function(t){return t.id===e.id})})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t}),spaceGroupIndex:o}},k=function(){var e=D().spaceGroupOptions;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"py-3",children:[(0,r.jsx)(w.o.LabelMd,{weight:"semibold",color:"text-darkest",children:(0,s.t)("settings.topics.space_management.title")}),(0,r.jsx)(x.$,{content:(0,s.t)("settings.topics.space_management.tooltip"),className:"ml-1 inline-flex",children:(0,r.jsx)(v.In,{type:"question-mark",className:"!w-3"})})]}),(0,r.jsxs)(_.w,{options:e,className:"!h-auto md:!h-[300px] flex-auto",children:[(0,r.jsx)(_.w.Header,{children:(0,r.jsx)(_.w.SearchBar,{})}),(0,r.jsxs)(_.w.Body,{className:"overflow-y-hidden",children:[(0,r.jsxs)(_.w.ListHeader,{className:"min-h-[3rem]",children:[(0,r.jsx)(_.w.ListHeaderColumnNoAccess,{title:(0,s.t)("settings.topics.space_management.not_visible"),shouldShowAddAllButton:!1}),(0,r.jsx)(_.w.ListHeaderColumnAccessGranted,{title:(0,s.t)("settings.topics.space_management.visible")})]}),(0,r.jsxs)(_.w.ListContainer,{className:"overflow-hidden",children:[(0,r.jsx)(_.w.ListMobile,{shouldShowAddParentToggle:!1}),(0,r.jsx)(_.w.ListNoAccess,{className:"overflow-y-auto",shouldShowAddParentButton:!1}),(0,r.jsx)(_.w.ListAccessGranted,{className:"overflow-y-auto"})]})]})]})]})},I="settings.topics",F="topic-form-modal-form",L=function(e){var t,n,o,i=e.topicId,a=void 0===i?null:i,l=e.open,u=e.onOpenChange,d=!!a,v=(0,y.d)(),w=v.success,_=v.error,x=(0,g.s)(),P=x.createTopic,S=x.updateTopic,T=(0,O.eX)(),C=(0,f.E)().actions.refresh,D=p(),L=(0,h.IT)((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},m.AB.detail(a)),n=n={enabled:d},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)).data,E=(0,h.n_)({mutationFn:P,onMutate:function(){return D.remove()},onSuccess:function(){m.$7.all(),w((0,s.t)([I,"create_success"])),C(),u(!1)},onError:function(){_((0,s.t)([I,"create_error"]))}}),N=(0,h.n_)({mutationFn:S,onMutate:function(){return D.remove()},onSuccess:function(){m.$7.all(),w((0,s.t)([I,"update_success"])),C(),u(!1)},onError:function(){_((0,s.t)([I,"update_error"]))}}),R=(o=function(e){return d?N.mutate({TopicId:a,Topic:e}):E.mutate(e)},function(e){0===e.space_ids.length&&0===e.space_group_ids.length?o(e):D.show({onConfirm:function(){return o(e)}})});if(d&&!L)return null;var z=L?{name:L.name,admin_only:L.admin_only,space_ids:L.space_ids,space_group_ids:[]}:{space_ids:[],space_group_ids:[]},B=E.isPending||N.isPending;return(0,r.jsx)(b.a.Root,{open:l,onOpenChange:u,size:"lg",children:(0,r.jsxs)(b.a.Content,{children:[(0,r.jsx)(b.a.Header,{title:(0,s.t)([I,d?"modal_edit_title":"modal_create_title"])}),(0,r.jsx)(b.a.Body,{children:(0,r.jsxs)(c.l,{id:F,onSubmit:R,defaultValues:z,children:[(0,r.jsx)(j.o.LabelMd,{weight:"medium",children:(0,s.t)([I,"modal_description"])}),(0,r.jsx)(c.l.Item,{name:"name",translationRoot:I,hideDescription:!0,hidePlaceholder:!0,hideBorder:!0,rules:T,children:(0,r.jsx)(c.l.Input,{autoFocus:!0})}),(0,r.jsx)(c.l.Item,{name:"admin_only",label:(0,s.t)([I,"admin_only_label"]),hideDescription:!0,hideBorder:!0,fullWidth:!0,inlineReverse:!0,labelClassName:"!font-medium",shouldToggleValueOnLabelClick:!0,children:(0,r.jsx)(c.l.ToggleSwitch,{name:"admin_only",variant:"small"})}),(0,r.jsx)(k,{})]},null!=a?a:"new")}),(0,r.jsx)(b.a.Footer,{secondaryAction:{label:(0,s.t)("cancel")},primaryAction:{label:(0,s.t)([I,d?"table.edit_button":"table.create_button"]),loading:B,type:"submit",form:F}})]})})},E=n(737225),N=n(387099),R="settings.topics",z=function(e){var t,n,i,a=e.topicId,l=void 0===a?null:a,u=!!l,d=(0,o.hS)(),b=(0,y.d)(),v=b.success,w=b.error,_=(0,g.s)(),x=_.createTopic,P=_.updateTopic,S=(0,O.eX)(),T=(0,f.E)().actions.refresh,C=p(),D=(0,h.IT)((t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},m.AB.detail(l)),n=n={enabled:u},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)).data,I=(0,h.n_)({mutationFn:x,onMutate:function(){return C.remove()},onSuccess:function(){m.$7.all(),v((0,s.t)([R,"create_success"])),T(),d.remove()},onError:function(){w((0,s.t)([R,"create_error"]))}}),F=(0,h.n_)({mutationFn:P,onMutate:function(){return C.remove()},onSuccess:function(){m.$7.all(),v((0,s.t)([R,"update_success"])),T(),d.remove()},onError:function(){w((0,s.t)([R,"update_error"]))}}),L=(i=function(e){return u?F.mutate({TopicId:l,Topic:e}):I.mutate(e)},function(e){0===e.space_ids.length&&0===e.space_group_ids.length?i(e):C.show({onConfirm:function(){return i(e)}})}),z=function(){return d.remove()};if(u&&!D)return null;var B=D?{name:D.name,admin_only:D.admin_only,space_ids:D.space_ids,space_group_ids:[]}:{space_ids:[],space_group_ids:[]};return(0,r.jsxs)(E.aF,{isOpen:d.visible,onClose:z,contentPortalId:"topic-form-modal",children:[(0,r.jsx)(E.aF.Overlay,{}),(0,r.jsx)(E.aF.Content,{size:"lg",children:(0,r.jsxs)(c.l,{onSubmit:L,defaultValues:B,children:[(0,r.jsxs)(E.aF.Header,{children:[(0,r.jsx)(E.aF.Title,{size:"md",className:"w-full",children:(0,s.t)([R,u?"modal_edit_title":"modal_create_title"])}),(0,r.jsx)(E.aF.HeaderActions,{children:(0,r.jsx)(E.aF.CloseButton,{onClick:z})})]}),(0,r.jsxs)(E.aF.Body,{children:[(0,r.jsx)(j.o.LabelMd,{weight:"medium",children:(0,s.t)([R,"modal_description"])}),(0,r.jsx)(c.l.Item,{name:"name",translationRoot:R,hideDescription:!0,hidePlaceholder:!0,hideBorder:!0,rules:S,children:(0,r.jsx)(c.l.Input,{autoFocus:!0})}),(0,r.jsx)(c.l.Item,{name:"admin_only",label:(0,s.t)([R,"admin_only_label"]),hideDescription:!0,hideBorder:!0,fullWidth:!0,inlineReverse:!0,labelClassName:"!font-medium",shouldToggleValueOnLabelClick:!0,children:(0,r.jsx)(c.l.ToggleSwitch,{name:"admin_only",variant:"small"})}),(0,r.jsx)(k,{})]}),(0,r.jsx)(E.aF.Footer,{children:(0,r.jsxs)("div",{className:"flex items-stretch justify-end space-x-4",children:[(0,r.jsx)(N.$,{type:"button",variant:"secondary",onClick:z,children:(0,s.t)("cancel")}),(0,r.jsx)(N.$,{type:"submit",variant:"circle",children:(0,s.t)([R,u?"table.edit_button":"table.create_button"])})]})})]})})]})};function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}var $=o.PT.create(function(e){return(0,r.jsx)(z,B({},e))}),A=o.PT.create(function(e){var t,n,i=(0,o.hS)();return(0,r.jsx)(L,(t=B({},e),n=n={open:i.visible,onOpenChange:function(e){e||i.hide()}},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
1)(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))}),G=function(){var e=(0,i.T)("circle_v4_modals_enabled");return(0,o.hS)(e?A:$)}},733156(e,t,n){var r=n(915779),o=n(51730);function i(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){n(e);return}a.done?t(s):Promise.resolve(s).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var c=e.apply(t,n);function a(e){i(c,r,o,a,s,"next",e)}function s(e){i(c,r,o,a,s,"throw",e)}a(void 0)})}}function a(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),a=Object.defineProperty;return a(c,"next",{value:s(0)}),a(c,"throw",{value:s(1)}),a(c,"return",{value:s(2)}),"function"==typeof Symbol&&a(c,Symbol.iterator,{value:function(){return this}}),c;function s(a){return function(s){var l=[a,s];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var s=function(){return{listTopics:function(e){var t=e.params;return(0,o.i_)(r.iK.settings.topics.index({params:void 0===t?{}:t}))},getTopic:function(e){return c(function(){return a(this,function(t){return[2,(0,o.i_)(r.iK.settings.topics.show({uuid:e}))]})})()},createTopic:function(e){return c(function(){return a(this,function(t){return[2,(0,o.oK)(r.iK.settings.topics.create(),{topic:e})]})})()},updateTopic:function(e){var t=e.TopicId,n=e.Topic;return c(function(){return a(this,function(e){return[2,(0,o.$H)(r.iK.settings.topics.update({uuid:t}),n)]})})()},deleteTopic:function(e){return c(function(){return a(this,function(t){return[2,(0,o.Dc)(r.iK.settings.topics.destroy({uuid:e}))]})})()}}};n.d(t,{s:()=>s})},825284(e,t,n){var r=function(e){return!!RegExp("^(https?:\\/\\/)?(([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z\\d]{2,}(\\:\\d+)?(\\/[\\-;:&=\\+\\$,\\w\\.]*\\/?)*(\\?[\\-;:&=\\+\\$,\\w\\.%]*)?(\\#[\\-/\\w]*)?$","i").test(e)},o=function(e){try{var t=new URL(e),n="http:"===t.protocol||"https:"===t.protocol,r=/^(([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z\d]{2,}$/i.test(t.hostname)||/^(\d{1,3}\.){3}\d{1,3}$/.test(t.hostname),o=""===t.username&&""===t.password,i=!t.pathname.includes(" ");return n&&r&&o&&i}catch(e){return!1}};n.d(t,{G:()=>o,M:()=>r})}}]);
2//# sourceMappingURL=/packs/js/11341-710bfa8b1cf7cc9d.chunk.js.map

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.