PageSourceSearch

https://platform.baza7.ro/packs/js/89304-dce202738d5eed69.js

js baza7.ro collected 2026-10-01 02:27:23 UTC 11,213 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[89304],{235172(e,r,t){t.d(r,{s:()=>K});var n=t(391426),o=t(406799),i=t(897969),l=t(240126),a=t(913275),s=t(933578),c=t(328050),u=t(483682),d=t(446931),f=t(920216),p=t(866621),y=t(339037),m=t(579880),b=function(e){var r=(0,m.Z)();return(0,s.useMemo)(function(){var t,n;return r?e:(t=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},e),n=n={elements:e.elements.filter(function(e){return!("field"===e.type&&e.attributes.profile_field_id)})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t)},[e,r])}
1,g=t(927561),h=t(451430),O=t(417980),v=t(511352),j=t(370528),w=t(674251),x=t(230763),P=t(570310),k=t(355104),S=t(258752),_=t(776410),E=t(717526),C=t(33874),D=function(e,r,t){e.forEach(function(e){"field"!==e.type||e.attributes.hidden?"layout"===e.type&&e.children&&D(e.children,r,t):(r[e.elementable_id]=t.value,t.value++)})},N=function(e){var r={};return D(e.elements,r,{value:0}),r},A=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onError,r=(0,E.d)(),t=(0,y.pG)(),n=t.form,o=t.index,i=t.isModal,l=t.renderType,a=t.setBackendErrors,c=t.setShouldRenderEndingPage,u=t.setIsSubmitting,d=(0,C.T)().suppressPopupForm,f=N(n),p=(0,S.n_)({mutationFn:function(e){return _.i.create({formId:n.id,payload:e})},onSuccess:function(){i&&d(),"thank_you_page"===n.after_submission_action?c(!0):"redirect"===n.after_submission_action&&("standalone"===l?window.location.href=n.redirect_url:window.parent.postMessage({type:"redirect",formUid:n.uid,formIndex:o,url:n.redirect_url},"*"))},onError:function(t){null==e||e(),t.errorDetails&&Array.isArray(t.errorDetails)&&t.errorDetails.length>0?a(t.errorDetails.reduce(function(e,r){return e[f[r.elementable_id]]=r.error,e},{})):429===t.status?r.error((0,O.t)("settings.forms.errors.too_many_submissions")):r.error(t.message)}}),m=p.mutate,b=p.isPending;return(0,s.useEffect)(function(){u(b)},[b,u]),{mutate:m}},T=t(723781),F=t(892907),M=function(e){var r=e.children,t=(0,y.pG)(),o=t.formBackgroundColor,i=t.pageBackgroun
1dColor,l=t.renderType,a=(0,x.Od)().currentCommunity,s="standalone"===l,c=s&&a&&!a.white_label;return s?(0,n.jsxs)("main",{className:"flex min-h-[100vh] h-fit w-full flex-col items-center gap-6 py-12",style:{backgroundColor:i},children:[(0,n.jsx)(T.a,{className:"h-fit w-full max-w-[600px] p-10",style:{backgroundColor:o},children:r}),c&&(0,n.jsxs)("a",{href:"https://circle.so",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1",children:[(0,n.jsx)(F.o5,{component:"span",variant:"body-md",color:"secondary",children:(0,O.t)("powered_by")}),(0,n.jsx)(F.o5,{variant:"label-md",children:(0,O.t)("circle")})]})]}):(0,n.jsx)(n.Fragment,{children:r})},R=function(e){var r=e.children,t=(0,y.pG)(),o=t.formBackgroundColor,i=t.pageBackgroundColor,l=t.renderType,a=(0,x.Od)().currentCommunity,s="standalone"===l&&a&&!a.white_label;return(0,n.jsxs)("div",{className:(0,P.x)({"py-12 flex flex-col w-full items-center min-h-[100vh] h-fit gap-6":"standalone"===l}),style:{backgroundColor:i},children:[(0,n.jsx)("div",{className:(0,P.x)({"rounded-md p-10 shadow-lg border-primary border w-full max-w-[600px] h-fit":"standalone"===l}),style:{backgroundColor:"standalone"===l?o:void 0},children:r}),s&&(0,n.jsxs)("a",{href:"https://circle.so",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1",children:[(0,n.jsxs)("span",{className:"text-light",children:[(0,O.t)("powered_by")," "]}),(0,n.jsx)("span",{className:"text-dark font-semibold",children:(0,O.t)("circle")})]})]})};function q(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function z(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function G(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}var I=function(e){var r,t=e.children,o=(0,x.Od)().isLoading,i=(0,y.pG)(),l=i.form,a=i.isPreview,c=i.isUsedOnPages,u=i.formStyles,d=i.formDomId,f=i.formBackgroundColor,p=i.shouldRenderEndingPage,m=i.isModal,b=i.setFormHeight,S=i.index,_=(0,k.c)().isCircleV4,E=(0,j.A)(a),C=E.turnstileRef,D=E.dispatch,N=E.resetTurnstileToken,T=E.shouldShowTurnstile,F=E.shouldUseTurnstile,I=E.turnstileSiteKey,K=(0,s.useRef)(null),U=function(e){if(Array.isArray(e))return e}(r=(0,s.useState)(!1))||function(e){var r,t,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),2!==o.length);i=!0);}catch(e){l=!0,t=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw t}}return o}}(r)||function(e){if(e){if("string"==typeof e)return q(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q(e,2)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),B=U[0],$=U[1],L=A({onError:N}).mutate;return(0,s.useEffect)(function(){if(!o){var e;b((null==(e=K.current)?void 0:e.scrollHeight)||0)}},[o,b]),(0,n.jsx)(_?M:R,{children:(0,n.jsx)("div",{ref:K,id:"form-wrapper-".concat(l.uid,"-").concat(S),children:!o&&(0,n.jsxs)(g.l,{id:d,onSubmit:a?h.noop:function(e){var r,t=null==(r=C.current)?void 0:r.getResponse();if(F&&!t){N(),$(!0);return}$(!1),L(G(z({},e),{turnstile_token:t,elements:e.elements.map(function(e){return Array.isArray(e.value)?G(z({},e),{value_json:e.value}):e})}))},className:(0,P.x)("w-full",{"max-w-[600px]":!m&&!c,"pb-6 pt-0":m&&!_,"px-1":!_}),formClassName:"mb-0",style:{backgroundColor:c?void 0:f},children:[(0,n.jsx)("style",{children:u}),t,F&&(0,n.jsx)("div",{className:(0,P.x)("mt-6 flex w-full justify-center",{hidden:!T||p}),children:(0,n.jsx)(v.u,{turnstileRef:C,dispatch:D,shouldShowTurnstile:T,siteKey:I})}),B&&(0,n.jsx)(w.o.LabelSm,{color:"text-danger",children:(0,O.t)("settings.forms.errors.turnstile_pending")})]})})})},K=function(){var e=(0,y.pG)(),r=e.form,t=e.isModal,m=e.titleElement,g=e.shouldRenderEndingPage,h=e.isUsedOnPages,O=e.isLoadingProfileFieldValues,v=b(r),j=(0,s.useMemo)(function(){return(0,u.O)(v,t?m:void 0,!0)},[v,t,m]);if(O)return null;var w=(0,o.NM)(c.p);return(0,n.jsx)(a.U,{theme:l.l.default_theme.cssVariables,children:(0,n.jsx)(I,{children:(0,n.jsx)(f.t,{useFormRenderingContext:y.pG,children:g?(0,n.jsx)(d.p,{isModal:t,isUsedOnPages:h}):(0,n.jsx)(p.Y,{children:(0,n.jsx)(i.x,{block:j,components:w})})})})})}},33874(e,r,t){var n=t(781952),o=t(933578),i=t(339037),l=function(e){return"".concat("circle_modal_form_closed","_").concat(e)},a=function(e,r){n.A.set(l(e),"true",{expires:r,sameSite:"None",secure:!0})},s=function(){var e,r=(0,i.pG)(),t=r.form,s=r.popupFrequency;return{shouldSuppressPopupForm:(e=t.uid,void 0!==n.A.get(l(e))),suppressPopupForm:(0,o.useCallback)(function(){0!==s&&a(t.uid,s)},[t.uid,s])}};t.d(r,{T:()=>s})}
1,374995(e,r,t){var n=t(269114),o=t(258752),i=t(417980);function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}var a=function(e){var r,t,a=e.id,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.IT)(l((r=l({},n.xY.detail(null!=a?a:0)),t=t={enabled:void 0!==a,meta:{errorMessage:(0,i.t)("error")}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r),s))};t.d(r,{C:()=>a})},825284(e,r,t){var n=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 r=new URL(e),t="http:"===r.protocol||"https:"===r.protocol,n=/^(([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z\d]{2,}$/i.test(r.hostname)||/^(\d{1,3}\.){3}\d{1,3}$/.test(r.hostname),o=""===r.username&&""===r.password,i=!r.pathname.includes(" ");return t&&n&&o&&i}catch(e){return!1}};t.d(r,{G:()=>o,M:()=>n})},269114(e,r,t){var n=t(51730),o=t(915779),i=t(649942),l=t(75132),a=t(451430),s=t(934415),c=t(792515);function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}var d=(0,i.y)("form"),f={list:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.perPage,t=void 0===r?20:r,i=e.initialPage,l=void 0===i?1:i,c=e.order,f=e.query,p=void 0===f?"":f,y=e.status;return(0,s.L)({initialPageParam:l,queryKey:d.key("list",t,l,p,null!=y?y:"",JSON.stringify(null!=c?c:{})),queryFn:function(e){var r=e.pageParam,i=void 0===r?l:r,s=u({},p&&{query:p},y&&{status:y});return(0,n.i_)(o.iK.forms.index(u({page:i>0?i:1,per_page:t},!(0,a.isEmpty)(s)&&{filter:s},!(0,a.isEmpty)(c)&&{order:c})))}})},detail:function(e){return(0,c.j)({queryKey:d.key("detail",e),queryFn:function(){return(0,n.i_)(o.iK.forms.show(e))}})}},p={all:function(){return l.qQ.invalidateQueries({queryKey:d.root()})}};t.d(r,{u8:()=>p,xY:()=>f,yK:()=>20})}}]);
2//# sourceMappingURL=/packs/js/89304-dce202738d5eed69.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.