Mini Kabibi Habibi
/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2025 Adobe. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
**************************************************************************/
(window.webpackJsonp=window.webpackJsonp||[]).push([[3,31],{eTdQ:function(e,t,n){"use strict";n.r(t),n.d(t,"setAnalyticsEnabled",(function(){return f})),n.d(t,"showNewDocumentDialog",(function(){return w})),n.d(t,"openNewDocumentWithDeeplinkPath",(function(){return E}));var o=n("GGSb"),i=n.n(o),a=n("TXS8"),r=n("0B1G"),c=n("77JF"),l=n("H2+D"),s=n("BwkI"),p=n("Zghy"),u=n("cIFk");const d=i.a.get("Commands");function f(e){var t;p.a.isAnalyticsEnabled=e,(null===(t=null===c.appRef||void 0===c.appRef?void 0:c.appRef.current)||void 0===t?void 0:t.store)&&(c.appRef.current.store.analytics.enabled=e)}function w(e){Object(c.showNewDocumentDialogImpl)(e)}async function E(e,t){var n,o,i,f,w,E;try{if(!(null===(n=null===c.appRef||void 0===c.appRef?void 0:c.appRef.current)||void 0===n?void 0:n.store))throw new Error("Application Store is not available");if(!e.tab)throw new Error("`deeplinkPath` is missing `tab` field");if(t&&c.appRef.current.store.analytics.setOrigin(t),void 0===e.collection&&e.documentSelector&&(e.tab!==u.default.RECENT||Object(s.e)(p.a.id)))throw new Error("`documentSelector` is present in `deeplinkPath`, but `collection` field is missing");const m=e.documentSelector||{index:0},v=null!==(o=e.collection)&&void 0!==o?o:e.tab===u.default.TEMPLATES?0:r.a.PRESET,b=!e.action||![a.a.OPEN,a.a.DOWNLOAD].includes(e.action);if(e.tab===u.default.TEMPLATES&&!c.appRef.current.store.shouldDisplayTemplatesTab){const t=null!==(i=e.fallback)&&void 0!==i?i:u.default.RECENT;let n={view:t};if(t!==u.default.RECENT){const e=await c.appRef.current.store.getDocumentByCategoryAndCollection(t,r.a.TEMPLATE,m,b);n={...n,collection:r.a.TEMPLATE,document:e}}const o=t===u.default.RECENT?"recents":t;return c.appRef.current.store.analytics.logFNFTActionClickedEvent("tab-selected",{activeFilter:`fallback-to-${o}-from-template`,subcategory:"HOME_SCREEN"}),await Object(c.showNewDocumentDialogImpl)({},n)}const h=await c.appRef.current.store.getDocumentByCategoryAndCollection(e.tab,v,m,b);if(h||d.error("No document found within the DeepLink. Deeplink path: "+JSON.stringify(e)),e.action===a.a.OPEN){if(h.kind===r.a.TEMPLATE&&!h.isLicensed)throw new Error("Cannot open a template that isn't downloaded!");return c.appRef.current.store._activeDocumentTemplate=h,void Object(l.a)(c.appRef.current.store)}if(await Object(c.showNewDocumentDialogImpl)({},{view:e.tab,collection:v,document:h}),h&&h.kind===r.a.TEMPLATE)switch(e.action){case a.a.PREVIEW:null===(E=null===(w=null===(f=c.appRef.current.router)||void 0===f?void 0:f.current)||void 0===w?void 0:w.history)||void 0===E||E.push("/template-preview");break;case a.a.DOWNLOAD:Object(l.k)(c.appRef.current.store)}}catch(e){d.error("There was an error processing the Deeplink Path.",e)}}},qAiR:function(e,t,n){var o={"./IconMapper":"XLCt","./IconMapper.test":"w6Pn","./IconMapper.test.tsx":"w6Pn","./IconMapper.tsx":"XLCt","./Icons":"ekoL","./Icons.tsx":"ekoL","./icon_mappings_idsn.json":"Xug+","./icon_mappings_ilst.json":"Bi5I","./icon_mappings_phxs.json":"S8y1"};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=a,e.exports=i,i.id="qAiR"}}]);