PageSourceSearch

https://syncable.biz/_next/static/chunks/0_7t5-jc5xoqq.js

js syncable.biz collected 2026-10-02 04:26:47 UTC 37,756 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="74f7d432-d993-83e2-bec6-7912bd873556")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,389184,e=>{"use strict";var t=e.i(818113);let s={unknown:(0,t.n)("Unknown error has been occurred"),network:(0,t.n)("Network error has been occurred"),notFound:(0,t.n)("This URL doesn't exist")},i={unknown:(0,t.n)("エラーが発生しました"),network:(0,t.n)("通信エラーが発生しました"),notFound:(0,t.n)("URLが存在しません")};e.s(["config",0,{en:s,ja:i}],389184)},129986,e=>{"use strict";let t={1:"任意団体",2:"認定NPO法人",3:"特例認定NPO法人",4:"NPO法人",5:"公益社団法人",6:"一般社団法人",7:"公益財団法人",8:"一般財団法人",9:"国立研究開発法人",10:"社会福祉法人",11:"学校法人",12:"独立行政法人",13:"地方独立行政法人",14:"自治体",15:"医療法人社団",16:"医療法人財団",17:"労働組合",18:"準学校法人",19:"国立大学法人",20:"労働者協同組合",21:"特定公益増進法人",99:"未設定"};e.s(["associateType",0,e=>t[e]])},730837,e=>{"use strict";let t={1:"Hokkaido",2:"Aomori",3:"Iwate",4:"Miyagi",5:"Akita",6:"Yamagata",7:"Fukushima",8:"Ibaraki",9:"Tochigi",10:"Gunma",11:"Saitama",12:"Chiba",13:"Tokyo",14:"Kanagawa",15:"Niigata",16:"Toyama",17:"Ishikawa",18:"Fukui",19:"Yamanashi",20:"Nagano",21:"Gifu",22:"Shizuoka",23:"Aichi",24:"Mie",25:"Shiga",26:"Kyoto",27:"Osaka",28:"Hyogo",29:"Nara",30:"Wakayama",31:"Tottori",32:"Shimane",33:"Okayama",34:"Hiroshima",35:"Yamaguchi",36:"Tokushima",37:"Kagawa",38:"Ehime",39:"Kochi",40:"Fukuoka",41:"Saga",42:"Nagasaki",43:"Kumamoto",44:"Oita",45:"Miyazaki",46:"Kagoshima",47:"Okinawa",80:"All Japan",90:"Outside of Japan",99:"Unset"},s={1:"Voluntary Association",2:"Certified NPO",3:"Specially Certified NPO",4:"NPO",5:"Public Interest Association",6:"General Association",7:"Public Interest Foundation",8:"General Foundation",9:"National Research And Development Agency",10:"Social Welfare Association",11:"Educational Association",12:"Independent Administrative Association",13:"Local Independent Administrative Association",14:"Municipality",15:"Medical Association",16:"Medical Incorporated Foundation",17:"Labor Union",18:"Quasi-Educational Association",19:"National University Corporation",20:"Workers Cooperative",21:"Specified Public Interest Incorporated Foundation",99:"Unknown"},i={1:"International",2:"Environment",3:"Animal",4:"Child",5:"Child Education",6:"Woman Rights",7:"Human Rights",8:"Disabilities",9:"Employment",10:"Disaster",11:"Local Community",12:"Local Industry",13:"Social Education",14:"Health",15:"Culture",16:"Economic Development",17:"Non Profits Development",99:"Other"},a={1:"北海道",2:"青森県",3:"岩手県",4:"宮城県",5:"秋田県",6:"山形県",7:"福島県",8:"茨城県",9:"栃木県",10:"群馬県",11:"埼玉県",12:"千葉県",13:"東京都",14:"神奈川県",15:"新潟県",16:"富山県",17:"石川県",18:"福井県",19:"山梨県",20:"長野県",21:"岐阜県",22:"静岡県",23:"愛知県",24:"三重県",25:"滋賀県",26:"京都府",27:"大阪府",28:"兵庫県",29:"奈良県",30:"和歌山県",31:"鳥取県",32:"島根県",33:"岡山県",34:"広島県",35:"山口県",36:"徳島県",37:"香川県",38:"愛媛県",39:"高知県",40:"福岡県",41:"佐賀県",42:"長崎県",43:"熊本県",44:"大分県",45:"宮崎県",46:"鹿児島県",47:"沖縄県",80:"日本全国",90:"海外",99:"未設定"};var r=e.i(129986);let n={1:"国際協力をしたい",2:"自然・環境を守りたい",3:"動物を守りたい",4:"出産・子育てを支えたい",5:"子どもに教育を届けたい",6:"女性の支援をしたい",7:"人権を守りたい",8:"障がい・介護を支えたい",9:"就職・雇用支援をしたい",10:"防災・被災地応援をしたい",11:"観光・まちづくりを盛り上げたい",12:"地域産業を応援したい",13:"社会教育を推進したい",14:"医療を支えたい",15:"芸術・スポーツを応援したい",16:"経済を支えたい",17:"市民活動を支えたい",99:"その他"},o={associateType:r.associateType,socialChallenge:e=>n[e],associateActivityArea:e=>a[e]},l=(0,e.i(165145).createI18nHook)({en:{associateType:e=>s[e],socialChallenge:e=>i[e],associateActivityArea:e=>t[e]},ja:o});e.s(["useI18nForAssociateEnum",0,l],730837)},550582,e=>{"use strict";let{socialChallengeIdMap:t,socialChallengeIdMapKebab:s,socialChallengeIdToSlug:i,socialChallengeIdToSlugKebab:a,socialChallengeSlugMap:r,socialChallengeSlugMapKebab:n,socialChallengeSlugToId:o,socialChallengeSlugToIdKebab:l,SocialChallengeIds:u,SocialChallengeSlugs:c,SocialChallengeSlugsKebab:p,isSocialChallengeId:d,ensureSocialChallengeId:m}=(0,e.i(550844).createEnum)("socialChallenge")()({INTERNATIONAL:1,ENVIRONMENT:2,ANIMAL:3,CHILD:4,CHILD_EDUCATION:5,WOMAN:6,HUMAN_RIGHTS:7,DISABILITIES:8,EMPLOYMENT:9,DISASTER:10,LOCAL_COMMUNITY:11,LOCAL_INDUSTRY:12,SOCIAL_EDUCATION:13,HEALTH:14,CULTURE:15,ECONOMIC_DEVELOPMENT:16,NON_PROFITS_DEVELOPMENT:17,OTHERS:99});
2e.s(["SocialChallengeIds",0,u,"socialChallengeIdToSlugKebab",0,a,"socialChallengeSlugToIdKebab",0,l])},204184,e=>{"use strict";e.s(["createAsyncQueue",0,function(e){var t=[];function s(s){var i=(t.length?t.pop():Promise.resolve(e)).then(s);return t.push(i),i}return{push:s,sequence:function(e){return function(...t){return s(function(){return e(...t)})}}}}])},76511,e=>{"use strict";var t=e.i(191788);let s={element:new Map},i=t.default.createContext(()=>{});e.s(["PortalDispatchContext",0,i,"initialState",0,s,"reducer",0,(e,t)=>{switch(t.type){case"set-element":return{...e,element:new Map(e.element).set(t.payload.key,t.payload.element)};case"remove-element":{let s=new Map(e.element);return s.delete(t.payload),{...e,element:s}}}},"usePortalDispatchContext",0,()=>(0,t.useContext)(i)])},484439,e=>{"use strict";var t=e.i(391398),s=e.i(191788),i=e.i(958678),a=e.i(204184),r=e.i(76511);e.s(["usePreloader",0,(e,{crossOrigin:n,rel:o="preload"}={})=>{let l,{mount:u}=(l=(0,r.usePortalDispatchContext)(),{mount:(0,s.useMemo)(()=>{let e="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(Number(e)^16*Math.random()>>Number(e)/4).toString(16)),t=(0,a.createAsyncQueue)(),s={};return i=>{let a;t.push((a=()=>{if(i){let t=`${e}.${"string"==typeof i.type?i.key?`${i.type}.${i.key}`:i.type:i.key||"unknown"}`;t!==s.key&&(l({type:"set-element",payload:{key:t,element:i}}),void 0!==s.key&&s.key!==t&&l({type:"remove-element",payload:s.key}),s.key=t,s.element=i)}else void 0!==s.key&&(l({type:"remove-element",payload:s.key}),s.key=void 0,s.element=void 0)},(...e)=>new Promise(t=>setTimeout(()=>{t(a(...e))},10))))}},[l])}
2),[c,p]=(0,s.useState)(!1),d=`${o}.${e}`,m=(0,s.useMemo)(()=>e?(0,t.jsx)(i.default,{children:(({href:e,key:s,crossOrigin:i,rel:a})=>(0,t.jsx)("link",{href:e,crossOrigin:i,rel:a,as:"fetch",type:"application/json"},s))({href:e,key:d,crossOrigin:n,rel:o})},d):null,[e,n,d,o]);u((0,s.useMemo)(()=>c?m:null,[m,c]));let T=(0,s.useCallback)(()=>p(!0),[p]),h=(0,s.useCallback)(()=>p(!1),[p]);return{preloader:m,events:(0,s.useMemo)(()=>({hover:{onMouseEnter:T,onMouseLeave:h}}),[T,h]),preload:T,cleanUp:h}}],484439)},296003,54016,e=>{"use strict";var t=e.i(191788),s=e.i(716064),s=s;let i=(e,i)=>{let a=(0,t.useCallback)(()=>{i&&(0,s.j)(i,e({url:i}).then(e=>{if(e.ok)return e.content}))},[e,i]),r=(0,t.useMemo)(()=>({hover:{onMouseEnter:a}}),[a]);return{prefetch:a,events:r}};e.s(["usePrefetcher",0,i],54016),e.s(["useLinkPrefetcher",0,function(e,s){let{prefetch:a}=i(e,s?.next??void 0),{prefetch:r}=i(e,s?.previous??void 0);(0,t.useEffect)(()=>a(),[a]),(0,t.useEffect)(()=>r(),[r])}],296003)},640320,e=>{"use strict";var t=e.i(691619),s=e.i(474067),i=e.i(373785);e.s(["createStoreStateOptionFromAssociateListItem",0,e=>{let{id:a,name:r,associateUid:n}=e,o={id:a,name:r,associateUid:n},l=(0,s.extractAssociateInfo)(e),u=(0,s.extractAssociateMeta)(e),{profile:c,logo:p,mainVisual:d,socialChallenges:m,donationSetting:T}=e,h=(0,s.extractAssociateDonationSettingCore)(T),A=(0,s.extractAssociateDonationSettingDetail)(T),g=(0,t.createStoreStateOption)({associate:[{entity:{core:o,info:l,meta:u,profile:c,logo:(0,i.nFile)(p),mainVisual:(0,i.nFile)(d),donationSettingCore:h,donationSettingDetail:A}},...m.map(e=>({entity:{core:o,socialChallenge:e}}))]});return{entity:{core:o},option:g}}])},799355,e=>{"use strict";var t=e.i(191788),s=e.i(203828),i=e.i(989799);e.s(["createQueryHook",0,e=>{let a={validate:(0,i.queryParser)(e),values:t=>e.map(e=>e.key).sort((e,t)=>e<t?-1:1).map(e=>(t||{})[e])};return({defaultQuery:e}={})=>{let{query:i,isReady:r,...n}=(0,s.useRouter)(),o=a.validate(i),l=(0,t.useMemo)(()=>e,[...a.values(e)]),u=(0,t.useMemo)(()=>{if(r)return{...l,...o}},[l,r,...a.values(o)]),c=(0,t.useCallback)(e=>{u&&n.push({query:{...l,...e(u)}})},[l,u,n]);return{isReady:r,query:u,setQuery:c}}}],799355)},330666,233611,e=>{"use strict";var t=e.i(945249),s=e.i(550844);let i={VOLUNTARY_ASSOCIATION:1,CERTIFIED_NON_PROFIT_INCORPORATED_ORGANIZATION:2,SPECIALLY_CERTIFIED_NON_PROFIT_INCORPORATED_ORGANIZATION:3,NON_PROFIT_INCORPORATED_ORGANIZATION:4,PUBLIC_INTEREST_INCORPORATED_ASSOCIATION:5,GENERAL_INCORPORATED_ASSOCIATION:6,PUBLIC_INTEREST_INCORPORATED_FOUNDATION:7,GENERAL_INCORPORATED_FOUNDATION:8,NATIONAL_RESEARCH_AND_DEVELOPMENT_INCORPORATED_AGENCY:9,SOCIAL_W
2ELFARE_INCORPORATED_ASSOCIATION:10,EDUCATIONAL_INCORPORATED_ASSOCIATION:11,INDEPENDENT_ADMINISTRATIVE_INCORPORATED_ASSOCIATION:12,LOCAL_INDEPENDENT_ADMINISTRATIVE_INCORPORATED_ASSOCIATION:13,MUNICIPALITY:14,MEDICAL_INCORPORATED_ASSOCIATION:15,MEDICAL_INCORPORATED_FOUNDATION:16,LABOR_UNION:17,QUASI_EDUCATIONAL_INCORPORATED_ASSOCIATION:18,NATIONAL_UNIVERSITY_CORPORATION:19,WORKERS_COOPERATIVE:20,SPECIALLY_PUBLIC_INTEREST_INCORPORATED_ORGANIZATION:21,NONE:99},{associateTypeIdMap:a,associateTypeIdToSlug:r,associateTypeSlugMap:n,associateTypeSlugToId:o,AssociateTypeIds:l,AssociateTypeSlugs:u,isAssociateTypeId:c,ensureAssociateTypeId:p}=(0,s.createEnum)("associateType")()(i);e.s(["ASSOCIATE_TYPE",0,i,"associateTypeSlugToId",0,o],233611),e.s(["associateIsDeductible",0,(e,s)=>!t.env.NON_DEDUCTIBLE_ASSOCIATE_ID.includes(e)&&[i.CERTIFIED_NON_PROFIT_INCORPORATED_ORGANIZATION,i.SPECIALLY_CERTIFIED_NON_PROFIT_INCORPORATED_ORGANIZATION,i.PUBLIC_INTEREST_INCORPORATED_ASSOCIATION,i.PUBLIC_INTEREST_INCORPORATED_FOUNDATION,i.NATIONAL_RESEARCH_AND_DEVELOPMENT_INCORPORATED_AGENCY,i.SOCIAL_WELFARE_INCORPORATED_ASSOCIATION,i.EDUCATIONAL_INCORPORATED_ASSOCIATION,i.INDEPENDENT_ADMINISTRATIVE_INCORPORATED_ASSOCIATION,i.LOCAL_INDEPENDENT_ADMINISTRATIVE_INCORPORATED_ASSOCIATION,i.MUNICIPALITY,i.NATIONAL_UNIVERSITY_CORPORATION,i.SPECIALLY_PUBLIC_INTEREST_INCORPORATED_ORGANIZATION].includes(s)],330666)},552370,e=>{"use strict";var t=e.i(391398),s=e.i(191788),i=e.i(681956),a=e.i(118666);let r=(0,s.forwardRef)(({color:e="brand.500",size:s="xs",textColor:r="white",textProps:n,leftIcon:o,children:l,reversed:u,...c},p)=>{let d=u?{bgColor:r,borderColor:e,textColor:e}:{bgColor:e,borderColor:e,textColor:r};return(0,t.jsxs)(i.HStack,{ref:p,px:1,py:.5,borderRadius:"base",borderWidth:1,borderStyle:"solid",gap:1,flexShrink:0,align:"center",transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-in-out",...d,...c,children:[o?(0,t.jsx)(a.Text,{size:s,color:d.textColor,children:o}):null,(0,t.jsx)(a.Text,{size:s,color:d.textColor,fontWeight:"semibold",...n,children:l})]})});e.s(["Tag",0,r])},458840,e=>{"use strict";var t=e.i(391398),s=e.i(552370),i=e.i(593186);e.s(["LinkTag",0,({noRel:e,isExternal:a,...r})=>(0,t.jsx)(i.NextLink,{render:s.Tag,as:"a",_hover:{textDecoration:"underline",textDecorationColor:"white",shadow:"md"},_focus:{shadow:"outline"},rel:e?"noopener noreferrer nofollow":void 0,target:a?"_blank":void 0,...r})])},181945,e=>{"use strict";let{associateActivityAreaIdMap:t,associateActivityAreaIdToSlug:s,associateActivityAreaSlugMap:i,associateActivityAreaSlugToId:a,AssociateActivityAreaIds:r,AssociateActivityAreaSlugs:n,isAssociateActivityAreaId:o,ensureAssociateActivityAreaId:l}=(0,e.i(550844).createEnum)("associateActivityArea")()({HOKKAIDO:1,AOMORI:2,IWATE:3,MIYAGI:4,AKITA:5,YAMAGATA:6,FUKUSHIMA:7,IBARAKI:8,TOCHIGKI:9,GUNMA:10,SAITAMA:11,CHIBA:12,TOKYO:13,KANAGAWA:14,NIIGATA:15,TOYAMA:16,ISHIKAWA:17,FUKUI:18,YAMANASHI:19,NAGANO:20,GIFU:21,SHIZUOKA:22,AICHI:23,MIE:24,SHIGA:25,KYOTO:26,OSAKA:27,HYOGO:28,NARA:29,WAKAYAMA:30,TOTTORI:31,SHIMANE:32,OKAYAMA:33,HIROSHIMA:34,YAMAGUCHI:35,TOKUSHIMA:36,KAGAWA:37,EHIME:38,KOUCHI:39,FUKUOKA:40,SAGA:41,NAGASAKI:42,KUMAMOTO:43,OITA:44,MIYAZAKI:45,KAGOSHIMA:46,OKINAWA:47,ALL_NATION:80,OVERSEAS:90,UNDEFINED:99});e.s(["AssociateActivityAreaIds",0,r,"ensureAssociateActivityAreaId",0,l])},475107,e=>{"use strict";var t=e.i(550582),s=e.i(181945),i=e.i(799355),a=e.i(989799);let r=(0,i.createQueryHook)([a.T.literal(t.SocialChallengeIds)("social_challenges")(),a.T.literal(s.AssociateActivityAreaIds)("activity_areas")(),a.T.bool("is_deductible")(),a.T.bool("is_anonymous")(),a.T.int("page")(),a.T.int("rowsPerPage")(),a.T.literal(["-opened_at"])("sortBy")(),a.T.str("name")()]);e.s(["associateListDefaultQuery",0,{page:1,rowsPerPage:20,sortBy:"-opened_at"},"useAssociateListQuery",0,r])},577805,553754,e=>{"use strict";var t=e.i(191788),s=e.i(950323),i=e.i(533e3),a=e.i(640320),r=e.i(628665),n=e.i(296003),o=e.i(691619);let l=(0,e.i(563562).get)(i.endpoint.associates);e.s(["fetchAssociates",0,l],553754);var u=e.i(923660),c=e.i(30647),p=e.i(491977),d=e.i(134717),m=e.i(389184),T=e.i(374072),h=e.i(537582),A=e.i(44894),g=e.i(93196);let f=(0,T.createSingleValueHook)()[3],{AppError:I,isAppError:O,errorEntry:C}=(0,h.createError)(),N=(0,A.createErrorFallbackHook)({type:"unknown"},O),S=(0,g.createErrorToastHook)(m.config),y=i.endpoint.associates,D=(0,u.either)(l)(e=>e,e=>
2{if(404===e.status)throw new I("notFound");throw new I});e.s(["associateListEndpoint",0,y,"useAssociateListData",0,(e,{fixedQuery:i}={})=>{let{createAndMergeStoreState:u}=(0,o.useStoreDispatch)(),m=f(),{fallback:T}=N(m.setValue);S(m.state,m.clearValue);let h=(0,t.useCallback)(e=>T(D,C("network"))({url:e}).then(e=>e.content),[T]),A=e&&y()+"?"+(0,c.asQueryString)({...e,...i}),g=(0,s.default)(A||null,h);(0,n.useLinkPrefetcher)(l,g.data?.links),(0,r.useIsomorphicLayoutEffect)(()=>{g.data&&u(g.data.results.map(p.snakeToCamelKeys).map(a.createStoreStateOptionFromAssociateListItem).map((0,d.of)("option")).reduce(o.mergeStoreStateOptions,o.emptyStoreStateOption))},[u,g.data]);let I=(0,t.useMemo)(()=>g.data&&{...g.data,results:g.data.results.map(e=>e.id)},[g.data]);return{...g,url:A,data:I}}],577805)},79538,e=>{"use strict";var t=e.i(391398),s=e.i(587405),i=e.i(552370),a=e.i(458840),r=e.i(354590),n=e.i(475107),o=e.i(577805),l=e.i(54016),u=e.i(553754),c=e.i(30647);e.s(["DeductibleTag",0,({children:e,link:p=!0,...d})=>{let m=(0,c.asUrl)((0,o.associateListEndpoint)(),{...n.associateListDefaultQuery,is_deductible:!0}),T=(0,l.usePrefetcher)(u.fetchAssociates,m);return p?(0,t.jsx)(a.LinkTag,{href:{...r.path.associates(),query:{is_deductible:!0}},leftIcon:(0,t.jsx)(s.FiPieChart,{}),...T.events.hover,...d,children:e}):(0,t.jsx)(i.Tag,{leftIcon:(0,t.jsx)(s.FiPieChart,{}),...d,children:e})}])},890253,e=>{"use strict";var t=e.i(945249),s=e.i(484439);e.s(["useNextDataPreloader",0,(e,i,a)=>{var r;let n,o,l,u,c=(r=i.filter(e=>void 0!==e.value),n=`/_next/data/${t.env.BUILD_ID}/${e}`,o=r.map(e=>`${e.value}`).join("/")+".json",l=r.filter(e=>"param"===e.type).map(e=>e.value),u="string"==typeof a?l.map(e=>`${a}=${e}`).join("&"):l.map((e,t)=>`${a[t]}=${e}`).join("&"),`${n}/${o}?${u}`);return(0,s.usePreloader)(c,{crossOrigin:"anonymous",rel:"prefetch"})}],890253)},665322,946625,e=>{"use strict";var t=e.i(391398),s=e.i(191788),i=e.i(319429),a=e.i(774171),r=e.i(81979),n=e.i(827454);function o(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}e.s(["omit",0,o],946625);let{useRecipeResult:l,PropsProvider:u}=(0,i.createRecipeContext)({key:"separator"}),c=(0,s.forwardRef)(function(e,s){let{styles:i,className:u,props:c}=l(e),p=e.orientation||"horizontal";return(0,t.jsx)(a.chakra.span,{ref:s,role:(0,n.isString)(p)?"separator":"presentation","aria-orientation":(0,n.isString)(p)?p:void 0,...o(c,["orientation"]),className:(0,r.cx)(u,e.className),css:[i,e.css]})});c.displayName="Separator",e.s(["Separator",0,c],665322)},411542,e=>{"use strict";var t=e.i(391398),s=e.i(665322);e.s(["Divider",0,e=>(0,t.jsx)(s.Separator,{...e})])},963259,e=>{"use strict";var t=e.i(117579);let s=(0,e.i(165145).createI18nHook)({en:{yen:e=>`\xa5${(0,t.formatNumber)(e)}`},ja:{yen:e=>`${(0,t.formatNumber)(e)}円`}});e.s(["useI18nForCurrencyFormat",0,s],963259)},202392,e=>{"use strict";var t=e.i(191788);let s={time:0,popupBanner:{isShowed:!1,closed:new Set}},i=t.default.createContext(s),a=t.default.createContext(()=>{});e.s(["AppDispatchContext",0,a,"AppStateContext",0,i,"initialState",0,s,"reducer",0,(e,t)=>{switch(t.type){case"set-time":return{...e,time:t.payload};case"set-popupBanner-isShowed":return{...e,popupBanner:{...e.popupBanner,isShowed:t.payload}};case"set-popupBanner-closed":return{...e,popupBanner:{...e.popupBanner,closed:new Set(t.payload)}};case"add-popupBanner-closed":return{...e,popupBanner:{...e.popupBanner,closed:e.popupBanner.closed.add(t.payload)}}}},"useAppDispatchContext",0,()=>(0,t.useContext)(a),"useAppStateContext",0,()=>(0,t.useContext)(i)])},7374,e=>{"use strict";var t=e.i(191788),s=e.i(202392);e.s(["useAppDate",0,()=>new Date((0,s.useAppStateContext)().time),"useAppPopupBanner",0,()=>{let{popupBanner:{isShowed:e,closed:i}}=(0,s.useAppStateContext)();return{shouldShowPopupBanner:(0,t.useCallback)(t=>!e&&!i.has(t),[e,i])}}])},346276,e=>{"use strict";var t=e.i(550844);let s={BIRTHDAY:1,FREE:2,MONTHLY:3,ANNUAL:4,MONTHLY_WITHOUT_COMMISSION:5,REWARD_BASED_CROWDFUNDING:6},{campaignTypeIdMap:i,campaignTypeIdToSlug:a,campaignTypeIdToSlugKebab:r,campaignTypeSlugMap:n,campaignTypeSlugToId:o,CampaignTypeIds:l,CampaignTypeSlugs:u,isCampaignTypeId:c,ensureCampaignTypeId:p}=(0,t.createEnum)("campaignType")()(s);e.s(["CAMPAIGN_TYPE",0,s,"campaignTypeIdToSlug",0,a,"campaignTypeIdToSlugKebab",0,r,"campaignTypeSlugToId",0,o])},670768,e=>{"use strict";var t=e.i(191788),s=e.i(791729),i=e.i(105114),a=e.i(726873),r=e.i(182947),n=e.i(810790),o=e.i(134717),l=e.i(895696),u=e.i(545311);let{useCampaignRelationState:c}=l.campaignStore;e.s(["useCampaignWithReference",0,()=>{let{getUserIdForCampaignCore:e,getAssociateIdForCampaignCore:l,getPortfolioIdForCampaignCore:p,getManyDonationMessageIdForCampaignCore:d,getManyDonationIdForCampaignCore:m,getManyAssociateCampaignTemplateIdForCampaignCore:T}=c(),{getCampaignCoreWithRelationById:h}=(0,u.useCampaignWithRelation)(),{getUserCoreWithRelationById:A}=(0,n.useUserWithRelation)(),{getAssociateCoreWithRelationById:g}=(0,i.useAssociateWithRelation)(),{entity:{getAssociateCampaignTemplateById:f}}=(0,s.useAssociateState)(),{getPortfolioCoreWithRelationById:I}=(0,r.usePortfolioWithRelation)(),{getDonationCoreWithRelationById:O,getDonationMessageWithRelationById:C}=(0,a.useDonationWithRelation)(),N=(0,t.useCallback)(t=>(0,o.apply)(e(t))(A),[e,A]),S=(0,t.useCallback)(e=>(0,o.apply)(l(e))(g),[l,g]),y=(0,t.useCallback)(e=>(0,o.apply)(T(e))((0,o.map)(f)),[T,f]),D=(0,t.useCallback)(e=>(0,o.apply)(p(e))(I),[p,I]),E=(0,t.useCallback)(e=>(0,o.apply)(d(e))((0,o.map)(C)),[d,C]),M=(0,t.useCallback)(e=>(0,o.apply)(m(e))((0,o.map)(O)),[m,O]),R=(0,t.useCallback)(e=>{let{id:t}=e;return{...e,user:N(t),associate:S(t),portfolio:D(t),donationMessages:E(t),donations:M(t),associateCampaignTemplate:y(t)}}
2,[N,S,D,E,M,y]);return{getCampaignCoreWithReferenceById:(0,t.useCallback)(e=>(0,o.apply)(h(e))(R),[h,R])}}])},259220,e=>{"use strict";let t={},s=e=>Object.keys(t).indexOf(e)>-1,i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],r=(e,t=!1)=>{let s=e<0?-1:1,i=e*s,a=Math.floor(i/60);return`${-1===s?"-":"+"}${String(a).padStart(2,"0")}${t?":":""}${String(i-60*a).padStart(2,"0")}`},n=e=>t=>e.replace(/\{yyyy\}/g,String(t.getFullYear())).replace(/\{MM\}/g,String(t.getMonth()+1).padStart(2,"0")).replace(/\{dd\}/g,String(t.getDate()).padStart(2,"0")).replace(/\{hh\}/g,String(t.getHours()).padStart(2,"0")).replace(/\{mm\}/g,String(t.getMinutes()).padStart(2,"0")).replace(/\{ss\}/g,String(t.getSeconds()).padStart(2,"0")).replace(/\{mss\}/g,String(t.getMilliseconds()).padStart(3,"0")).replace(/\{M\}/g,String(t.getMonth()+1)).replace(/\{MO\}/g,a[t.getMonth()]).replace(/\{d\}/g,String(t.getDate())).replace(/\{dow\}/g,i[t.getDay()]).replace(/\{h\}/g,String(t.getHours())).replace(/\{m\}/g,String(t.getMinutes())).replace(/\{s\}/g,String(t.getSeconds())).replace(/\{ms\}/g,String(t.getMilliseconds())).replace(/\{tz\}/g,String(r(t.getTimezoneOffset(),!0))).replace(/\{tzc\}/g,String(r(t.getTimezoneOffset(),!1))),o=n("{dow} {MO} {dd} {yyyy}"),l=n("{hh}:{mm}:{ss}"),u=e=>n("{yyyy}-{MM}-{dd}T{hh}:{mm}:{ss}.{mss}{tz}")(e).replace(/\+00:00$/,"Z"),c=(e,t)=>{let s=new Date(e);return s.setTime(s.getTime()+t),s};class p extends Date{constructor(e,i,a,r,n,o,l){e instanceof p||e instanceof Date?super(e):"string"==typeof e?s(e)?super():super(e):"number"==typeof e?"number"==typeof i?(super(),super.setUTCFullYear(e),super.setUTCMonth(i),"number"==typeof a&&super.setUTCDate(a),"number"==typeof r&&super.setUTCHours(r),"number"==typeof n&&super.setUTCMinutes(n),"number"==typeof o&&super.setUTCSeconds(o),"number"==typeof l&&super.setUTCMilliseconds(l)):super(e):super(),e instanceof p&&void 0===i?this.offsetDate=new Date(e.offsetDate):this.offsetDate=new Date(this),e instanceof p?void 0===i?this.timezoneOffset=e.timezoneOffset:this.timezoneOffset="number"==typeof i?i:s(i)?t[i]:0:e instanceof Date?this.timezoneOffset="number"==typeof i?i:"string"==typeof i&&s(i)?t[i]:0:"string"==typeof e?this.timezoneOffset=s(e)?t[e]:"number"==typeof i?i:"string"==typeof i&&s(i)?t[i]:0:"number"==typeof e&&"string"==typeof i&&s(i)?this.timezoneOffset=t[i]:this.timezoneOffset=0,e instanceof p&&void 0===i||this.setTimezoneOffset(this.timezoneOffset)}getTimezoneOffset(){return this.timezoneOffset}getTimezoneOffsetMs(){return 60*this.timezoneOffset*1e3}setTimezoneOffset(e){return this.timezoneOffset="string"==typeof e&&s(e)?t[e]:e,this.offsetDate=c(this,this.getTimezoneOffsetMs()),this.getTime()}getFullYear(){return this.offsetDate.getUTCFullYear()}getMonth(){return this.offsetDate.getUTCMonth()}getHours(){return this.offsetDate.getUTCHours()}getMinutes(){return this.offsetDate.getUTCMinutes()}getDate(){return this.offsetDate.getUTCDate()}getDay(){return this.offsetDate.getUTCDay()}getSeconds(){return this.offsetDate.getUTCSeconds()}getMilliseconds(){return this.offsetDate.getUTCMilliseconds()}getTime(){var e,t;let s;return(e=this.offsetDate,t=this.getTimezoneOffsetMs(),(s=new Date(e)).setTime(s.getTime()-t),s).getTime()}setFullYear(e,t,s){this.offsetDate.setUTCFullYear(e,"number"==typeof t?t:this.offsetDate.getUTCMonth(),"number"==typeof s?s:this.offsetDate.getUTCDate());let i=this.getTime();return super.setTime(i),i}setMonth(e,t){return this.setFullYear(this.offsetDate.getUTCFullYear(),e,t)}setDate(e){return this.setMonth(this.offsetDate.getUTCMonth(),e)}setHours(e,t,s,i){this.offsetDate.setUTCHours(e,"number"==typeof t?t:this.offsetDate.getUTCMinutes(),"number"==typeof s?s:this.offsetDate.getUTCSeconds(),"number"==typeof i?i:this.offsetDate.getUTCMilliseconds());let a=this.getTime();return super.setTime(a),a}setMinutes(e,t,s){return this.setHours(this.offsetDate.getUTCHours(),e,t,s)}setSeconds(e,t){return this.setMinutes(this.offsetDate.getUTCMinutes(),e,t)}setMilliseconds(e){return this.setSeconds(this.offsetDate.getUTCSeconds(),e)}setTime(e){return super.setTime(e),this.offsetDate=c(this,this.getTimezoneOffsetMs()),this.getTime()}setUTCFullYear(e,t,s){return super.setUTCFullYear(e,"number"==typeof t?t:super.getUTCMonth(),"number"==typeof s?s:super.getUTCDate()),this.offsetDate=c(this,this.getTimezoneOffsetMs()),this.getTime()}setUTCMonth(e,t){return this.setUTCFullYear(super.getUTCFullYear(),e,t)}setUTCDate(e){return this.setUTCMonth(super.getUTCMonth(),e)}setUTCHours(e,t,s,i){return super.setUTCHours(e,"number"==typeof t?t:super.getUTCMinutes(),"number"==typeof s?s:super.getUTCSeconds(),"number"==typeof i?i:super.getUTCMilliseconds()),this.offsetDate=c(this,this.getTimezoneOffsetMs()),this.getTime()}setUTCMinutes(e,t,s){return this.setUTCHours(super.getUTCHours(),e,t,s)}setUTCSeconds(e,t){return this.setUTCMinutes(super.getUTCMinutes(),e,t)}setUTCMilliseconds(e){return this.setUTCSeconds(super.getUTCSeconds(),e)}
2toTimeString(){return l(this)}toDateString(){return o(this)}toString(){return n(`${o(this)} ${l(this)} GMT{tzc}`)(this)}toISOString(){return u(this)}toJSON(){return u(this)}}let d=e=>"string"==typeof e?new p(e,540):new p("number"==typeof e?new Date(e):e??new Date,540);e.s(["asCalendarDate",0,e=>{let[t=NaN,s=NaN,i=NaN]=e.split("-").map(Number);return new Date(t,s-1,i)},"asJstEndOfDay",0,e=>d(`${e}T23:59:59.999+0900`),"asJstStartOfDay",0,e=>d(`${e}T00:00:00.000+0900`)],259220)},47339,e=>{"use strict";var t=e.i(346276);let s=e=>e===t.CAMPAIGN_TYPE.MONTHLY||e===t.CAMPAIGN_TYPE.MONTHLY_WITHOUT_COMMISSION,i=e=>s(e)||e===t.CAMPAIGN_TYPE.ANNUAL,a=e=>e===t.CAMPAIGN_TYPE.BIRTHDAY,r=e=>e===t.CAMPAIGN_TYPE.FREE,n=e=>e===t.CAMPAIGN_TYPE.REWARD_BASED_CROWDFUNDING;e.s(["campaignType",0,({meta:{type:e}})=>({isMonthly:s(e),isAnnual:e===t.CAMPAIGN_TYPE.ANNUAL,isRecurring:i(e),isBirthday:a(e),isFree:r(e),isRewardBased:n(e)}),"isBirthday",0,a,"isFree",0,r,"isMonthly",0,s,"isRecurring",0,i,"isRewardBased",0,n])},521632,814282,460064,e=>{"use strict";let t=e=>(t,s)=>(s.getFullYear()-t.getFullYear()||s.getMonth()-t.getMonth()||s.getDate()-t.getDate()||s.getHours()-t.getHours()||s.getMinutes()-t.getMinutes()||s.getSeconds()-t.getSeconds()||s.getMilliseconds()-t.getMilliseconds())>=0?"asc"===e?-1:1:"asc"===e?1:-1;e.s(["compareDates",0,e=>(t,s)=>s.getTime()-t.getTime()>=0?"asc"===e?-1:1:"asc"===e?1:-1,"compareLocalDates",0,t],814282);e.s(["MS_IN_DAY",0,864e5,"MS_IN_HOUR",0,36e5,"MS_IN_MINUTE",0,6e4,"MS_IN_SECOND",0,1e3],460064);var s=e.i(227373);let i=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},a=(e,t)=>{let a=i(e),r=i(t),n=a.getTime()-(0,s.getTimezoneOffsetInMs)(a);return Math.round((r.getTime()-(0,s.getTimezoneOffsetInMs)(r)-n)/864e5)};e.s(["diffForCalenderDays",0,a,"diffForDays",0,(e,s)=>{let i=new Date(e),r=new Date(s),n=t("desc")(i,r),o=Math.abs(a(i,r));r.setDate(r.getDate()-n*o);let l=Number(t("desc")(i,r)===-n),u=n*(o-l);return Object.is(u,-0)?0:u},"endOfDay",0,e=>{let t=new Date(e);return t.setHours(23,59,59,999),t}],521632)},883594,967023,336585,251104,e=>{"use strict";var t=e.i(191788),s=e.i(7374),i=e.i(134717),a=e.i(259220),r=e.i(521632),n=e.i(460064);let o=(e,t)=>{let s=(t.getTime()-e.getTime())/n.MS_IN_HOUR,i=s<0?Math.ceil(s):Math.floor(s);return Object.is(i,-0)?0:i};e.s(["diffForHours",0,o],967023);let l=(e,t)=>{let s=(t.getTime()-e.getTime())/n.MS_IN_MINUTE,i=s<0?Math.ceil(s):Math.floor(s);return Object.is(i,-0)?0:i};e.s(["diffForMinutes",0,l],336585);let u=e=>(0,a.asJstEndOfDay)(e),c=({meta:e})=>t=>{let s,i=e.startedAt?(s=e.startedAt,(0,a.asJstStartOfDay)(s)):void 0,n=e.finishedAt?u(e.finishedAt):void 0,c=n?((e,t)=>
2{let s=(0,r.diffForDays)(e,t);if(s>0)return{unit:"days",value:s+1};let i=o(e,t);if(i>0)return{unit:"hours",value:i};let a=l(e,t);return a>0?{unit:"minutes",value:a}:{unit:null,value:null}})(t,n):void 0,p=!i||i<=t,d=!!n&&n<t;return{startDate:i,finishDate:n,isStarted:p,isFinished:d,isInActive:d||!p,isActive:!d&&p,remainingTime:c}};e.s(["asFinishDate",0,u,"campaignDate",0,c],251104);var p=e.i(47339);let d=e=>{let t=(0,p.campaignType)(e),s=(({customAuthor:e,user:t})=>({authorName:e?.authorName||t.profile?.nickname,authorImage:e?.customAuthorImage?.file||t.avatarImage?.file||void 0}))(e);return{type:t,author:s,target:(({meta:{targetAmount:e,targetAmountStretch1:t,targetAmountStretch2:s,targetDonors:i,targetDonorsStretch1:a,targetDonorsStretch2:r,statistic:n}})=>{let o=!!e,l=s||t||e,u=r||a||i,{totalDonationAmount:c,totalDonors:p}=n,d=(o?[e,t,s]:[i,a,r]).filter(e=>e>0),m=0===e&&0===i?{stretch1:!1,stretch2:!1,hasTarget:!1}:o?{stretch1:c>=e,stretch2:0!==t&&c>=t,hasTarget:!0}:{stretch1:p>=i,stretch2:0!==a&&p>=a,hasTarget:!0},T=o?{initial:e,stretch1:t,stretch2:s}:{initial:i,stretch1:a,stretch2:r};return{isForAmount:o,max:o?l:u,current:o?c:p,maxAmount:l,amount:c,maxDonors:u,donors:p,milestones:d,canTargetBeSetFor:m,everyTarget:T}})(e),date:c(e)}};var m=e.i(670768);e.s(["useCampaignWithAttrs",0,()=>{let{getEnsuredCampaignCoreWithReferenceById:e}=(()=>{let{getCampaignCoreWithReferenceById:e}=(0,m.useCampaignWithReference)(),s=(0,t.useCallback)(t=>{let s=e(t);if(!s)return;let{mainVisual:i,meta:a,user:r}=s;if(i&&a&&r)return{...s,mainVisual:i,meta:a,user:r}},[e]);return(0,t.useMemo)(()=>({getEnsuredCampaignCoreWithReferenceById:s}),[s])})(),a=(0,s.useAppDate)(),r=(0,t.useCallback)(t=>{let s=e(t),r=(0,i.apply)(s)(d);if(s&&r)return{entity:s,attrs:{...r,dateByApp:r.date(a)}}},[e,a]);return(0,t.useMemo)(()=>({getCampaignCoreWithAttrsById:r}),[r])}],883594)},110177,698591,54219,191731,e=>{"use strict";var t=e.i(391398),s=e.i(530436),i=e.i(191788),a=e.i(821654),r=e.i(852532),n=e.i(587405),o=e.i(147701),l=e.i(992575),u=e.i(118666),c=e.i(467199),p=e.i(488241),d=e.i(173970),m=e.i(552370),T=e.i(411542),h=e.i(209587),A=e.i(405712),g=e.i(31595),f=e.i(775e3),I=e.i(395415),O=e.i(384891),C=e.i(512423),N=e.i(709169),S=e.i(714970);let y=({children:e,color:s="white",bgColor:i="brand.500",right:a="0px",top:r="0px",...n})=>(0,t.jsxs)(C.Box,{position:"absolute",p:1,fontSize:"xs",fontWeight:"600",lineHeight:"none",transform:"translate(50%, -28px)",borderRadius:"sm",right:a,top:r,color:s,bgColor:i,...n,children:[e,(0,t.jsx)(C.Box,{position:"absolute",w:"8px",h:"8px",bgColor:i,transform:"translateX(-50%) translateY(50%) rotate(45deg)",bottom:0,left:"50%"})]}),D=({children:e,w:s=1,bgColor:i="gray.200",...a})=>(0,t.jsx)(C.Box,{position:"absolute",top:0,left:0,h:"100%",borderRadius:"full",w:`${Math.round(1e4*s)/100}%`,bgColor:i,...a,children:e}),E=()=>(0,t.jsx)(C.Box,{w:"6px",h:"6px",position:"absolute",right:"4px",bottom:"3px",borderRadius:"full",bgColor:"white"}),M=({value:e,milestones:s,colorScheme:a,showTips:r=!1,...n})=>{let{getColor:o}=(e=>{let t=e||"brand",{token:s}=(0,N.useChakraContext)(),a=(0,i.useMemo)(()=>s(`colors.${t}.600`),[t,s]);return{getColor:(0,i.useCallback)(e=>e?s(`colors.${t}.${e}`,a):a,[a,t,s])}})(a),l=(0,S.asc)((0,S.unique)(s)),u=(0,S.asc)((0,S.unique)([e,...l])),c=u.slice(-1)[0],p=u.filter(t=>t<=e||t===c),d=l[0]||e,m=p.map((t,s)=>({value:t,width:t/c,ratio:t/d,bgColorValue:Math.min(500+100*s,700),isMax:t===c&&t!==e,zIndexForTip:s+1})).reverse();return(0,t.jsx)(C.Box,{w:"100%",h:"12px",position:"relative",...n,children:m.map(({width:e,ratio:s,isMax:i,bgColorValue:a,zIndexForTip:n},l)=>{let u=i?"gray.200":o(`${a}`),c=i?null:(0,t.jsx)(E,{}),p=!i&&e>=.01&&r?(0,t.jsxs)(y,{right:"7px",bgColor:u,zIndex:n,children:[Math.floor(100*s),"%"]}):null;return(0,t.jsxs)(D,{w:e,minW:0===e?void 0:"14px",bgColor:u,children:[c,p]},l)})})};e.s(["ProgressIndicator",0,M],698591);var R=e.i(354590),x=e.i(330666),_=e.i(79538),b=e.i(730837),v=e.i(818113),U=e.i(117579);let P={props:{name:(0,v.n)("Name"),deductible:(0,v.n)("Deductible"),finished:e=>e?`Finished on ${(0,U.formatDate)("{MON}/{d}/{yy}")(e)}`:"Finished",notStarted:(0,v.n)("Not Started"),remaining:e=>{let t="Remains";switch(e.unit){case"days":{let s=`${e.value} days`;return{title:t,value:s,text:s}}case"hours":{let s=`${e.value} hours`;return{title:t,value:s,text:s}}case"minutes":{let s=`${e.value} minutes`;return{title:t,value:s,text:s}}default:{let e="Near an end";return{title:t,value:e,text:e}}}},isPrivate:(0,v.n)("Private"),edit:(0,v.n)("Edit")},format:{n:e=>`${(0,U.formatNumber)(e)} campaigns`,nDonors:e=>`${(0,U.formatNumber)(e)}`}},k={props:{name:(0,v.n)("キャンペーンタイトル"),deductible:(0,v.n)("寄付金控除対象"),finished:e=>e?`${(0,U.formatDate)("{yyyy}年{M}月{d}日 ")(e)} 終了`:"終了",notStarted:(0,v.n)("開始前"),remaining:e=>{let t="残り";switch(e.unit){case"days":{let s=`${e.value}日`;return{title:t,value:s,text:`残り${s}`}}case"hours":{let s=`${e.value}時間`;return{title:t,value:s,text:`残り${s}`}}case"minutes":{let s=`${e.value}分`;return{title:t,value:s,text:`残り${s}`}}default:{let e="間もなく終了";return{title:t,value:e,text:e}}}},isPrivate:(0,v.n)("非公開"),edit:(0,v.n)("編集する")},format:{n:e=>`${(0,U.formatNumber)(e)}件`,nDonors:e=>`${(0,U.formatNumber)(e)}人`}},L=(0,e.i(165145).createI18nHook)({en:P,ja:k});e.s(["useI18nForCampaignModel",0,L],54219);var F=e.i(883594),w=e.i(963259),j=e.i(715328),H=e.i(890253),Y=e.i(134717);let B=i.default.memo(({as:e,campaignId:s,isDeductible:i,deductibleText:C,remainingText:N,remainingUnit:S,isFinished:y,isStarted:D,isPrivateText:E,mainVisualSrc:x,authorName:b,title:v,milestones:U,currentValue:P,currentText:k,maxText:L,authorImageSrc:F,forName:w,associateUid:j,portfolioId:H,direction:Y,campaignIdForAssociate:B,editButtonText:$,...z})=>{let G=j?R.path.associate({uid:j}):H?R.path.portfolio({id:H}):void 0,W=B?{...G,query:{...G?.query,campaignId:B}}:G,K="vertical"===Y;return(0,t.jsx)(o.Card,{maxW:K?void 0:{lg:"3xl"},...z,children:(0,t.jsxs)(I.Stack,{flex:1,gap:0,align:"stretch",direction:K?"column":"row",children:[(0,t.jsx)(a.AspectRatio,{ratio:1.5,w:K?"100%":{base:"40%",lg:"50%"},bgColor:"gray.100",overflow:"hidden",borderTopLeftRadius:"base",...K?{borderTopRightRadius:"base"}:{borderBottomLeftRadius:"base"},children:(0,t.jsxs)(t.Fragment,{children:[x?(0,t.jsx)(c.CardImage,{alt:"",src:x,fill:!0,style:{objectFit:"contain"}}):null,(0,t.jsx)(g.Box,{position:"relative",children:(0,t.jsxs)(f.HStack,{position:"absolute",left:0,bottom:0,background:"linear-gradient(rgba(49, 51, 51, 0), rgba(49, 51, 51, 0.8) 80%)",width:"100%",p:{base:2,sm:2,md:3},children:[(0,t.jsx)(l.Avatar,{alt:"",src:F,size:"sm"}),(0,t.jsx)(u.Text,{color:"white",size:"sm",fontWeight:"bold",lineClamp:2,children:b})]})})]})}),(0,t.jsxs)(O.Padding,{flex:1,children:[(0,t.jsxs)(A.VStack,{flex:1,justify:"space-between",size:"md",children:[(0,t.jsxs)(A.VStack,{size:"xs",align:"flex-start",children:[(0,t.jsx)(d.LinkOverlay,{href:R.path.
2campaign({id:s}),children:(0,t.jsx)(u.Text,{as:e,fontWeight:"bold",size:"sm",lineClamp:4,children:v})}),i&&(0,t.jsx)(_.DeductibleTag,{link:!1,children:C}),E&&(0,t.jsx)(m.Tag,{size:"xs",color:"gray.500",leftIcon:(0,t.jsx)(r.BiSolidLock,{}),reversed:!0,children:E}),N&&(0,t.jsx)(m.Tag,{size:"xs",color:y?"gray.400":D?"days"===S?"teal.500":"hours"===S?"orange.500":"red.500":"gray.500",leftIcon:y?(0,t.jsx)(n.FiCheckCircle,{}):(0,t.jsx)(r.BiTimeFive,{}),reversed:!0,children:N})]}),(0,t.jsxs)(A.VStack,{align:"flex-start",size:"2xs",children:[W?(0,t.jsx)(p.Link,{href:W,size:"sm",type:"lighter",lineClamp:2,children:w}):null,(0,t.jsx)(M,{milestones:U,value:P}),(0,t.jsxs)(I.Stack,{direction:{base:"column",md:"row"},alignItems:{base:"flex-start",md:"center"},gap:{base:0,md:1},children:[(0,t.jsx)(u.Text,{fontWeight:"bold",size:"lg",children:k}),(0,t.jsxs)(u.Text,{size:"xs",type:"light",children:[" / ",L]})]})]})]}),$&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(T.Divider,{my:3}),(0,t.jsx)(h.LinkButton,{leftIcon:(0,t.jsx)(n.FiEdit,{}),size:"sm",colorScheme:"teal",variant:"link",href:R.path.campaignDetailDashboardForCampaign({id:s}),children:$})]})]})]})})}),$=({campaignId:e,as:s="h2",direction:a="vertical",shouldShowEditButton:r=!1,...n})=>{let{locale:o}=(0,j.useI18n)(),l=(0,b.useI18nForAssociateEnum)(),u=L(),c=(0,w.useI18nForCurrencyFormat)(),p=(0,H.useNextDataPreloader)(o,[{type:"path",value:"campaign"},{type:"param",value:e}],"path"),{getCampaignCoreWithAttrsById:d}=(0,F.useCampaignWithAttrs)(),m=d(e),T=!!m?.attrs.target.isForAmount,h=(0,Y.unit)(m?.attrs.target.milestones),A=h.map(e=>e.toString(10)).join("-"),g=(0,i.useMemo)(()=>h,[A]);if(!m)return null;let{entity:f,attrs:I}=m,{meta:O,mainVisual:C,associate:N,user:S,portfolio:y,customAuthor:D,...E}=f;if(!S?.profile&&!D||(!N||!N.meta)&&!y)return null;let M=N?N?.info?`${l.associateType(N.info.displayType||N.info.associateType)} ${N.name}`:N.name:y?.name,R=!!(!I.type.isRewardBased&&N?.info)&&(0,x.associateIsDeductible)(N.id,N.info.associateType),{isFinished:_,finishDate:v,isStarted:U,remainingTime:P}=I.dateByApp,k=(0,Y.apply)(P)(u.props.remaining),$=U?_?u.props.finished(v):k?.text:u.props.notStarted();return(0,t.jsx)(B,{as:s,deductibleText:u.props.deductible(),campaignId:e,associateUid:N?.associateUid,portfolioId:y?.id,title:E.title,isDeductible:R,isFinished:_,isStarted:U,isPrivateText:O.isReleased?void 0:u.props.isPrivate(),remainingText:$,remainingUnit:P?.unit,mainVisualSrc:C.file||void 0,authorImageSrc:I.author.authorImage||void 0,authorName:I.author.authorName,forName:M,milestones:g,currentValue:I.target.current,currentText:T?c.yen(I.target.current):u.format.nDonors(I.target.current),maxText:T?c.yen(I.target.max):u.format.nDonors(I.target.max),direction:a,editButtonText:r?u.props.edit():void 0,...p.events.hover,...n})};e.s(["CampaignCard",0,$],191731),e.s(["CampaignCardGrid",0,({campaignIds:e,campaignIdForAssociate:i,shouldShowEditButton:a=!1,n:r,as:n,...o})=>{let l=e.slice(0,r);return(0,t.jsx)(s.CardGrid,{...o,children:l.map(e=>(0,t.jsx)($,{campaignId:e,campaignIdForAssociate:i,shouldShowEditButton:a,as:n},e))})}],110177)}]);
3
4//# debugId=74f7d432-d993-83e2-bec6-7912bd873556
5//# sourceMappingURL=177aq_9-v76hq.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.