TemplateVideoSpecRecord",["ApiAdCreativeTemplateVideoSpecFields","DynamicAdsTemplateVideoShowreelTemplateConfig","ImmutableRecordWithV4Types","immutable"],(function(a,b,c,d,e,f,g){"use strict";a=c("DynamicAdsTemplateVideoShowreelTemplateConfig").templates[c("DynamicAdsTemplateVideoShowreelTemplateConfig").default_template_id];e=d("ImmutableRecordWithV4Types").Record((b={},b[c("ApiAdCreativeTemplateVideoSpecFields").CATEGORIZATION_CRITERIA]=null,b[c("ApiAdCreativeTemplateVideoSpecFields").CUSTOMIZATION]=c("immutable").Map(a.customization),b[c("ApiAdCreativeTemplateVideoSpecFields").TEMPLATE_ID]=c("DynamicAdsTemplateVideoShowreelTemplateConfig").default_template_id,b));f=e;g["default"]=f}),98);
-----
AdsCanvasTemplateVideoElement",["fbt","AdsCanvasElementBase","AdsCollectionsConstants","ApiAdCreativeTemplateVideoSpecFields","CanvasDataUtils","DynamicAdsTemplateVideoShowreelTemplateConfig","ImmutableRecordWithV4Types","RichMediaElementTypeConstant","TemplateVideoSpecRecord","immutable"],(function(a,b,c,d,e,f,g,h){"use strict";a=babelHelpers["extends"]({},d("AdsCanvasElementBase").AdsCanvasElementDefaults,{elementType:d("RichMediaElementTypeConstant").RichMediaElementTypes.TEMPLATE_VIDEO,name:h._("u52a8u6001u89c6u9891").toString(),productSetID:null,templateVideoSpec:c("TemplateVideoSpecRecord")()});b=d("ImmutableRecordWithV4Types").Record(a);e=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.fromAPI=function(a){var e,f=a.template_video_spec,g=c("immutable").Map(f==null?void 0:f.customization.map(function(a){return[a.key,a.value]}));g=c("TemplateVideoSpecRecord")((e={},e[c("ApiAdCreativeTemplateVideoSpecFields").CATEGORIZATION_CRITERIA]=f==null?void 0:f.categorization_criteria,e[c("ApiAdCreativeTemplateVideoSpecFields").CUSTOMIZATION]=g,e[c("ApiAdCreativeTemplateVideoSpecFields").TEMPLATE_ID]=f==null?void 0:f.template_id,e));return new b(babelHelpers["extends"]({},d("AdsCanvasElementBase").getSharedAPIFields(d("CanvasDataUtils").convertElementReadRawToBaseReadRaw(a)),{productSetID:a.product_set_id,templateVideoSpec:g}))};b.createNewElement=function(a){return new b({id:a})};b.validate=function(a,b){if(a.get("productSetID")==null)return{errorMsg:h._("u8bf7u4eceu76eeu5f55u9009u62e9u6216u521bu5efau5546u54c1u7cfbu5217"),isValid:!1};return b&&!b.supportsTemplateVideo?{errorMsg:h._("u6240u9009u76eeu5f55u4e0du652fu6301u6a21u677fu89c6u9891"),isValid:!1}:{errorMsg:"",isValid:!0}};var e=b.prototype;e.getShowreelVideoTemplateID=function(){var a=this.get("templateVideoSpec").get("template_id");a=c("DynamicAdsTemplateVideoShowreelTemplateConfig").templates[a];return a.showreel_video_template_id};e.getCustomization=function(a){return this.get("templateVideoSpec").get("customization").get(a)};e.setCustomization=function(a,b){var c=this.get("templateVideoSpec");c=c.set("customization",c.get("customization").set(a,b));return this.set("templateVideoSpec",c)};e.setOrDeleteCustomizationText=function(a,b){return b===d("AdsCollectionsConstants").POST_CLICK_FIELD_HIDE||b==null?this.deleteCustomization(a):this.setCustomization(a,b)};e.deleteCustomization=function(a){var b=this.get("templateVideoSpec");return this.set("templateVideoSpec",b.set("customization",b.get("customization")["delete"](a)))};e.setCategorizationCriteria=function(a){return this.set("templateVideoSpec",this.get("templateVideoSpec").set("categorization_criteria",a))};e.toAPI=function(){return babelHelpers["extends"]({},d("AdsCanvasElementBase").setSharedAPIFields(this),{product_set_id:this.get("productSetID"),template_video_spec:this.get("templateVideoSpec")})};e.getElementType=function(){return this.get("elementType")};e.getID=function(){return this.get("id")};e.getSharedMultiTabFields=function(){return[]};e.isSwipeToOpenEligible=function(){return!1};return b}(b);g["default"]=e}),226);
-----
AdsAPIChildAttachmentPaths",["ApiAdCreativeTemplateVideoSpecFields","ApiCallToActionFields","ApiObjectStorySpecLinkChildFields","ApiObjectStorySpecPlaceDataFields","CallToActionValueFields","generatePaths"],(function(a,b,c,d,e,f,g){"use strict";a=[{pathKeys:[],expandsTo:c("ApiObjectStorySpecLinkChildFields")},{pathKeys:["CALL_TO_ACTION"],expandsTo:c("ApiCallToActionFields")},{pathKeys:["CALL_TO_ACTION","VALUE"],expandsTo:c("CallToActionValueFields")},{pathKeys:["PLACE_DATA"],expandsTo:c("ApiObjectStorySpecPlaceDataFields")},{pathKeys:["TEMPLATE_VIDEO_SPEC"],expandsTo:c("ApiAdCreativeTemplateVideoSpecFields")}];b=c("generatePaths")(a);d=b;g["default"]=d}),98);
-----
ApiAdCreativeTemplateVideoSpecFields",[],(function(a,b,c,d,e,f){a=Object.freeze({CATEGORIZATION_CRITERIA:"categorization_criteria",CUSTOMIZATION:"customization",TEMPLATE_ID:"template_id"});f["default"]=a}),66);
-----
AdsAPIChildAttachmentPaths",["ApiAdCreativeTemplateVideoSpecFields","ApiCallToActionFields","ApiObjectStorySpecLinkChildFields","ApiObjectStorySpecPlaceDataFields","CallToActionValueFields","generatePaths"],(function(a,b,c,d,e,f,g){"use strict";a=[{pathKeys:[],expandsTo:c("ApiObjectStorySpecLinkChildFields")},{pathKeys:["CALL_TO_ACTION"],expandsTo:c("ApiCallToActionFields")},{pathKeys:["CALL_TO_ACTION","VALUE"],expandsTo:c("CallToActionValueFields")},{pathKeys:["PLACE_DATA"],expandsTo:c("ApiObjectStorySpecPlaceDataFields")},{pathKeys:["TEMPLATE_VIDEO_SPEC"],expandsTo:c("ApiAdCreativeTemplateVideoSpecFields")}];b=c("generatePaths")(a);d=b;g["default"]=d}),98);
-----
ApiAdCreativeTemplateVideoSpecFields",[],(function(a,b,c,d,e,f){a=Object.freeze({CATEGORIZATION_CRITERIA:"categorization_criteria",CUSTOMIZATION:"customization",TEMPLATE_ID:"template_id"});f["default"]=a}),66);
-----
TemplateVideoSpecRecord",["ApiAdCreativeTemplateVideoSpecFields","DynamicAdsTemplateVideoShowreelTemplateConfig","ImmutableRecordWithV4Types","immutable"],(function(a,b,c,d,e,f,g){"use strict";a=c("DynamicAdsTemplateVideoShowreelTemplateConfig").templates[c("DynamicAdsTemplateVideoShowreelTemplateConfig").default_template_id];e=d("ImmutableRecordWithV4Types").Record((b={},b[c("ApiAdCreativeTemplateVideoSpecFields").CATEGORIZATION_CRITERIA]=null,b[c("ApiAdCreativeTemplateVideoSpecFields").CUSTOMIZATION]=c("immutable").Map(a.customization),b[c("ApiAdCreativeTemplateVideoSpecFields").TEMPLATE_ID]=c("DynamicAdsTemplateVideoShowreelTemplateConfig").default_template_id,b));f=e;g["default"]=f}),98);
-----
AdsCanvasTemplateVideoElement",["fbt","AdsCanvasElementBase","AdsCollectionsConstants","ApiAdCreativeTemplateVideoSpecFields","CanvasDataUtils","DynamicAdsTemplateVideoShowreelTemplateConfig","ImmutableRecordWithV4Types","RichMediaElementTypeConstant","TemplateVideoSpecRecord","immutable"],(function(a,b,c,d,e,f,g,h){"use strict";a=babelHelpers["extends"]({},d("AdsCanvasElementBase").AdsCanvasElementDefaults,{elementType:d("RichMediaElementTypeConstant").RichMediaElementTypes.TEMPLATE_VIDEO,name:h._("u52a8u6001u89c6u9891").toString(),productSetID:null,templateVideoSpec:c("TemplateVideoSpecRecord")()});b=d("ImmutableRecordWithV4Types").Record(a);e=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.fromAPI=function(a){var e,f=a.template_video_spec,g=c("immutable").Map(f==null?void 0:f.customization.map(function(a){return[a.key,a.value]}));g=c("TemplateVideoSpecRecord")((e={},e[c("ApiAdCreativeTemplateVideoSpecFields").CATEGORIZATION_CRITERIA]=f==null?void 0:f.categorization_criteria,e[c("ApiAdCreativeTemplateVideoSpecFields").CUSTOMIZATION]=g,e[c("ApiAdCreativeTemplateVideoSpecFields").TEMPLATE_ID]=f==null?void 0:f.template_id,e));return new b(babelHelpers["extends"]({},d("AdsCanvasElementBase").getSharedAPIFields(d("CanvasDataUtils").convertElementReadRawToBaseReadRaw(a)),{productSetID:a.product_set_id,templateVideoSpec:g}))};b.createNewElement=function(a){return new b({id:a})};b.validate=function(a,b){if(a.get("productSetID")==null)return{errorMsg:h._("u8bf7u4eceu76eeu5f55u9009u62e9u6216u521bu5efau5546u54c1u7cfbu5217"),isValid:!1};return b&&!b.supportsTemplateVideo?{errorMsg:h._("u6240u9009u76eeu5f55u4e0du652fu6301u6a21u677fu89c6u9891"),isValid:!1}:{errorMsg:"",isValid:!0}};var e=b.prototype;e.getShowreelVideoTemplateID=function(){var a=this.get("templateVideoSpec").get("template_id");a=c("DynamicAdsTemplateVideoShowreelTemplateConfig").templates[a];return a.showreel_video_template_id};e.getCustomization=function(a){return this.get("templateVideoSpec").get("customization").get(a)};e.setCustomization=function(a,b){var c=this.get("templateVideoSpec");c=c.set("customization",c.get("customization").set(a,b));return this.set("templateVideoSpec",c)};e.setOrDeleteCustomizationText=function(a,b){return b===d("AdsCollectionsConstants").POST_CLICK_FIELD_HIDE||b==null?this.deleteCustomization(a):this.setCustomization(a,b)};e.deleteCustomization=function(a){var b=this.get("templateVideoSpec");return this.set("templateVideoSpec",b.set("customization",b.get("customization")["delete"](a)))};e.setCategorizationCriteria=function(a){return this.set("templateVideoSpec",this.get("templateVideoSpec").set("categorization_criteria",a))};e.toAPI=function(){return babelHelpers["extends"]({},d("AdsCanvasElementBase").setSharedAPIFields(this),{product_set_id:this.get("productSetID"),template_video_spec:this.get("templateVideoSpec")})};e.getElementType=function(){return this.get("elementType")};e.getID=function(){return this.get("id")};e.getSharedMultiTabFields=function(){return[]};e.isSwipeToOpenEligible=function(){return!1};return b}(b);g["default"]=e}),98);
-----