import{b as s}from"./chunk-OVAL5QH7.mjs";import{getInitialValues as S}from"@baseapp-frontend/utils";function l(r){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(r)}function g(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function d(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?g(Object(t),!0).forEach(function(o){P(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function P(r,e,t){return(e=_(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function _(r){var e=j(r,"string");return l(e)=="symbol"?e:e+""}function j(r,e){if(l(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(l(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var w="+1",I=function(e){var t,o,i,u,a,f,p,v,c,n=e.profile,y=e.removeSlashInUsername,O=y===void 0?!0:y,b=d(d({},n),{},{phoneNumber:(t=n==null||(o=n.owner)===null||o===void 0?void 0:o.phoneNumber)!==null&&t!==void 0?t:w,image:(i=n==null||(u=n.image)===null||u===void 0?void 0:u.url)!==null&&i!==void 0?i:"",bannerImage:(a=n==null||(f=n.bannerImage)===null||f===void 0?void 0:f.url)!==null&&a!==void 0?a:"",urlPath:(p=n==null||(v=n.urlPath)===null||v===void 0?void 0:v.path)!==null&&p!==void 0?p:"",biography:(c=n?.biography)!==null&&c!==void 0?c:""});if(O){var m;b.urlPath=(m=b.urlPath)===null||m===void 0?void 0:m.replace("/","")}var h=S({current:b,initial:s});return h},E=function(e){return typeof e=="string"?e:e instanceof Blob?URL.createObjectURL(e):""};export{w as a,I as b,E as c};
//# sourceMappingURL=chunk-KP43QE24.mjs.map